Bug 521760
Summary: | rpm %files section not allowing absolute path names in -f switch | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Paolo Penzo <paolo.penzo> | ||||
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 11 | CC: | ffesti, jnovy, paolo.penzo, pmatilai | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 4.7.1-3.fc11 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-10-27 06:36:19 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: | |||||||
Attachments: |
|
We might change it back to allow absolute pathnames but using a static name for a file in /tmp or /var/tmp like this is not a particularly good idea. The build dir is the "natural" place for this, as the file is specific to that particular build. I agree with you: the builddir is the "natural" place for the list file. However assuming that this file must be specified with the relative path to the builddir has a couple of drawbacks which are not backward compatible: 1) the file cannot be specified with the absolute path name even though it resides into the buildir. 2) people used to place this file somewere else cannot build the packages on systems using different rpm versions. Yup.. and then there's "%files -f %{SOURCE10}" style use-case. Fixed in rawhide now but leaving open for F11 tracking. rpm-4.7.1-3.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/rpm-4.7.1-3.fc11 rpm-4.7.1-3.fc11 has been pushed to the Fedora 11 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/F11/FEDORA-2009-10354 rpm-4.7.1-3.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 360048 [details] A sample spec file to reprdouce this issue After updating to rpm 4.7.1 (rpm-4.7.1-1.fc11.x86_64) I got troubles building RPM packages in which installed files are specified via %files -f /path/to/file/list since now rpm prepends %{_builddir}/%{buildsubdir} to -f argument. AFAIK it should be possible to read the file list from a file locate anywhere in the filesystem.