public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python3.13] epel9: Only hardcode the expat Release number when on 2.5.0 (RHEL 9)
Date: Thu, 19 Nov 2026 11:12:21 GMT	[thread overview]
Message-ID: <179508674127.1.6184183741757270438.rpms-python3.13-dd7f99cdd4c9@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-19 11:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179508674127.1.6184183741757270438.rpms-python3.13-dd7f99cdd4c9@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox