forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-112088: Run autoreconf in GHA check_generated_files (python#…
…112090) The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the external quay.io server. Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The "quay.io/tiran/cpython_autoconf:271" container image (https://github.com/tiran/cpython_autoconf) is no longer used.
- Loading branch information
Showing
9 changed files
with
131 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Build/2023-11-15-13-40-29.gh-issue-112088.UJQxxh.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Add ``Tools/build/regen-configure.sh`` script to regenerate the ``configure`` | ||
with an Ubuntu container image. The ``quay.io/tiran/cpython_autoconf:271`` | ||
container image (`tiran/cpython_autoconf | ||
<https://github.com/tiran/cpython_autoconf>`_) is no longer used. Patch by | ||
Victor Stinner. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
# The check_generated_files job of .github/workflows/build.yml must kept in | ||
# sync with this script. Use the same container image than the job so the job | ||
# doesn't need to run autoreconf in a container. | ||
IMAGE="ubuntu:22.04" | ||
DEPENDENCIES="autotools-dev autoconf autoconf-archive pkg-config" | ||
AUTORECONF="autoreconf -ivf -Werror" | ||
|
||
WORK_DIR="/src" | ||
SHELL_CMD="apt-get update && apt-get -yq install $DEPENDENCIES && cd $WORK_DIR && $AUTORECONF" | ||
|
||
abs_srcdir=$(cd $(dirname $0)/../..; pwd) | ||
|
||
if podman --version &>/dev/null; then | ||
RUNTIME="podman" | ||
elif docker --version &>/dev/null; then | ||
RUNTIME="docker" | ||
else | ||
echo "$@ needs either Podman or Docker container runtime." >&2 | ||
exit 1 | ||
fi | ||
|
||
PATH_OPT="" | ||
if command -v selinuxenabled >/dev/null && selinuxenabled; then | ||
PATH_OPT=":Z" | ||
fi | ||
|
||
"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE" /usr/bin/bash -c "$SHELL_CMD" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.