CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]  2026/11/23 06:51:25

Modified files:
        www/mozilla    : mozilla.port.mk 

Log message:
www/mozilla/mozilla.port.mk: add support to drive the build with 'mach'

since #2038789 we've seen that the 'legacy' method of running
CONFIGURE_SCRIPT and MAKE is a bit less tested, and will eventually be
completely unsupported/deprecated in the coming year.

add MOZILLA_USE_MACH knob, that if defined will:
- set do-{configure,build,install} targets to run the steps via ${WRKSRC}/mach,
passing various CONFIGURE_ARGS/MAKE_FLAGS/PARALLEL_MAKE_FLAGS/MAKE_ENV/etc.
- add MOZBUILD_STATE_PATH=${WRKDIR} to MAKE_ENV/CONFIGURE_ENV so that
mach stores it state in a throwaway dir that _pbuild can write
- adds MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none to MAKE_ENV so that
mach doesnt try running pip (and horribly blow)

if MOZILLA_USE_MACH isnt defined (eg default), set
CONFIGURE_STYLE=simple and CONFIGURE_SCRIPT?=configure.py, as it's
already defined this way in all consumers.
inconditionally add MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none to
CONFIGURE_ENV while here, its required since #2026497. and already set
in all/most consumers.

while the breakage seen in #2038789 should be fixed in time for 162, and
thus we dont need to switch to mach right now, at least everything is in
place to switch. in all cases, mozilla-firefox, firefox-esr and
mozilla-thunderbird ports have been tested building fine with mach, so..
looking good.

Reply via email to