Skip to contentSkip to conversation

Shared libraries permissions prevent stripping

Buildroot Julien 1 participant 1 message May 27, 2013

lore
Share & tools
lore

Julien

author
#0 lore raw

Hello,

Some packages (at least acl, attr, bind, gettext and nettle) install shared libraries with permission 644. It prevents them to be stripped during final stage, command line is:
find [...]/output/target -type f -perm +111 -not \( -name 'libpthread*.so*' \) -print | xargs [...]/output/host/usr/bin/[...]-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true
(in /Makefile, STRIP_FIND_CMD += -type f -perm +111)

I suggest to patch packages Makefiles (or Makefiles.in) of these packages, here are the patches.

There is maybe better ways to handle this.

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acl-makefile-libs-install-perms.patch
Type: text/x-patch
Size: 1037 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/715fbcfd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attr-makefile-libs-install-perms.patch
Type: text/x-patch
Size: 1037 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/715fbcfd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-makefile-libs-install-perms.patch
Type: text/x-patch
Size: 2633 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/715fbcfd/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gettext-makefile-libs-install-perms.patch
Type: text/x-patch
Size: 1295 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/715fbcfd/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nettle-makefile-libs-install-perms.patch
Type: text/x-patch
Size: 944 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130527/715fbcfd/attachment-0004.bin>