This patch: - updates the test to run GNU make; - Strips all configure arguments of the form `--XXXdir=YYY` from the configure lines used to build the new Python tree, since these override the temporary --prefix being used for the test. This patch comes from OmniOS. --- Python-3.14.0/Tools/freeze/test/freeze.py.orig +++ Python-3.14.0/Tools/freeze/test/freeze.py @@ -6,6 +6,7 @@ import sysconfig from test import support +import re def get_python_source_dir(): src_dir = sysconfig.get_config_var('abs_srcdir') @@ -18,7 +19,7 @@ TOOL_ROOT = os.path.dirname(TESTS_DIR) SRCDIR = get_python_source_dir() -MAKE = shutil.which('make') +MAKE = shutil.which('gmake') FREEZE = os.path.join(TOOL_ROOT, 'freeze.py') OUTDIR = os.path.join(TESTS_DIR, 'outdir') @@ -129,6 +130,7 @@ print(f'configuring python in {builddir}...') config_args = shlex.split(sysconfig.get_config_var('CONFIG_ARGS') or '') cmd = [os.path.join(srcdir, 'configure'), *config_args] + cmd = [c for c in cmd if not re.search(r'^--.*dir=', c)] ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache')) prefix = os.path.join(outdir, 'python-installation') ensure_opt(cmd, 'prefix', prefix)