Bug 2366308 - rpm-head-signing: FTBFS in Fedora Rawhide with RPM 6
Summary: rpm-head-signing: FTBFS in Fedora Rawhide with RPM 6
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm-head-signing
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
: 2372216 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall RPM6
TreeView+ depends on / blocked
 
Reported: 2025-05-14 18:21 UTC by Miro Hrončok
Modified: 2025-06-11 16:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-05-14 18:21:06 UTC
Description of problem:
Package rpm-head-signing fails to build from source in Fedora Rawhide.

------------------------------------
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
Traceback (most recent call last):
  File "/builddir/build/BUILD/rpm-head-signing-1.7.4-build/rpm-head-signing-1.7.4/setup.py", line 10, in <module>
    raise Exception("RPM version %s is not major version 4" % rpm_version)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
TypeError: not all arguments converted during string formatting
------------------------------------


Version-Release number of selected component (if applicable):
1.7.4-8.fc42

Steps to Reproduce:
fedpkg build

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/rpm-head-signing

Comment 1 Panu Matilainen 2025-05-16 13:08:08 UTC
Rather than spawn an external rpm process and then parse the version out of it, this could just use:
>>> rpm.__version__
'5.99.90'
>>> rpm.__version_info__
('5', '99', '90')

That said, testing for versions tends to run into silly issues like this. It's far better to explicitly test for the actual features you care about instead.

Comment 2 Karolina Surma 2025-06-11 16:06:23 UTC
*** Bug 2372216 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.