pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk fix a file descriptor leak in the darwin PLIST so->...
details: https://anonhg.NetBSD.org/pkgsrc/rev/696fcd5fed02
branches: trunk
changeset: 471089:696fcd5fed02
user: danw <danw%pkgsrc.org@localhost>
date: Wed Mar 17 16:36:28 2004 +0000
description:
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:
mk/bsd.pkg.mk | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r eb3bca1d07df -r 696fcd5fed02 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Wed Mar 17 16:32:43 2004 +0000
+++ b/mk/bsd.pkg.mk Wed Mar 17 16:36:28 2004 +0000
@@ -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 @@
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 @@
/^([^\/]*\/)*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
Home |
Main Index |
Thread Index |
Old Index