Date: Sat, 29 Nov 2003 17:37:01 -0800 (PST) From: Adam Weinberger <adamw@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/59811: speed up GNU configure (bsd.port.mk patch) Message-ID: <200311300137.hAU1b1Tk054378@freefall.freebsd.org> Resent-Message-ID: <200311300140.hAU1eIM7054485@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 59811 >Category: ports >Synopsis: speed up GNU configure (bsd.port.mk patch) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Nov 29 17:40:18 PST 2003 >Closed-Date: >Last-Modified: >Originator: Adam Weinberger >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #9: Tue Sep 16 16:58:42 PDT 2003 peter@freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386 >Description: Showing up with increasing frequency is a check for maximum command-line length in GNU configure. Depending on the machine, I've seen this take anywhere from 20 secs to about 1.5 minutes. This check is unnecessary, as the maximum command-line length has been empirically determined to be 16384 across the board. This sets a variable in CONFIGURE_ENV that passes this value explicitly. The only drawback would be if any machine has a different length, but I've not yet seen that to be the case anywhere. >How-To-Repeat: >Fix: --- cmdlen.patch begins here --- Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.474 diff -u -r1.474 bsd.port.mk --- bsd.port.mk 24 Nov 2003 01:08:41 -0000 1.474 +++ bsd.port.mk 30 Nov 2003 01:27:07 -0000 @@ -2430,6 +2430,7 @@ .if defined(GNU_CONFIGURE) CONFIGURE_ARGS+= --prefix=${PREFIX} ${CONFIGURE_TARGET} +CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=16384 #maximum command-line length HAS_CONFIGURE= yes .endif --- cmdlen.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311300137.hAU1b1Tk054378>