Bug 2366308

Summary: rpm-head-signing: FTBFS in Fedora Rawhide with RPM 6
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: rpm-head-signingAssignee: Peter Robinson <pbrobinson>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fti-bugs, ksurma, pbrobinson, pmatilai
Target Milestone: ---Flags: fti-bugs: needinfo? (pbrobinson)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/rpm-head-signing
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432, 2339435, 2360107    

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. ***

Comment 3 Fedora Fails To Install 2025-06-20 19:52:35 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.