-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-44035: Check autoconf files thoroughly (GH-29935) #29935
Conversation
Check that users don't push changes with outdated or patched autoconf. The presence of runstatedir option and aclocal 1.16.3 are good markers. Use my container image to regenerate autoconf files. "Check for changes" will fail later when any file is regenerated. Use ccache in check_generated_files to speed up testing. Signed-off-by: Christian Heimes <[email protected]>
Can we make one step further and use GitHub API to automatically add a file-wide review with a |
That's an interesting idea and certainly helpful for new contributors. Could you please open a new ticket for your proposal? |
Why not just add a Something like this: diff --git a/Makefile.pre.in b/Makefile.pre.in
index 8e6e553554..5afe48a26f 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1156,6 +1156,10 @@ Python/frozen_modules/getpath.h: $(FREEZE_MODULE) Modules/getpath.py
Tools/scripts/freeze_modules.py: $(FREEZE_MODULE)
+.PHONY: regen-autoconf
+regen-autoconf: configure.ac configure aclocal.m4
+ @docker run --rm -v $(shell pwd):/src quay.io/tiran/cpython_autoconf:269
+
.PHONY: regen-frozen
regen-frozen: Tools/scripts/freeze_modules.py $(FROZEN_FILES_IN)
$(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/freeze_modules.py
@@ -1176,7 +1180,7 @@ regen-limited-abi: all
regen-all: regen-opcode regen-opcode-targets regen-typeslots \
regen-token regen-ast regen-keyword regen-frozen clinic \
- regen-pegen-metaparser regen-pegen regen-test-frozenmain
+ regen-pegen-metaparser regen-pegen regen-test-frozenmain regen-autoconf
@echo
@echo "Note: make regen-stdlib-module-names and autoconf should be run manually"
|
Because it's not that simple. Platforms with mandatory access control and LSMs need extra options. For example SELinux enforcing systems require |
Ah, true. I was only thinking of the CI, but of course the Makefile has a wider audience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @tiran, I could not cleanly backport this to |
GH-29937 is a backport of this pull request to the 3.10 branch. |
Check that users don't push changes with outdated or patched autoconf. The presence of runstatedir option and aclocal 1.16.3 are good markers. Use my container image to regenerate autoconf files. "Check for changes" will fail later when any file is regenerated. Use ccache in check_generated_files to speed up testing. (cherry picked from commit 98fac8b) Co-authored-by: Christian Heimes <[email protected]>
Check that users don't push changes with outdated or patched autoconf. The presence of runstatedir option and aclocal 1.16.3 are good markers. Use my container image to regenerate autoconf files. "Check for changes" will fail later when any file is regenerated. Use ccache in check_generated_files to speed up testing.. (cherry picked from commit 98fac8b) Co-authored-by: Christian Heimes <[email protected]>
GH-29938 is a backport of this pull request to the 3.9 branch. |
Co-authored-by: Christian Heimes <[email protected]>
Co-authored-by: Christian Heimes <[email protected]>
|
Check that users don't push changes with outdated or patched autoconf.
The presence of runstatedir option and aclocal 1.16.3 are good markers.
Use my container image to regenerate autoconf files. "Check for changes"
will fail later when any file is regenerated.
Use ccache in check_generated_files to speed up testing.
https://bugs.python.org/issue44035