From owner-freebsd-ports Fri Jan 24 1: 2:27 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0A4B37B401 for ; Fri, 24 Jan 2003 01:02:24 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-64-169-106-48.dsl.lsan03.pacbell.net [64.169.106.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id C031C43F18 for ; Fri, 24 Jan 2003 01:02:18 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 4EF2E66B3A for ; Fri, 24 Jan 2003 01:02:18 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 2ECD61656; Fri, 24 Jan 2003 01:02:18 -0800 (PST) Date: Fri, 24 Jan 2003 01:02:18 -0800 From: Kris Kennaway To: ports@FreeBSD.org Subject: Patch for _TMLINKS errors in 'make index' Message-ID: <20030124090217.GA94647@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The following patch seems to fix the error messages spewed out by 'make index' when running the 'describe' target on the cdk and openssl-beta ports. The errors occur because these ports have a huge number of MLINKS, and they overflow the command line in a bsd.port.mk variable assignment. I'm not entirely happy with the way I ended up fixing the problem (thanks to fenner for the suggestion), but I couldn't find a better one. I haven't yet tested this patch extensively for other port operations, so I'd appreciate any feedback about problems it causes. Kris Index: bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /mnt2/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.437 diff -u -r1.437 bsd.port.mk --- bsd.port.mk 5 Dec 2002 22:43:22 -0000 1.437 +++ bsd.port.mk 24 Jan 2003 07:30:59 -0000 @@ -1997,6 +1997,15 @@ .endfor .endfor .endif +_COUNT=3D0 +.for ___tpmlinks in ${_MLINKS} +.if ${_COUNT} =3D=3D "1" +_TMLINKS+=3D ${___tpmlinks} +_COUNT=3D0 +.else +_COUNT=3D1 +.endif +.endfor =20 .for lang in ${MANLANG} =20 @@ -2016,9 +2025,7 @@ =20 .endfor =20 -.if defined(_MLINKS) -_TMLINKS!=3D ${ECHO_CMD} ${_MLINKS} | ${AWK} '{for (i=3D2; i<=3DNF; i+=3D2= ) print $$i}' -.else +.if !defined(_MLINKS) _TMLINKS=3D .endif =20 --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+MQEZWry0BWjoQKURAu+2AKCFFXWjJqCxSn/5TNXARjQiiu1T8ACgwyP8 w/ZHl+z4cedJNVSkqLOfQm0= =LeQU -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message