Extend search range of FreeBSD-10 libtools/configure fixup (was: Re: FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build)

From: Stefan Esser <se_at_freebsd.org>
Date: Wed, 07 Dec 2011 10:02:45 +0100
Am 07.12.2011 09:32, schrieb Dimitry Andric:
> That said, you are most likely running into an issue with the fix for
> FreeBSD 10-CURRENT in bsd.port.mk, causing the lto-plugin stage
> configure script to fail.
> 
> This is because the gcc ports unpack their source code into
> ${WRKDIR}/gcc-${VERSIONSTRING}, and then override WRKSRC to
> ${WRKDIR}/build.  Since bsd.port.mk only applies the run-autotools-fixup
> to ${WRKSRC}, the gcc source itself is not properly fixed up.
> 
> You can try the attached patch, which fixes this (and fixes it for all
> other ports that override WKRSRC).

I had solved a similar problem for BDB a few weeks back and made the
same modification (start searching in WRKDIR instead of in WRKSRC).

This leads to (minimally) higher run time for the fixup, but it should
make a number of ports currently broken on FBSD10 automagically build
again ...

And the pattern for libtool/configure type files should sufficiently
prevent patching of files not touched by the current invocation of "find".

SO I'd vote to get that patch into SVN ...

Regards, STefan
Received on Wed Dec 07 2011 - 08:02:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC