Summary: | Strange newline in app-emulation/emul-linux-x86-baselibs-10.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | michael <michael> |
Component: | New packages | Assignee: | AMD64 Project <amd64> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emul-linux-x86-baselibs-10.1.ebuild |
Description
michael@smith-li.com
2007-02-25 22:13:01 UTC
Created attachment 111238 [details]
emul-linux-x86-baselibs-10.1.ebuild
--- app-emulation/emul-linux-x86-baselibs/emul-linux-x86-baselibs-10.1.ebuild.orig 2007-02-19 17:05:33.000000000 -0500
+++ app-emulation/emul-linux-x86-baselibs/emul-linux-x86-baselibs-10.1.ebuild 2007-02-23 13:45:23.000000000 -0500
@@ -64,13 +64,16 @@
unpack ${A}
cd ${S}
+ # rm these first so find has less to do
+ rm -r "${S}/etc/env.d/binutils/" \
+ "${S}/usr/lib32/binutils/" \
+ "${S}/usr/lib32/engines/" \
+ "${S}/usr/lib32/openldap/" \
+ "${S}/usr/lib32/python2.4/"
+
+ # Not POSIX compliant, but it should work on amd64
WHITELIST="(${S}/lib32/security/pam_filter/upperLOWER|${S}/etc/env.d)"
- # the following line is broken up because we have files with spaces in the filename
- find ${S} ! -type d ! -name '*.so*' | egrep -v "${WHITELIST}" | xargs -d '
-' rm -f
- rm -rf ${S}/etc/env.d/binutils/ ${S}/usr/lib32/binutils/
- rm -rf ${S}/usr/lib32/engines/ ${S}/usr/lib32/openldap/
- rm -rf ${S}/usr/lib32/python2.4/
+ find ${S} ! -type d ! -name '*.so*' -print0 | egrep --null -v "${WHITELIST}" | xargs -0 rm
ln -s ../share/terminfo ${S}/usr/lib32/terminfo
}
Actually 10.1-r1 was already put in the tree which uses the eclass so looks much cleaner, but i merged the rm calls together. Thanks. |