From owner-freebsd-ports Thu Oct 4 6:26:39 2001 Delivered-To: freebsd-ports@freebsd.org Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119]) by hub.freebsd.org (Postfix) with ESMTP id 5641637B403; Thu, 4 Oct 2001 06:26:25 -0700 (PDT) Received: from johann by fling.sanbi.ac.za with local (Exim 3.13 #4) id 15p8W1-0007vQ-00; Thu, 04 Oct 2001 15:26:17 +0200 Date: Thu, 4 Oct 2001 15:26:17 +0200 From: Johann Visagie To: portmgr@FreeBSD.org Cc: ports@FreeBSD.org Subject: USE_LIBTOOL breakage in freebsd.port.mk Message-ID: <20011004152617.J21830@fling.sanbi.ac.za> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LpQ9ahxlCli8rRTG" Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've now come across two packages - iODBC (http://www.iodbc.org/) and ORBit-C++ (http://orbitcpp.sourceforge.net/) which ship with an autoconf 2.13-generated configure script containing the following line: ltmain="$ac_aux_dir/ltmain.sh" The value of ${ltmain} is later tested for file existence in order to determine whether to build the libtool script: if test -f "$ltmain"; then <> fi In updating/creating ports for these packages, I found that if USE_LIBTOOL is defined, the patch-libtool target in bsd.port.mk munges the line where ${ltmain} is defined to become: ltmain="--disable-ltlibs /usr/local/share/libtool/ltmain.sh" This of course fails the "test -f", with the result that libtool is never created and the port build breaks. Attached is a patch for bsd.port.mk to work around the problem. Comments? -- V --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bsd.port.mk.diff" Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.382 diff -u -r1.382 bsd.port.mk --- bsd.port.mk 2001/09/28 16:45:15 1.382 +++ bsd.port.mk 2001/10/04 13:15:28 @@ -2209,7 +2209,7 @@ for file in ${LIBTOOLFILES}; do \ ${CP} $$file $$file.tmp; \ ${SED} -e "s^\$$ac_aux_dir/ltconfig^$${LIBTOOLDIR}/ltconfig^g" \ - -e "s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} $${LIBTOOLDIR}/ltmain.sh^g" \ + -e "/^ltmain=/!s^\$$ac_aux_dir/ltmain.sh^${LIBTOOLFLAGS} $${LIBTOOLDIR}/ltmain.sh^g" \ $$file.tmp > $$file; \ done); .endif --LpQ9ahxlCli8rRTG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message