public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python3.13] epel9: Only hardcode the expat Release number when on 2.5.0 (RHEL 9)
@ 2026-11-19 11:12 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-19 11:12 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python3.13
            Branch : epel9
            Commit : dd7f99cdd4c9f7a583a91db6755b56f60641931e
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-11-19T12:05:24+01:00
            Stats  : +5/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python3.13/c/dd7f99cdd4c9f7a583a91db6755b56f60641931e?branch=epel9

            Log:
            Only hardcode the expat Release number when on 2.5.0 (RHEL 9)

This avoids problems explained in python3.13 @ 4b109e5009

If we ever choose to use more backported stuff,
we may extend this mechanism to pick a different release for different version.

[skip changelog]

---
diff --git a/python3.13.spec b/python3.13.spec
index f7f1aa8..f6bbe19 100644
--- a/python3.13.spec
+++ b/python3.13.spec
@@ -620,12 +620,14 @@ Requires: tzdata
 # This breaks many things, including python -m venv.
 # We avoid this problem by requiring at least the same version of expat that
 # was used during the build time.
-# We also include release, in case pyxpat uses ABI that was backported
-# (e.g. XML_SetReparseDeferralEnabled was added in c9s expat 2.5.0-2).
 # Other subpackages (like -debug) also need this, but they all depend on -libs.
 # Since expat 2.7.4, the library has versioned symbols and this is no longer needed,
 # as the generated requirement will be in the form of libexpat.so.1(LIBEXPAT_2.7.2) etc.
-%global expat_version %(LANG=C rpm -q --qf '%%{version}-%%{release}' expat.%{_target_cpu} | sed 's/.*not installed/0/')
+%global expat_version %(LANG=C rpm -q --qf '%%{version}' expat.%{_target_cpu} | sed 's/.*not installed/0/')
+# XML_SetReparseDeferralEnabled was added in c9s expat 2.5.0-2
+%if v"%{expat_version}" == v"2.5.0"
+%global expat_version 2.5.0-2
+%endif
 %if v"%{expat_version}" < v"2.7.4"
 Requires: expat%{?_isa} >= %{expat_version}
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19 11:12 [rpms/python3.13] epel9: Only hardcode the expat Release number when on 2.5.0 (RHEL 9) 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox