Bug 487855

Summary: Specfile query outputs error messages for "missing" patches
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.6.1-1.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-04 21:11:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Skyttä 2009-02-28 11:02:15 UTC
When querying specfiles, rpm outputs error messages for patches that are specified in the specfile but are not in the sources dir.  For example in rpm/devel Fedora CVS checkout:

$ rpm -q --specfile rpm.spec
error: File /home/scop/rpmbuild/SOURCES/rpm-4.5.90-devel-autodep.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.5.90-pkgconfig-path.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.5.90-gstreamer-provides.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-fedora-specspo.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-rc1-defaultdocdir.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-inherit-group.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-anyarch-actions-fix.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-utf-dependencies.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-noarch-elf-check.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-pkgconfig-reqs.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-rpmds-null.patch: No such file or directory
error: File /home/scop/rpmbuild/SOURCES/rpm-4.6.0-extra-provides.patch: No such file or directory
[...]

I don't think rpm should output these errors when querying specfiles.  Or if it does, it should also output errors for similarly "missing" sources, which it currently doesn't - it does it only for patches.

rpm-4.6.0-1.fc10.x86_64

Comment 1 Panu Matilainen 2009-03-18 12:55:57 UTC
Yup, there was even a FIXME for this case in the code :)
Fixed upstream now.

Comment 2 Panu Matilainen 2009-04-09 13:10:50 UTC
...and in rawhide now, but leaving open for F10 tracking

Comment 3 Fedora Update System 2009-05-18 11:48:53 UTC
rpm-4.6.1-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/rpm-4.6.1-1.fc10

Comment 4 Fedora Update System 2009-05-20 00:53:32 UTC
rpm-4.6.1-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rpm'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-5214

Comment 5 Fedora Update System 2009-06-04 21:10:56 UTC
rpm-4.6.1-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.