From owner-freebsd-ports@FreeBSD.ORG Sat Jan 19 15:04:27 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5511EFAB; Sat, 19 Jan 2013 15:04:27 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) by mx1.freebsd.org (Postfix) with ESMTP id E50A6F15; Sat, 19 Jan 2013 15:04:26 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id r0JF4KbQ092237; Sat, 19 Jan 2013 10:04:25 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <50FAB5F4.509@m5p.com> Date: Sat, 19 Jan 2013 10:04:20 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120908 Thunderbird/15.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org, freebsd-current@freebsd.org Subject: Re: Circular port dependency References: <50EF6935.3070000@m5p.com> <20130111082226.GA2969@reks> <50F0B13B.1050708@m5p.com> In-Reply-To: <50F0B13B.1050708@m5p.com> Content-Type: multipart/mixed; boundary="------------060204020609010307000507" X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Sat, 19 Jan 2013 10:04:26 -0500 (EST) Cc: Gleb Kurtsou X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 15:04:27 -0000 This is a multi-part message in MIME format. --------------060204020609010307000507 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 01/11/13 19:41, George Mitchell wrote: > On 01/11/13 03:22, Gleb Kurtsou wrote: >> On (10/01/2013 20:21), George Mitchell wrote: >>> I grabbed the ports tree as of 308518, the RELEASE_9_1_0 tag. >>> devel/libtool won't build, because it requires autom4te during the >>> configure phase. So I put "BUILD_DEPENDS= autom4te:devel/autoconf" >>> in the Makefile. But autoconf depends on gmake, which depends on >>> gettext, which depends on libiconv, which depends on libtool. >>> What to do? >> [...] It turns out that my problem was due to compiling on the Raspberry Pi, a machine that is slow enough that this post-configure target in the port's top-level Makefile: post-configure: @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f could end up setting the last write time for config.status earlier than the last write time for configure, thereby triggering this make rule in the port's own Makefile: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck It's this "--recheck" that would cause the build to try to run autom4ke, leading to the circular dependency. So the correct fix is as attached, guaranteeing that the config.status modification time will always be later. I'm not entirely sure why the post-configure rule is there in the first place, and svnweb.freebsd.org refuses to show me anything in ports/head/devel below liglogging. I was trying to look at the log for ports/devel/Makefile to see how the post-configure rule got there, because simply removing it also appears to make the build succeed. But I assume it's there for some reason, and this fix seems to be less antagonistic than removing the whole rule. -- George --------------060204020609010307000507 Content-Type: text/plain; charset=us-ascii; name="libtool-Makefile.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="libtool-Makefile.patch" --- Makefile.orig 2013-01-10 19:56:02.000000000 -0500 +++ Makefile 2013-01-19 09:44:24.000000000 -0500 @@ -34,6 +34,6 @@ ${WRKSRC}/configure ${WRKSRC}/libltdl/configure post-configure: - @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f + @${FIND} ${WRKSRC} -type f -name config.status | ${XARGS} ${TOUCH} -f .include --------------060204020609010307000507--