[pacman-dev] Fwd: [arch-general] makepkg not stripping bin/libs
This feels more like pacman-dev material - forwarded there. ---------- Forwarded message ---------- From: Mark Constable <markc@renta.net> Date: Jan 24, 2008 6:58 AM Subject: [arch-general] makepkg not stripping bin/libs To: General Discusson about Arch Linux <arch-general@archlinux.org> makegpkg 3.1.1 line ~752 has this... find {,usr/{,local/},opt/}{bin,lib,sbin} -type f and I can't see how that will ever work, and it doesn't for me, however this does work (for me)... find -regex ".+/bin/.+" -o -regex ".+/lib/.+" -o -regex ".+/sbin/.+" -type f I recently rebuilt kdemod4 and it ended up being 1.9Gb whereas it should have been around >400Mb. --markc
On Jan 24, 2008 6:14 AM, Travis Willard <travis@archlinux.org> wrote:
This feels more like pacman-dev material - forwarded there.
Thanks Travis.
Could you please explain why this will "never work". It makes complete sense to me.
find -regex ".+/bin/.+" -o -regex ".+/lib/.+" -o -regex ".+/sbin/.+" -type f
First question: is -regex portable?
On Jan 24, 2008 10:40 AM, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
It looks like it will match opt/bin, but not opt/kde4/bin, for instance. Is this what you originally meant by "never working"? You shouldn't make such blanket statements though. find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f Will this work? (note '*/' addition)
find -regex ".+/bin/.+" -o -regex ".+/lib/.+" -o -regex ".+/sbin/.+" -type f
First question: is -regex portable?
Not sure if it is. I'll let Mark look into this. -Dan P.S. Aaron- I CCed the original author in as he probably isn't on this list, so he never saw your reply.
On Jan 24, 2008 2:55 PM, Dan McGee <dpmcgee@gmail.com> wrote:
BCC'd? 'cause I don't see him in the CC list.
participants (3)
-
Aaron Griffin
-
Dan McGee
-
Travis Willard