summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordanw <danw@pkgsrc.org>2004-03-17 16:36:28 +0000
committerdanw <danw@pkgsrc.org>2004-03-17 16:36:28 +0000
commit2e9fe0335166ef252b33d5f386937523d49b714e (patch)
treea8439800c75ac6f9b87e11c43afe9f6b1fb85041 /mk
parentc781e5e798a46590801abc6911a88ec6820e3f35 (diff)
downloadpkgsrc-2e9fe0335166ef252b33d5f386937523d49b714e.tar.gz
fix a file descriptor leak in the darwin PLIST so->dylib translation
script that broke packages that installed too many shared libraries (eg libwww).
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index e7ea970f24d..a6595cd250f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1423 2004/03/13 20:58:06 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1424 2004/03/17 16:36:28 danw Exp $
#
# This file is in the public domain.
#
@@ -2923,7 +2923,9 @@ _DYLIB_AWK= \
print lines[i]; \
if (rels[i] != "") { \
print rels[i]; \
- "${LS} -l ${PREFIX}/" rels[i] | getline tgt; \
+ cmd = "${LS} -l ${PREFIX}/" rels[i]; \
+ cmd | getline tgt; \
+ close(cmd); \
gsub(".* ", "", tgt); \
if (tgts[tgt] == "") { \
tgts[tgt] = tgt; \
@@ -4981,7 +4983,7 @@ _PLIST_AWK_ADD_MANZ= \
/^([^\/]*\/)*man\/([^\/]*\/)?(man[1-9ln]\/.*[1-9ln]|cat[1-9ln]\/.*0)$$/ { \
$$0 = $$0 ".gz"; \
}
-
+
# plist awk pattern-action statement to handle PLIST_SUBST substitutions
# BEWARE: the awk script quote is closed and reopened around the
# string argument of gsub() calls so historic quoting semantic of