File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,14 @@ jobs:
7474 grep "aclocal 1.16.3" aclocal.m4
7575 grep -q "runstatedir" configure
7676 grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
77- - name : Regenerate autoconf files
78- run : docker run --rm -v $(pwd):/src quay.io/tiran/cpython_autoconf:269
79- - name : Build CPython
77+ - name : Configure CPython
8078 run : |
8179 # Build Python with the libpython dynamic library
8280 ./configure --with-pydebug --enable-shared
81+ - name : Regenerate autoconf files with container image
82+ run : make regen-configure
83+ - name : Build CPython
84+ run : |
8385 make -j4 regen-all
8486 make regen-stdlib-module-names
8587 - name : Check for changes
Original file line number Diff line number Diff line change @@ -1196,7 +1196,7 @@ regen-all: regen-opcode regen-opcode-targets regen-typeslots \
11961196 regen-pegen-metaparser regen-pegen regen-test-frozenmain \
11971197 regen-global-objects
11981198 @echo
1199- @echo "Note: make regen-stdlib-module-names and make autoconf should be run manually"
1199+ @echo "Note: make regen-stdlib-module-names and make regen-configure should be run manually"
12001200
12011201############################################################################
12021202# Special rules for object files
@@ -2294,10 +2294,16 @@ recheck:
22942294# Regenerate configure and pyconfig.h.in
22952295.PHONY: autoconf
22962296autoconf:
2297- # Regenerate the configure script from configure.ac using autoconf
2298- (cd $(srcdir); autoconf -Wall)
2299- # Regenerate pyconfig.h.in from configure.ac using autoheader
2300- (cd $(srcdir); autoheader -Wall)
2297+ (cd $(srcdir); autoreconf -ivf -Werror)
2298+
2299+ .PHONY: regen-configure
2300+ regen-configure:
2301+ @if command -v podman >/dev/null; then RUNTIME="podman"; else RUNTIME="docker"; fi; \
2302+ if ! command -v $$RUNTIME; then echo "$@ needs either Podman or Docker container runtime." >&2; exit 1; fi; \
2303+ if command -v selinuxenabled >/dev/null && selinuxenabled; then OPT=":Z"; fi; \
2304+ CMD="$$RUNTIME run --rm --pull=always -v $(abs_srcdir):/src$$OPT quay.io/tiran/cpython_autoconf:269"; \
2305+ echo $$CMD; \
2306+ $$CMD || exit $?
23012307
23022308# Create a tags file for vi
23032309tags::
Original file line number Diff line number Diff line change 1+ Add ``regen-configure `` make target to regenerate configure script with
2+ Christian's container image ``quay.io/tiran/cpython_autoconf:269 ``.
You can’t perform that action at this time.
0 commit comments