prevent cleaning .a files
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Sat, 20 Oct 2012 03:27:03 +0000 (23:27 -0400)
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Sat, 20 Oct 2012 03:27:03 +0000 (23:27 -0400)
The releng specs already remove all the static libs from the system
We do not need to do it with catalyst as this breaks all other livecds

targets/livecd-stage2/livecd-stage2-controller.sh

index 687c208daa217f7e71c54aea6b7e975f30695f79..57dcff748e70230e456039bb5beb0fb687404e28 100644 (file)
@@ -109,13 +109,6 @@ case $1 in
                        # Zap all .pyc and .pyo files
                        find ${clst_chroot_path}/usr/lib* -iname "*.py[co]" -exec rm -f {} \;
                fi
-               # Cleanup all .a files except libgcc.a, *_nonshared.a and
-               # /usr/lib/portage/bin/*.a
-               find ${clst_chroot_path}usr/lib* -type f -iname "*.a" | \
-                       grep -v 'libgcc.a' | \
-                       grep -v 'nonshared.a' | \
-                       grep -v '/usr/lib/portage/bin/' | \
-                       grep -v 'libgcc_eh.a' | xargs rm -f
                rm -f ${clst_chroot_path}/tmp/packages.txt
                ;;