diff mbox

Shared libraries permissions prevent stripping

Message ID 51A38AAA.6090504@free.fr
State Superseded
Headers show

Commit Message

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

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) \