From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 22 01:30:27 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 594B516A492 for ; Fri, 22 Sep 2006 01:30:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCF6143D5E for ; Fri, 22 Sep 2006 01:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8M1ULDo034154 for ; Fri, 22 Sep 2006 01:30:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8M1ULHq034149; Fri, 22 Sep 2006 01:30:21 GMT (envelope-from gnats) Resent-Date: Fri, 22 Sep 2006 01:30:21 GMT Resent-Message-Id: <200609220130.k8M1ULHq034149@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Reed A. Cartwright" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE24A16A40F for ; Fri, 22 Sep 2006 01:26:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CAE343D66 for ; Fri, 22 Sep 2006 01:26:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8M1QIsB086339 for ; Fri, 22 Sep 2006 01:26:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k8M1QIJs086338; Fri, 22 Sep 2006 01:26:18 GMT (envelope-from nobody) Message-Id: <200609220126.k8M1QIJs086338@www.freebsd.org> Date: Fri, 22 Sep 2006 01:26:18 GMT From: "Reed A. Cartwright" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/103471: port gnu-automake installs old config.guess and old config.sub X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 01:30:27 -0000 >Number: 103471 >Category: ports >Synopsis: port gnu-automake installs old config.guess and old config.sub >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 22 01:30:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Reed A. Cartwright >Release: 6.1-RELEASE >Organization: NCSU >Environment: FreeBSD orochi.scit.us 6.1-STABLE FreeBSD 6.1-STABLE #4: Wed Sep 6 20:31:18 EDT 2006 reed@orochi.scit.us:/usr/obj/usr/src/sys/SMP i386 >Description: The gnu-automake port is supposed to be an unmodified installation of automake. However, because GNU_CONFIGURE is set in the port's Makefile, the portsystem will replace config.sub and config.guess in the work directory with FreeBSD preferred versions. See the following section from Mk/bsd.port.mk. ================================================== .if !target(do-configure) do-configure: @if [ -f ${SCRIPTDIR}/configure ]; then \ cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} \ ${SCRIPTDIR}/configure; \ fi .if defined(GNU_CONFIGURE) @CONFIG_GUESS_DIRS=$$(${FIND} ${WRKDIR} -name config.guess -o -name config.sub \ | ${XARGS} -n 1 ${DIRNAME}); \ for _D in $${CONFIG_GUESS_DIRS}; do \ ${CP} -f ${TEMPLATES}/config.guess $${_D}/config.guess; \ ${CHMOD} a+rx $${_D}/config.guess; \ ${CP} -f ${TEMPLATES}/config.sub $${_D}/config.sub; \ ${CHMOD} a+rx $${_D}/config.sub; \ done .endif ==================================================== This is appropriate for installing normal ports of FreeBSD but not for gnu-automake because it replaces the config.sub and config.guess that gnu-automake installs into the /usr/local/gnu-autotools directory. This leads to outdated config.guess and config.sub being packaged with software developed on FreeBSD. >How-To-Repeat: Install gnu-autotools. or compare config.guess in the work directory after make patch and after make configure. >Fix: The following script is a work around for installing gnu-autotools ==================================================== #!/bin/sh cd /usr/ports/devel/gnu-automake make clean make install make clean make patch cp work/automake-1.9.6/lib/config.guess /usr/local/gnu-autotools/share/automake-1.9/config.guess cp work/automake-1.9.6/lib/config.sub /usr/local/gnu-autotools/share/automake-1.9/config.sub chown root:wheel /usr/local/gnu-autotools/share/automake-1.9/config.guess chown root:wheel /usr/local/gnu-autotools/share/automake-1.9/config.sub chmod 555 /usr/local/gnu-autotools/share/automake-1.9/config.guess chmod 555 /usr/local/gnu-autotools/share/automake-1.9/config.sub make clean ====================================================== A full solution would be to create pre-configure and post-configure rules in the port's make file, that save a copy of the config.guess and config.sub before configure is run and then restores them afterwards. That way the port's configure uses the proper freebsd config.guess and config.sub, but it installs GNU's versions into the gnu-autotools directory. >Release-Note: >Audit-Trail: >Unformatted: