Bug 487855 - Specfile query outputs error messages for "missing" patches
Summary: Specfile query outputs error messages for "missing" patches
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-28 11:02 UTC by Ville Skyttä
Modified: 2009-06-04 21:11 UTC (History)
3 users (show)

Fixed In Version: 4.6.1-1.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-04 21:11:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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