[Bug 277492] lang/ghc fails build/install gmake invalid option -- D

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Mar 2024 16:50:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277492

--- Comment #15 from Tijl Coosemans <tijl@FreeBSD.org> ---
(In reply to Gleb Popov from comment #14)
Grep for 'gmake|GMAKE|MAKE_CMD' to find suspicious lines.  These are the ones
in lang/ghc/Makefile:

$ egrep -n 'gmake|GMAKE|MAKE_CMD' lang/ghc/Makefile
20:USES=                        autoreconf compiler:c11 gmake \
215:    cd ${BOOT_DIR} && ${MAKE_CMD} PACKAGES='' install
276:            && ${GMAKE} binary-dist TAR_COMP=xz \
295:            && ${GMAKE} binary-dist TAR_COMP=xz \

It looks like 215 is the one from comment 0.  You can replace that line with:

        cd ${BOOT_DIR} && ${SETENVI} ${WRK_ENV} ${MAKE_CMD} PACKAGES='' install

Line 276 and 295 would become:

                && ${SETENVI} ${WRK_ENV} ${GMAKE} binary-dist TAR_COMP=xz \

For testing you can put something like this in make.conf
(/usr/local/etc/poudriere.d/make.conf):

.MAKEFLAGS+=    -D __GMAKE_TRAP__

If a port fails to build with this then there are more commands that need
SETENVI.

-- 
You are receiving this mail because:
You are the assignee for the bug.