[Bug 286081] devel/py3c: don't let MAKEFLAGS pollute gmake invocation

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Apr 2025 20:59:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286081

            Bug ID: 286081
           Summary: devel/py3c: don't let MAKEFLAGS pollute gmake
                    invocation
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: lev@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
             Flags: maintainer-feedback?(lev@FreeBSD.org)
          Assignee: lev@FreeBSD.org

Arguments passed to make for the top level port build for devel/py3c can be
consumed by gmake used to build the actual upstream project (vs the ports
infrastructure 'make' operations).

For instance, 'make -DNO_DEPENDS stage' will pass "MAKEFLAGS= -D NO_DEPENDS
..." in the environment to the gmake invocation.  gmake chokes on that with the
following:


: invalid option -- D
Usage: gmake [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
 .
 .

A fix for that is to clear the environment as with the ports
572f2361692640bc27729191b1267aa3fcc354a7 commit that added SETENVI and WRK_ENV.

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