Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2001 15:26:17 +0200
From:      Johann Visagie <wjv@FreeBSD.org>
To:        portmgr@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   USE_LIBTOOL breakage in freebsd.port.mk
Message-ID:  <20011004152617.J21830@fling.sanbi.ac.za>

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

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




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