claim maintainership on the new port - not doing that with the previous commit by wen@ to have a clear distinction who contributed what. - require archivers/zstd since it's part of the Python standard library: https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-zstandard - refresh Makefile.pre.in patch - skip test_gdb without WITH_DEBUG test_gdb has test_pretty_print, which requires debug symbols. Skip it if WITH_DEBUG is not defined. - drop --with-system-ffi configure option, which is no longer supported and its behaviour is now the default - move sqlite3 extension back into port because the separate port fails to build (mark the external python:-3.13) PR: 282176
63 lines
3.4 KiB
Plaintext
63 lines
3.4 KiB
Plaintext
--- Makefile.pre.in.orig 2025-11-01 17:59:00 UTC
|
|
+++ Makefile.pre.in
|
|
@@ -84,7 +84,6 @@ BASECPPFLAGS= @BASECPPFLAGS@
|
|
OPT= @OPT@
|
|
BASECFLAGS= @BASECFLAGS@
|
|
BASECPPFLAGS= @BASECPPFLAGS@
|
|
-CONFIGURE_CFLAGS= @CFLAGS@
|
|
# CFLAGS_NODIST is used for building the interpreter and stdlib C extensions.
|
|
# Use it when a compiler flag should _not_ be part of the distutils CFLAGS
|
|
# once Python is installed (Issue #21121).
|
|
@@ -96,18 +95,16 @@ CONFIGURE_LDFLAGS_NOLTO=@LDFLAGS_NOLTO@
|
|
# LDFLAGS_NOLTO is an extra flag to disable lto. It is used to speed up building
|
|
# of _bootstrap_python and _freeze_module tools, which don't need LTO.
|
|
CONFIGURE_LDFLAGS_NOLTO=@LDFLAGS_NOLTO@
|
|
-CONFIGURE_CPPFLAGS= @CPPFLAGS@
|
|
-CONFIGURE_LDFLAGS= @LDFLAGS@
|
|
# Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the
|
|
# command line to append to these values without stomping the pre-set
|
|
# values.
|
|
-PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
|
|
+PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CFLAGS) $(EXTRA_CFLAGS)
|
|
PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) -I$(srcdir)/Include/internal -I$(srcdir)/Include/internal/mimalloc
|
|
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
|
|
# be able to build extension modules using the directories specified in the
|
|
# environment variables
|
|
-PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
|
|
-PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
|
|
+PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CPPFLAGS)
|
|
+PY_LDFLAGS= $(LDFLAGS)
|
|
PY_LDFLAGS_NODIST=$(CONFIGURE_LDFLAGS_NODIST) $(LDFLAGS_NODIST)
|
|
PY_LDFLAGS_NOLTO=$(PY_LDFLAGS) $(CONFIGURE_LDFLAGS_NOLTO) $(LDFLAGS_NODIST)
|
|
NO_AS_NEEDED= @NO_AS_NEEDED@
|
|
@@ -2492,14 +2489,6 @@ bininstall: commoninstall altbininstall
|
|
else true; \
|
|
fi
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python3$(EXE))
|
|
- -if test "$(VERSION)" != "$(LDVERSION)"; then \
|
|
- rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config; \
|
|
- (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config); \
|
|
- rm -f $(DESTDIR)$(LIBPC)/python-$(VERSION).pc; \
|
|
- (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION).pc python-$(VERSION).pc); \
|
|
- rm -f $(DESTDIR)$(LIBPC)/python-$(VERSION)-embed.pc; \
|
|
- (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION)-embed.pc python-$(VERSION)-embed.pc); \
|
|
- fi
|
|
-rm -f $(DESTDIR)$(BINDIR)/python3-config
|
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
|
|
-rm -f $(DESTDIR)$(LIBPC)/python3.pc
|
|
@@ -2952,6 +2941,14 @@ libainstall: all scripts
|
|
$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
|
|
$(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
|
|
$(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-config
|
|
+ -if test "$(VERSION)" != "$(LDVERSION)"; then \
|
|
+ rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config; \
|
|
+ (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config); \
|
|
+ rm -f $(DESTDIR)$(LIBPC)/python-$(VERSION).pc; \
|
|
+ (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION).pc python-$(VERSION).pc); \
|
|
+ rm -f $(DESTDIR)$(LIBPC)/python-$(VERSION)-embed.pc; \
|
|
+ (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION)-embed.pc python-$(VERSION)-embed.pc); \
|
|
+ fi
|
|
$(INSTALL_SCRIPT) $(SCRIPT_IDLE) $(DESTDIR)$(BINDIR)/idle$(VERSION)
|
|
$(INSTALL_SCRIPT) $(SCRIPT_PYDOC) $(DESTDIR)$(BINDIR)/pydoc$(VERSION)
|
|
@if [ -s Modules/python.exp -a \
|