summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-09-11 16:41:36 +0000
committerwiz <wiz@pkgsrc.org>2001-09-11 16:41:36 +0000
commitbd02cc8c266a3d555e1760ab5a0cfe14389fef49 (patch)
treebac54bbfbe057ced35a1166ba21e29c5536e05e2 /mk
parente5890c5819f198d1fc7c532f8e508f34929dd41e (diff)
downloadpkgsrc-bd02cc8c266a3d555e1760ab5a0cfe14389fef49.tar.gz
Make print-PLIST work again if no linux=procfs mounted.
Patch by hubertf.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f193ae9a5ae..0a37b0105ce 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.808 2001/09/10 20:03:17 martin Exp $
+# $NetBSD: bsd.pkg.mk,v 1.809 2001/09/11 16:41:36 wiz Exp $
#
# This file is in the public domain.
#
@@ -3111,8 +3111,10 @@ COMMON_DIRS!= ${AWK} 'BEGIN { \
.if !target(print-PLIST)
print-PLIST:
- @${ECHO} '@comment $$'NetBSD'$$'
- @shlib_type=`${MAKE} ${MAKEFLAGS} show-shlib-type`; \
+ ${_PKG_SILENT}${_PKG_DEBUG}\
+ ${ECHO} '@comment $$'NetBSD'$$'
+ ${_PKG_SILENT}${_PKG_DEBUG}\
+ shlib_type=`${MAKE} ${MAKEFLAGS} show-shlib-type`; \
case $$shlib_type in \
"a.out") genlinks=1 ;; \
*) genlinks=0 ;; \
@@ -3128,7 +3130,7 @@ print-PLIST:
-e 's@${LOWER_VENDOR}@\$${LOWER_VENDOR}@' \
-e 's@${LOWER_OPSYS}@\$${LOWER_OPSYS}@' \
-e 's@${PKGNAME}@\$${PKGNAME}@' \
- | ${GREP} -v emul/linux/proc \
+ | ( ${GREP} -v emul/linux/proc || ${TRUE} ) \
| ${SORT} \
| ${AWK} ' \
/^@/ { print $$0; next } \
@@ -3159,7 +3161,8 @@ print-PLIST:
print $$0; \
} \
}'
- @for i in `${FIND} ${PREFIX}/. -newer ${EXTRACT_COOKIE} -type d \
+ ${_PKG_SILENT}${_PKG_DEBUG}\
+ for i in `${FIND} ${PREFIX}/. -newer ${EXTRACT_COOKIE} -type d \
| ${SED} \
-e s@${PREFIX}/./@@ \
-e '/^${PREFIX:S/\//\\\//g}\/.$$/d' \
@@ -3179,7 +3182,7 @@ print-PLIST:
-e s@${LOWER_VENDOR}@\$${LOWER_VENDOR}@ \
-e s@${LOWER_OPSYS}@\$${LOWER_OPSYS}@ \
-e s@${PKGNAME}@\$${PKGNAME}@ \
- | ${GREP} -v emul/linux/proc
+ | ${GREP} -v emul/linux/proc || ${TRUE}
.endif # target(print-PLIST)