Date: Thu, 14 Jun 2012 09:48:28 -0300 From: Jan Beich <jbeich@tormail.org> To: Andriy Gapon <avg@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: sanity-config issue Message-ID: <1Sf9TI-0006O2-8s@internal.tormail.org> In-Reply-To: <4FD8624F.6080104@FreeBSD.org> (Andriy Gapon's message of "Wed, 13 Jun 2012 12:50:07 %2B0300") References: <4FD8624F.6080104@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon <avg@FreeBSD.org> writes: > In some ports I am getting an error message about how make doesn't know how to > make sanity-config after exiting from config menu. > I see that there is > @${MAKE} sanity-config > line at the end of the config target script. > > I use WRKDIRPREFIX=/usr/obj and I noticed that e.g. in the case of > mail/thunderbird port the make command was being run from > /usr/obj/usr/ports/mail/thunderbird. > > My workaround was to prepend "cd ${.CURDIR};" before the make command. > I see that this is a popular theme in bsd.port.mk, but I am not sure why it is > needed and if my workaround is actually correct. I can confirm your workaround also works for broken fetch-url{,all}-list target when MAKEOBJDIRPREFIX and WRKDIPREFIX share directory, e.g. $ cd devel/gmake $ env -i make fetch-urlall-list http://ftp.gnu.org/gnu/make/make-3.82.tar.bz2 ftp://ftp.gnu.org/gnu/make/make-3.82.tar.bz2 http://www.gtlib.gatech.edu/pub/gnu/gnu/make/make-3.82.tar.bz2 http://mirrors.kernel.org/gnu/make/make-3.82.tar.bz2 ftp://ftp.kddlabs.co.jp/GNU/make/make-3.82.tar.bz2 ftp://ftp.dti.ad.jp/pub/GNU/make/make-3.82.tar.bz2 http://ring.nict.go.jp/archives/GNU/make/make-3.82.tar.bz2 ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/make/make-3.82.tar.bz2 ftp://ftp.informatik.hu-berlin.de/pub/gnu/gnu/make/make-3.82.tar.bz2 ftp://ftp.informatik.rwth-aachen.de/pub/mirror/ftp.gnu.org/pub/gnu/make/make-3.82.tar.bz2 http://ftp.funet.fi/pub/gnu/prep/make/make-3.82.tar.bz2 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/make-3.82.tar.bz2 $ mkdir -p $(env -i WRKDIRPREFIX=/tmp make -V WRKDIR) $ env -i MAKEOBJDIRPREFIX=/tmp make fetch-urlall-list make: don't know how to make fetch-url-list-int. Stop *** [fetch-urlall-list] Error code 2 Stop in /usr/ports/devel/gmake. > > Hope that this is useful.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1Sf9TI-0006O2-8s>