pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk For the ELF form, make sure shlibs are installed +x...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01f793b7f81f
branches:  trunk
changeset: 481852:01f793b7f81f
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Oct 13 17:52:46 2004 +0000

description:
For the ELF form, make sure shlibs are installed +x.  If not, issue a
warning, fix it, and move along.

diffstat:

 mk/bsd.pkg.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 83924e8f7c1b -r 01f793b7f81f mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Wed Oct 13 17:51:32 2004 +0000
+++ b/mk/bsd.pkg.mk     Wed Oct 13 17:52:46 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1517 2004/10/13 15:31:31 tv Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1518 2004/10/13 17:52:46 tv Exp $
 #
 # This file is in the public domain.
 #
@@ -4671,6 +4671,13 @@
                if ${TEST} "$$bins" != "" -o "$$libs" != ""; then       \
                        requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} 'NF == 3 { print $$3 }' | ${SORT} -u`; \
                fi;                                                     \
+               linklibs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^[^@].*\.so$$/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
+               for i in $${linklibs}; do                               \
+                       if ${TEST} -r $$i -a ! -x $$i; then             \
+                               ${ECHO} "$$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)"; \
+                               ${CHMOD} +x $$i;                        \
+                       fi;                                             \
+               done;                                                   \
                ;;                                                      \
        Mach-O) bins=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^(bin|sbin|libexec)\// { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
                libs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^lib\/lib.*\.dylib/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \



Home | Main Index | Thread Index | Old Index