Patchwork Shared libraries permissions prevent stripping

login
register
mail settings
Submitter Julien
Date May 27, 2013, 4:32 p.m.
Message ID <51A38AAA.6090504@free.fr>
Download mbox | patch
Permalink /patch/246622/
State Superseded
Headers show

Comments

Julien - May 27, 2013, 4:32 p.m.
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

Patch

--- a/Makefile.in	2013-04-24 15:26:53.000000000 +0200
+++ b/Makefile.in	2013-04-24 15:26:53.000000000 +0200
@@ -407,7 +407,7 @@ 
 
 install-shared-nettle: $(LIBNETTLE_FORLINK) @IF_DLL@ install-dll-nettle
 	$(MKDIR_P) $(DESTDIR)$(libdir)
-	$(INSTALL_DATA) $(LIBNETTLE_FILE_SRC) $(DESTDIR)$(libdir)/$(LIBNETTLE_FILE)
+	$(INSTALL) $(LIBNETTLE_FILE_SRC) $(DESTDIR)$(libdir)/$(LIBNETTLE_FILE)
 	[ -z "$(LIBNETTLE_SONAME)" ] \
                 || (cd $(DESTDIR)$(libdir) \
 		&& rm -f $(LIBNETTLE_SONAME) $(LIBNETTLE_FORLINK) \
@@ -420,7 +420,7 @@ 
 
 install-shared-hogweed: $(LIBHOGWEED_FORLINK) @IF_DLL@ install-dll-hogweed
 	$(MKDIR_P) $(DESTDIR)$(libdir)
-	$(INSTALL_DATA) $(LIBHOGWEED_FILE_SRC) $(DESTDIR)$(libdir)/$(LIBHOGWEED_FILE)
+	$(INSTALL) $(LIBHOGWEED_FILE_SRC) $(DESTDIR)$(libdir)/$(LIBHOGWEED_FILE)
 	[ -z "$(LIBHOGWEED_SONAME)" ] \
                 || (cd $(DESTDIR)$(libdir) \
 		&& rm -f $(LIBHOGWEED_SONAME) $(LIBHOGWEED_FORLINK) \