You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three issues found during cross-platform testing (Ubuntu, FreeBSD, OpenBSD,
NetBSD, WASI):
1. CONFIG_ARGS missing precious env vars and build/host aliases (WASI):
- pyconf.py init_args(): reorder built-in precious vars to match
configure.ac's ac_precious_vars order (PKG_CONFIG before CC); remove
CXX/CXXFLAGS which configure.ac does not declare as precious.
- pyconf.py canonical_host(): insert build_alias/host_alias before the
first NAME=VALUE env-var entry, matching autoconf's arg ordering.
- pyconf.awk pyconf_env_var(): accumulate env vars in _pyconf_env_args
(separate from command-line flags) so ordering can be enforced.
- pyconf.awk pyconf_parse_args(): register built-in precious vars after
the arg loop (matching Python's init_args behaviour); use ordered split
to match ac_precious_vars sequence.
- pyconf.awk _pyconf_resolve_exports(): combine flags + aliases + env vars
in the correct order when building CONFIG_ARGS.
- pyconf.awk pyconf_canonical_host(): record build_alias/host_alias in a
separate _pyconf_alias_args accumulator.
- configure.awk: regenerated.
2. OpenSSL fallback paths wrong (NetBSD):
- conf_security.py: replace ad-hoc include-dir search with the ssldirs
list from AX_CHECK_OPENSSL (/usr/local/ssl, /usr/lib/ssl, /usr/ssl,
/usr/pkg, /usr/local, /usr) and set OPENSSL_INCLUDES/LDFLAGS properly.
3. Spurious blank lines in Makefile.pre (OpenBSD, diff -B unavailable):
- compare-conf.sh: strip blank lines from Makefile.pre before diffing to
work around the m4/_AS_QUOTE expansion artifact that adds extra newlines
to MODULE_BLOCK entries when values are shell variable references.
Assisted-by: Claude
if ((!((V["PKG_CONFIG"] != "") && (V["PKG_CONFIG"] != "no")))) {
6267
-
print "pkg-config is missing. Some dependencies may not be detected correctly." > "/dev/stderr"
6318
+
pyconf_warn("pkg-config is missing. Some dependencies may not be detected correctly.")
6268
6319
}
6269
6320
if (((V["Py_OPT"] != "yes") && (V["Py_DEBUG"] != "yes"))) {
6270
6321
pyconf_notice("\nIf you want a release build with all stable optimizations active (PGO, etc),\nplease run ./configure --enable-optimizations\n")
6271
6322
}
6272
6323
if ((V["PY_SUPPORT_TIER"] == 0)) {
6273
6324
cc = V["ac_cv_cc_name"]
6274
6325
host = V["host"]
6275
-
print "Platform \"" host "\" with compiler \"" cc "\" is not supported by the CPython core team, see https://peps.python.org/pep-0011/ for more information." > "/dev/stderr"
6326
+
pyconf_warn("Platform \"" host "\" with compiler \"" cc "\" is not supported by the CPython core team, see https://peps.python.org/pep-0011/ for more information.")
6276
6327
}
6277
6328
if ((!((V["ac_cv_header_stdatomic_h"] != "") && (V["ac_cv_header_stdatomic_h"] != "no")))) {
6278
-
print "Your compiler or platform does not have a working C11 stdatomic.h. A future version of Python may require stdatomic.h."
6329
+
pyconf_notice("Your compiler or platform does not have a working C11 stdatomic.h. A future version of Python may require stdatomic.h.")
6279
6330
}
6280
6331
}
6281
6332
@@ -7247,7 +7298,7 @@ function u_check_getrandom() {
0 commit comments