From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 12 04:20:22 2003 Return-Path: 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 0687137B405 for ; Sat, 12 Jul 2003 04:20:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DA5043FE0 for ; Sat, 12 Jul 2003 04:20:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6CBKKUp094189 for ; Sat, 12 Jul 2003 04:20:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6CBKJ1d094187; Sat, 12 Jul 2003 04:20:19 -0700 (PDT) Resent-Date: Sat, 12 Jul 2003 04:20:19 -0700 (PDT) Resent-Message-Id: <200307121120.h6CBKJ1d094187@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, Alex Kiesel Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E7C037B404 for ; Sat, 12 Jul 2003 04:15:08 -0700 (PDT) Received: from mxintern.kundenserver.de (mxintern.kundenserver.de [212.227.126.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE3FB43FA3 for ; Sat, 12 Jul 2003 04:15:07 -0700 (PDT) (envelope-from kiesel@schlund.de) Received: from [172.17.29.6] (helo=alex.i.schlund.de) by mxintern.kundenserver.de with smtp (Exim 3.35 #1) id 19bILK-0001FW-00 for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Jul 2003 13:15:06 +0200 Received: (qmail 48460 invoked by uid 519); 12 Jul 2003 11:15:06 -0000 Message-Id: <20030712111506.48459.qmail@alex.i.schlund.de> Date: 12 Jul 2003 11:15:06 -0000 From: Alex Kiesel To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/54412: USE_LIBTOOL_VER overwrites autoconf-PATH X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Kiesel List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 11:20:22 -0000 >Number: 54412 >Category: ports >Synopsis: USE_LIBTOOL_VER overwrites autoconf-PATH >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 12 04:20:19 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Alex Kiesel >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: System: FreeBSD alex.i.schlund.de 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Apr 11 16:29:20 CEST 2003 root@alex.i.schlund.de:/usr/obj/usr/src/sys/KNORKE i386 >Description: When using USE_LIBTOOL_VER in a ports Makefile, various environment variables are extended with the supplied path to the libtool executables. The same is done when having USE_AUTOMAKE_VER or USE_AUTOCONF_VER, so e.g. SCRIPTS_ENV ends up like this: PORTOBJFORMAT=elf PATH=/usr/local/libexec/autoconf213:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/root/bin PATH=/usr/local/libexec/libtool13:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/root/bin BSD_INSTALL_PROGRAM=install -c -s -o root -g wheel -m 555 BSD_INSTALL_SCRIPT=install -c -o root -g wheel -m 555 BSD_INSTALL_DATA=install -c -o root -g wheel -m 444 BSD_INSTALL_MAN=install -c -o root -g wheel -m 444 CURDIR=/mnt/home/alex/libtoolbug DISTDIR=/usr/ports/distfiles WRKDIR=/mnt/home/alex/libtoolbug/work WRKSRC=/mnt/home/alex/libtoolbug/work/php-gtk-0.5.2 PATCHDIR=/mnt/home/alex/libtoolbug/files SCRIPTDIR=/mnt/home/alex/libtoolbug/scripts FILESDIR=/mnt/home/alex/libtoolbug/files PORTSDIR=/usr/ports DEPENDS= PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/X11R6 The PATH= setting shows up twice with the last entry overwriting the first one. As a consequence, either libtool is in the current path or autoconf/automake, whichever is in the 'last' PATH. This breaks e.g. PHP's phpize. >How-To-Repeat: Use a Makefile like this (showing only the essential lines): USE_LIBTOOL_VER= 14 USE_AUTOMAKE_VER= 15 USE_AUTOCONF_VER= 253 pre-configure: @${ECHO_MSG} ${SCRIPTS_ENV} >Fix: >Release-Note: >Audit-Trail: >Unformatted: