Bug 1985369 - qemu package metadata in %description
Summary: qemu package metadata in %description
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-23 14:06 UTC by Fabio Valentini
Modified: 2021-07-23 17:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-23 17:53:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2021-07-23 14:06:43 UTC
Package metadata for the main "qemu" is not getting applied correctly to built RPMs, because the text is not parsed as RPM Provides / Requires etc., but parsed as part of the %description, since it is just a continuation of the %description.

I stumbled across this today by accident when I looked at this koji build, where it's obvious that the %description contains stuff that should in fact be parsed as "code" instead of text:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1800864

This is also apparent on the overview page here:
https://src.fedoraproject.org/rpms/qemu

The cause is here:
https://src.fedoraproject.org/rpms/qemu/blob/rawhide/f/qemu.spec#_450

The lines https://src.fedoraproject.org/rpms/qemu/blob/rawhide/f/qemu.spec#_456-479 need to be moved above line 450 for them to have an actual effect other than ending up in the %description of qemu metapackage.

Comment 1 Daniel Berrangé 2021-07-23 14:08:26 UTC
Should get fixed by this build https://koji.fedoraproject.org/koji/taskinfo?taskID=72497792

Comment 2 Fabio Valentini 2021-07-23 14:24:01 UTC
It's not (check the description of the koji build you linked)... You can add as many empty lines there as you want, but only other %package, %prep, %build, etc. directives actually end parsing of %description.

Which is why I suggested moving the Requires *above* the %description, because that's the only place that will work in this case.

Comment 3 Richard W.M. Jones 2021-07-23 14:28:04 UTC
Let's try this one:

https://koji.fedoraproject.org/koji/taskinfo?taskID=72498447

Comment 4 Richard W.M. Jones 2021-07-23 17:53:45 UTC
$ rpm -qRp /var/tmp/qemu-6.0.0-11.fc35.x86_64.rpm 
qemu-img = 2:6.0.0-11.fc35
qemu-pr-helper = 2:6.0.0-11.fc35
qemu-system-aarch64 = 2:6.0.0-11.fc35
qemu-system-alpha = 2:6.0.0-11.fc35
qemu-system-arm = 2:6.0.0-11.fc35
qemu-system-avr = 2:6.0.0-11.fc35
qemu-system-cris = 2:6.0.0-11.fc35
qemu-system-m68k = 2:6.0.0-11.fc35
[etc]


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