GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make COMPILER definition in getcompiler.c optionally static for reproducible builds · Issue #144121 · python/cpython

Make COMPILER definition in getcompiler.c optionally static for reproducible builds #144121

New issue
Copy link
New issue
Copy link
Open
#144124
Open
Make COMPILER definition in getcompiler.c optionally static for reproducible builds#144121
#144124
Copy link
Labels
buildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement

Description

@mcepl
mcepl
opened on Jan 21, 2026
Issue body actions

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 (version of compilers in this case).

---
 Makefile.pre.in |    5 +++++
 1 file changed, 5 insertions(+)

Index: Python-3.15.0a3/Makefile.pre.in
===================================================================
--- Python-3.15.0a3.orig/Makefile.pre.in	2025-12-19 02:26:23.594002103 +0100
+++ Python-3.15.0a3/Makefile.pre.in	2025-12-19 02:26:28.185444105 +0100
@@ -1926,6 +1926,11 @@
 	      -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
 	      -o $@ $(srcdir)/Modules/getbuildinfo.c
 
+Python/getcompiler.o: $(srcdir)/Python/getcompiler.c Makefile
+	$(CC) -c $(PY_CORE_CFLAGS) \
+		-DCOMPILER='"[GCC]"' \
+		-o $@ $(srcdir)/Python/getcompiler.c
+
 Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HEADERS)
 	$(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
 		-DPREFIX='"$(host_prefix)"' \

I have discussed upstreaming of this patch on
https://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.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-144121: Allow overriding COMPILER with UNVERSIONED_COMPILER #144124

Activity

  1. mcepl
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jan 21, 2026
  2. mcepl
    added 5 commits that reference this issue on Jan 21, 2026

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    09b5d8a

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    6f12a2b

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    a787988

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    51bb66b

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    39f408f
  3. hugovk
    added
    buildThe build process and cross-buildThe build process and cross-build
    on Jan 21, 2026
  4. mcepl
    added a commit that references this issue on Jan 26, 2026

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    382b56d
  5. bmwiedemann
    added a commit that references this issue on Jan 30, 2026

    Update python315 to version 3.15.0~a3 / rev 5 via SR 1329830

    b896b57
  6. mcepl
    added a commit that references this issue on May 5, 2026

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    f5e8c6b
  7. mcepl
    added a commit that references this issue on Oct 23, 2026

    Allow overriding COMPILER with UNVERSIONED_COMPILER

    0dc146c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.