svn commit: r337822 - head/math/parmetis
Tijl Coosemans
tijl at FreeBSD.org
Sat Dec 28 16:43:52 UTC 2013
On Fri, 27 Dec 2013 22:56:50 +0000 (UTC) John Marino wrote:
> Author: marino
> Date: Fri Dec 27 22:56:50 2013
> New Revision: 337822
> URL: http://svnweb.freebsd.org/changeset/ports/337822
>
> Log:
> math/parmetis: Unbreak on FreeBSD 10+
>
> ParMetis requires both cmake and gmake. Apparently gmake sets ${MAKE}
> to value of "make" if undefined, and this causes the bmake to be launched
> for subdirectories rather than gmake. That's the cause of the build
> failure for FreeBSD 10+. The eventual fix using MAKE_ARGS took me hours
> to figure out, this drove me crazy!
gmake does set MAKE correctly. You can test that with a simple
Makefile like:
all:
@echo ${MAKE}
The problem is that the code Makefile runs "make -C $(BUILDDIR) $@
$(MAKEFLAGS)". MAKEFLAGS is not meant to be passed on the command
line like that because it doesn't contain command line flags. It only
contains single letters so "d" instead of "-d".
Bmake sets this to "w" when it calls gmake like gmake does for its own
submakes to get Entering/Leaving messages. This happens in do-build
with USES=gmake.
With the attached patch the port still builds for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parmetis.patch
Type: text/x-patch
Size: 701 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20131228/2c6e2a57/attachment.bin>
More information about the svn-ports-head
mailing list