sanity-config issue
Jan Beich
jbeich at tormail.org
Thu Jun 14 12:50:25 UTC 2012
Andriy Gapon <avg at 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.
More information about the freebsd-ports
mailing list