From owner-freebsd-ports-bugs Sat Feb 8 21:20:12 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFF8437B401 for ; Sat, 8 Feb 2003 21:20:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6A7C43FBF for ; Sat, 8 Feb 2003 21:20:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h195K8NS069808 for ; Sat, 8 Feb 2003 21:20:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h195K8pV069807; Sat, 8 Feb 2003 21:20:08 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EE8537B401 for ; Sat, 8 Feb 2003 21:11:10 -0800 (PST) Received: from woolridge.ca (ip30-166.tor.istop.com [66.11.166.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AB3243FBD for ; Sat, 8 Feb 2003 21:11:09 -0800 (PST) (envelope-from dwoolrid@woolridge.ca) Received: (qmail 21429 invoked by uid 1000); 9 Feb 2003 05:11:02 -0000 Message-Id: <20030209051102.21428.qmail@najla.woolridge.ca> Date: 9 Feb 2003 05:11:02 -0000 From: Dale Woolridge Reply-To: Dale Woolridge To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/48107: port builds with large MLINKS definitions cause bsd.port.mk to produce errors Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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