Title: Make COMPILER definition in getcompiler.c optionally static for reproducible builds · Issue #144121 · python/cpython · GitHub
Open Graph Title: Make COMPILER definition in getcompiler.c optionally static for reproducible builds · Issue #144121 · python/cpython
X Title: Make COMPILER definition in getcompiler.c optionally static for reproducible builds · Issue #144121 · python/cpython
Description: Feature or enhancement Proposal: SUSE (both for SLE and openSUSE) have been using for a long time (the name of the patchfile starts with python-3.3.0b1 ;)) similar patch to avoid having dynamically generated symbols in the build binaries...
Open Graph Description: Feature or enhancement Proposal: SUSE (both for SLE and openSUSE) have been using for a long time (the name of the patchfile starts with python-3.3.0b1 ;)) similar patch to avoid having dynamically...
X Description: Feature or enhancement Proposal: SUSE (both for SLE and openSUSE) have been using for a long time (the name of the patchfile starts with python-3.3.0b1 ;)) similar patch to avoid having dynamically...
Opengraph URL: https://github.com/python/cpython/issues/144121
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make COMPILER definition in getcompiler.c optionally static for reproducible builds","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nSUSE (both for SLE and openSUSE) have been using for a long time (the name of the patchfile starts with `python-3.3.0b1` ;)) similar patch to avoid having dynamically generated symbols in the build binaries (version of compilers in this case).\n\n```patch\n---\n Makefile.pre.in | 5 +++++\n 1 file changed, 5 insertions(+)\n\nIndex: Python-3.15.0a3/Makefile.pre.in\n===================================================================\n--- Python-3.15.0a3.orig/Makefile.pre.in\t2025-12-19 02:26:23.594002103 +0100\n+++ Python-3.15.0a3/Makefile.pre.in\t2025-12-19 02:26:28.185444105 +0100\n@@ -1926,6 +1926,11 @@\n \t -DGITBRANCH=\"\\\"`LC_ALL=C $(GITBRANCH)`\\\"\" \\\n \t -o $@ $(srcdir)/Modules/getbuildinfo.c\n \n+Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile\n+\t$(CC) -c $(PY_CORE_CFLAGS) \\\n+\t\t-DCOMPILER='\"[GCC]\"' \\\n+\t\t-o $@ $(srcdir)/Python/getcompiler.c\n+\n Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HEADERS)\n \t$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='\"$(PYTHONPATH)\"' \\\n \t\t-DPREFIX='\"$(host_prefix)\"' \\\n```\n\nI have discussed upstreaming of this patch on\nhttps://discuss.python.org/t/unversioned-compiler-symbol-for-getcompiler-c/91735 and it seems to me that in order to give this issue some momentum, I have to just file PR here.\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-144124\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/mcepl","@type":"Person","name":"mcepl"},"datePublished":"2026-01-21T17:30:53Z","url":"https://github.com/python/cpython/issues/144121"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f676534f-78f5-a7e5-aa18-f29d3bc5f013 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F6C:19E4BB:393C2FA:49004AF:6B01FDFD |
| html-safe-nonce | de78ce7529bd4a531bd270abbaec9bcf79a24a479d2947e469908df8a79a562f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjZDOjE5RTRCQjozOTNDMkZBOjQ5MDA0QUY6NkIwMUZERkQiLCJ2aXNpdG9yX2lkIjoiNTYwNDQyMTY2NzYyMTQzMjI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | de9785f7702bfe21938af5c76f81b97df3df2a3c2b58f39e40242ea94e6d4885 |
| hovercard-subject-tag | issue:3839296471 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/144121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51d738b008db1ac26a96a5637873edd82cbcbc3e9842d6c4401373dd974c5125/python/cpython/issues/144121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51d738b008db1ac26a96a5637873edd82cbcbc3e9842d6c4401373dd974c5125/python/cpython/issues/144121 |
| og:image:alt | Feature or enhancement Proposal: SUSE (both for SLE and openSUSE) have been using for a long time (the name of the patchfile starts with python-3.3.0b1 ;)) similar patch to avoid having dynamically... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcepl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width