Date: Mon, 17 Mar 2003 11:57:20 +0100 (CET) From: Hartmut Brandt <brandt@fokus.fraunhofer.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50069: patch-libtool target fragile in bsd.port.mk Message-ID: <200303171057.h2HAvKhZ065861@beagle.fokus.fraunhofer.de>
next in thread | raw e-mail | index | archive | help
>Number: 50069 >Category: ports >Synopsis: patch-libtool target fragile in bsd.port.mk >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: Mon Mar 17 03:00:28 PST 2003 >Closed-Date: >Last-Modified: >Originator: Hartmut Brandt >Release: FreeBSD 5.0-CURRENT i386 >Organization: Farunhofer Fokus >Environment: System: FreeBSD beagle.fokus.fraunhofer.de 5.0-CURRENT FreeBSD 5.0-CURRENT #17: Mon Mar 10 16:42:18 CET 2003 hbb@beagle.fokus.fraunhofer.de:/opt/obj/usr/src/sys/BEAGLE i386 >Description: When the path component that contains libtool ends in as slash (which is perfectly legal), the patch-libtool target does the wrong thing - it patches the wrong pathname into the scripts. >How-To-Repeat: Set your path to contain /usr/local/bin/ (observe the trailing slash) and try to build a port which uses patch-libtool. See it failing mysteriously. >Fix: The reason is the sed command that does the patching. Apply the following patch: Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.442 diff -u -r1.442 bsd.port.mk --- bsd.port.mk 12 Mar 2003 00:28:17 -0000 1.442 +++ bsd.port.mk 17 Mar 2003 10:56:18 -0000 @@ -3134,7 +3134,7 @@ ${ECHO_CMD} "and reinstall ${PORTSDIR}/devel/libtool."; \ exit 1); \ fi; \ - LIBTOOLDIR=`${WHICH} ${LIBTOOL} | ${SED} -e 's^/bin/libtool^/share/libtool^'` || ${LOCALBASE}/share/libtool; \ + LIBTOOLDIR=`${WHICH} ${LIBTOOL} | ${SED} -e 's^/bin//*libtool^/share/libtool^'` || ${LOCALBASE}/share/libtool; \ cd ${PATCH_WRKSRC}; \ for file in ${LIBTOOLFILES}; do \ ${CP} $$file $$file.tmp; \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303171057.h2HAvKhZ065861>