summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1999-11-01 11:15:20 +0000
committeragc <agc>1999-11-01 11:15:20 +0000
commit064ddc3b13af47b9ac278ccf62308065b6eef696 (patch)
tree0d3031d1793540184f90ca630c4840b8f6ec4685 /mk
parent8b097108399935589d6a05dda6c7dd4ce1910f95 (diff)
downloadpkgsrc-064ddc3b13af47b9ac278ccf62308065b6eef696.tar.gz
Recognise "lib" entries with two or more version numbers, in the
PLIST, as shared objects. Tested with both GNU egrep and Solaris XPG4 egrep. Not the most compact of regular expressions, due to non-portability of {n,m} repetition atoms between different versions of egrep.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ce4103c36b0..3ca71a3d3b5 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.362 1999/10/31 19:43:02 rh Exp $
+# $NetBSD: bsd.pkg.mk,v 1.363 1999/11/01 11:15:20 agc Exp $
#
# This file is in the public domain.
#
@@ -1351,10 +1351,9 @@ root-install:
fi)
${_PKG_SILENT}${_PKG_DEBUG}cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} ${PLIST}
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
- ${_PKG_SILENT}(${_PKG_DEBUG}sos=`${EGREP} -h \
- '.*/lib[^/]+\.so\.[0-9]+\.[0-9]+$$' \
- ${PLIST} || ${TRUE}`; \
- if [ X"$$sos" != X"" ]; then \
+ ${_PKG_SILENT}(${_PKG_DEBUG} \
+ sos=`${EGREP} -h -x '.*/lib[^/]+\.so\.[0-9]+(\.[0-9]+)+' ${PLIST} || ${TRUE}`; \
+ if [ "X$$sos" != "X" ]; then \
shlib_type=`${MAKE} ${.MAKEFLAGS} show-shlib-type`; \
case "$$shlib_type" in \
"ELF") \