pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Fix shlib execute perm pattern (was broken after 1....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb275dd7db70
branches:  trunk
changeset: 482473:cb275dd7db70
user:      tv <tv%pkgsrc.org@localhost>
date:      Thu Oct 28 14:05:56 2004 +0000

description:
Fix shlib execute perm pattern (was broken after 1.1537).

Also, to address concerns raised on tech-pkg, only issue the warning about
execute permission if PKG_DEVELOPER is set.

diffstat:

 mk/bsd.pkg.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r c437d78d7aa8 -r cb275dd7db70 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Oct 28 14:03:58 2004 +0000
+++ b/mk/bsd.pkg.mk     Thu Oct 28 14:05:56 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1528 2004/10/27 21:45:53 recht Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1529 2004/10/28 14:05:56 tv Exp $
 #
 # This file is in the public domain.
 #
@@ -4724,10 +4724,11 @@
                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}`; \
+               linklibs=`${SETENV} PREFIX=${PREFIX} ${AWK} '/^[^@].*\.so\.[0-9\.]+$$/ { print ENVIRON["PREFIX"] "/" $$0 }' ${PLIST} || ${TRUE}`; \
                for i in $${linklibs}; do                               \
                        if ${TEST} -r $$i -a ! -x $$i -a ! -h $$i; then \
-                               ${ECHO} "$$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)"; \
+                               ${TEST} "${PKG_DEVELOPER:Uno}" = "no" || \
+                                       ${ECHO} "$$i: installed without execute permission; fixing (should use [BSD_]INSTALL_LIB)"; \
                                ${CHMOD} +x $$i;                        \
                        fi;                                             \
                done;                                                   \



Home | Main Index | Thread Index | Old Index