From owner-freebsd-stable Tue Mar 18 22: 0:25 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B772037B401 for ; Tue, 18 Mar 2003 22:00:22 -0800 (PST) Received: from mail.redlinenetworks.com (mail.redlinenetworks.com [216.136.145.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D9043FA3 for ; Tue, 18 Mar 2003 22:00:20 -0800 (PST) (envelope-from sewall@ix.netcom.com) Received: from ix.netcom.com (melkor.redlinenetworks.com [192.168.0.8]) by mail.redlinenetworks.com (8.11.6/8.11.1) with ESMTP id h2J60Gw35335; Tue, 18 Mar 2003 22:00:16 -0800 (PST) (envelope-from sewall@ix.netcom.com) Message-ID: <3E780770.3060808@ix.netcom.com> Date: Tue, 18 Mar 2003 22:00:16 -0800 From: Scott Sewall User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 To: Adrian Steinmann Cc: stable@freebsd.org Subject: Re: make release failure References: <200303181820.TAA12076@marabu.marabu.ch> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Adrian, Thanks for the patch. One point I'm hoping you can clarify. Do I apply the patch to the bsd.port.mk within the chroot'd environment used by 'make release', or to /usr/share/mk/bsd.port.mk? Thanks! -- Scott Adrian Steinmann wrote: > wrote: > I'm trying to run make release of RELENG_4 on i386, and am getting the following error: > > checking for BSD-compatible nm... /usr/bin/nm -B > /ltconfig: Can't open /ltconfig: No such file or directory > configure: error: libtool configure failed > ===> Script "configure" failed unexpectedly. > ... > > Stop in /usr/ports/textproc/jade. > ... > >jade has USE_LIBTOOL in it's Makefile, but it configures itself >*before* it goes and builds libtool, so when 'make jade' finally >comes back (after it installs the prerequisites expat, iconv, >gettext, and gmake) the patch-libtool target has already run (a >no-op in this case) because it's in the _CONFIGURE_SEQ (see >usr/ports/Mk/bsd.port.mk) and the ltconfig path is of course not >patched, hence /ltconfig. > >You can observe this by doing a chroot into the CHROOTDIR hierarchy, >cd /usr/ports/textproc/jade, rm work/.config*; make configure which >lo' and behold will *not* fail. If you then 'pkg_delete -x libtool', >then 'make configure' will fail again. > >I've fixed this locally by forcing USE_LIBTOOL to create a *PATCH* >dependancy instead of a BUILD dependancy (it is actually a CONFIGURE >dependancy, but we have no such hooks) in bsd.port.mk: > >Index: bsd.port.mk >=================================================================== >RCS file: /usr/cvs/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 18 Mar 2003 17:37:20 -0000 >@@ -1226,7 +1226,7 @@ > > .if defined(USE_LIBTOOL) > GNU_CONFIGURE= yes >-BUILD_DEPENDS+= libtool:${PORTSDIR}/devel/libtool >+PATCH_DEPENDS+= libtool:${PORTSDIR}/devel/libtool > .if defined(USE_AUTOCONF) > LIBTOOLFILES?= aclocal.m4 > .else > >See also http://www.freebsd.org/cgi/query-pr.cgi?pr=50103 > >Adrian > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message