From: Ralph Ronnquist Date: Mon, 12 Jun 2023 07:45:08 +0000 (+1000) Subject: Fix mapdepends to full dependency lines and also include Pre-Depends. X-Git-Tag: good-1~3 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=fbdf9ca56db6647bb5f824914379621b469f5b7a;p=rrq%2Ftiniest.git Fix mapdepends to full dependency lines and also include Pre-Depends. Drop using dpkg and use only debextract. --- 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