From fbdf9ca56db6647bb5f824914379621b469f5b7a Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Mon, 12 Jun 2023 17:45:08 +1000 Subject: [PATCH] Fix mapdepends to full dependency lines and also include Pre-Depends. Drop using dpkg and use only debextract. --- mkit.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mkit.sh b/mkit.sh index 437a5f4..3d9d62e 100755 --- a/mkit.sh +++ b/mkit.sh @@ -26,7 +26,8 @@ echo "# Creating mapdepends.txt and mapfile.txt" awk ' BEGIN { print "###" > "mapdepends.txt"; print "###" > "mapfile.txt"; } $1=="Package:" {P=$2; next} -$1=="Depends:" {print P,$2 >> "mapdepends.txt";next } +$1=="Pre-Depends:" {print P,$0 >> "mapdepends.txt";next } +$1=="Depends:" {print P,$0 >> "mapdepends.txt";next } $1=="Filename:" {print P,$2 >> "mapfile.txt";next } ' ${PKGFILE} @@ -64,9 +65,9 @@ echo $KERNEL echo "# Create initrd filesystem" rm -fr initrd -echo "# Install busybox, and fluff it up" -fakechroot fakeroot \ -dpkg --log=dpkg.log --root=initrd -i $(debfile busybox-static) +echo "# Extract busybox, and fluff it up" +mkdir initrd +debextract initrd $(debfile busybox-static) for L in $(initrd/bin/busybox --listfull) ; do mkdir -p $(dirname initrd/$L) case "$L" in -- 2.39.2