[Frugalware-darcs] frugalware-current: linux-live-5.5.0-3-i686

VMiklos vmiklos at frugalware.org
Thu Nov 23 09:57:24 CET 2006


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20061123085415-e2957-cacea703ed968f589993665c8d774b462c85b363.gz;

[linux-live-5.5.0-3-i686
VMiklos <vmiklos at frugalware.org>**20061123085415
 make sure we remove all the upstream binaries
 (this is already done, just there were no test for this)
] {
hunk ./source/devel-extra/linux-live/FrugalBuild 34
+	# a special version of make clean ;)
+	unset bins
+	for i in `find $Fdestdir/usr/share/$pkgname -perm -u+x ! -type d ! -type l`
+	do
+		if [[ "`file $i`" =~ "ELF" ]]; then
+			bins="$bins $i"
+			rm $i
+		fi
+	done
+
hunk ./source/devel-extra/linux-live/FrugalBuild 45
-	rm $Fdestdir/usr/share/$pkgname/initrd/rootfs/lib/{ld-$liveglibcver.so,libblkid.so.1.0,libc-$liveglibcver.so,libz.so.1.2.3,libuuid.so.1.2}
-	rm $Fdestdir/usr/share/$pkgname/initrd/rootfs/bin/{blkid,busybox,eject,unionctl,uniondbg}
hunk ./source/devel-extra/linux-live/FrugalBuild 54
+	bins=${bins/ld-$liveglibcver.so/ld-$glibcver.so}
hunk ./source/devel-extra/linux-live/FrugalBuild 57
+	bins=${bins/libc-$liveglibcver.so/libc-$glibcver.so}
hunk ./source/devel-extra/linux-live/FrugalBuild 63
+	# check if we have everything
+	for i in $bins
+	do
+		if [ ! -e $i ]; then
+			echo $i is missing
+			return 1
+		fi
+	done
+
}


More information about the Frugalware-darcs mailing list