Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 01:02:18 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        ports@FreeBSD.org
Subject:   Patch for _TMLINKS errors in 'make index'
Message-ID:  <20030124090217.GA94647@rot13.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030124090217.GA94647>