Date: 9 Feb 2003 05:11:02 -0000 From: Dale Woolridge <dale-freebsd-pr-submit-2@woolridge.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48107: port builds with large MLINKS definitions cause bsd.port.mk to produce errors Message-ID: <20030209051102.21428.qmail@najla.woolridge.ca>
next in thread | raw e-mail | index | archive | help
>Number: 48107 >Category: ports >Synopsis: port builds with large MLINKS definitions cause bsd.port.mk to produce errors >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 08 21:20:08 PST 2003 >Closed-Date: >Last-Modified: >Originator: Dale Woolridge >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD najla.woolridge.ca 4.7-STABLE FreeBSD 4.7-STABLE #2: Mon Feb 3 17:45:35 EST 2003 root@najla.woolridge.ca:/usr/obj/usr/src/sys/NAJLA i386 >Description: The security/openssl port defines MLINKS with a very large number of entries. When bsd.port.mk (line 2020) tries to construct _TMLINKS, it shells out, but kern.argmax is exceeded so the _TMLINKS assignment fails producing full (65k) output of the error. >How-To-Repeat: Try to build the security/openssl port. >Fix: Apply this patch to /usr/ports/Mk/bsd.port.mk --- bsd.port.mk.orig Sat Feb 8 23:33:25 2003 +++ bsd.port.mk.new Sat Feb 8 23:54:47 2003 @@ -2018,4 +2018,13 @@ _MANPAGES+= ${MANN:S%^%${MANNPREFIX}/man +_M_TEMP= .if defined(_MLINKS) -_TMLINKS!= ${ECHO_CMD} ${_MLINKS} | ${AWK} '{for (i=2; i<=NF; i+=2) print $$i}' +. for _M in ${_MLINKS} +. if !empty(_M_TEMP) +_TMLINKS+= ${_M} +_M_TEMP= +. else +_M_TEMP=x +. endif +. endfor +.undef _M_TEMP .else @@ -2023,2 +2032,3 @@ _TMLINKS= .endif + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030209051102.21428.qmail>