rpm-software-management / rpm

The RPM package manager
http://rpm.org
Other
504 stars 364 forks source link

[4.19] Bad architecture in rpm --specfile output #3402

Open hroncok opened 3 days ago

hroncok commented 3 days ago

Describe the bug On Fedora 39 and 40, the architecture in rpm --specfile is always src. This is inconsistent with the past (4.17.1) and present (4.20).

RPM version 4.17.1

$ rpm --specfile python-scripttest/*.spec
python-scripttest-1.3.0-1.fc36.noarch
python3-scripttest-1.3.0-1.fc36.noarch

RPM version 4.18.2 (buggy)

$ rpm --specfile python-scripttest/*.spec
python-scripttest-1.3.0-1.fc38.src
python3-scripttest-1.3.0-1.fc38.src

RPM version 4.19.1.1 (buggy)

$ rpm --specfile python-scripttest/*.spec
python-scripttest-1.3.0-1.fc40.src
python3-scripttest-1.3.0-1.fc40.src

RPM version 4.20.0 (fixed)

$ rpm --specfile python-scripttest/*.spec
python-scripttest-1.3.0-1.fc42.noarch
python3-scripttest-1.3.0-1.fc42.noarch

(Same behavior for archful packages.)

To Reproduce Steps to reproduce the behavior:

  1. git clone https://src.fedoraproject.org/rpms/python-scripttest.git
  2. rpm --specfile python-scripttest/*.spec

Expected behavior

I expected the same output with RPM 4.19 as with 4.17 and 4.20.

Output See above.

Environment

Additional context This breaks a script in Fedora CI: https://pagure.io/fedora-ci/general/issue/495

pmatilai commented 3 days ago

Thanks for the report. This is trying to ring a bell but can't pinpoint the fix offhand, we'll look to it when preparing 4.19.2.