Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 9091 - %files -f doesn't work like it should
%files -f doesn't work like it should
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2000-02-03 07:07 EST by Oliver Jones
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-03 08:19:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Oliver Jones 2000-02-03 07:07:51 EST
This probably isn't a bug but it is one hell of a pain in the ass.

%files -f doesn't support absolute path names.

When using the RPM spec directive:

%files -f /tmp/%{name}-%{version}-file.list

All I ever get is:

Could not open file: /tmp/pkgname-x.x-file.list

This is SO annoying as it is not specified anywhere (that I can find) where
the file list pointed to by -f should be and so far I've not figured out
where to put it.
Comment 1 Elliot Lee 2000-02-03 13:45:59 EST
The file name is relative to the build directory
Comment 2 Jeff Johnson 2000-02-07 17:03:59 EST
This has been the behavior of rpm from inception AFAIK. I'll try to permit
an absolute file name after rpm-3.0.4 is released.
Comment 3 Oliver Jones 2000-02-07 22:01:59 EST
Even if absolute paths names are not possible.  Just changing the error message
to provide the full path that rpm tried to open (rather than just the supplied
string) would help in debuging.  In my case I was making a package that didn't
have a BUILD/%{name}-%{version}/ directory hence I could not find where to put
the file list.
Comment 4 Jeff Johnson 2000-02-22 05:39:59 EST
Fixed in CVS, will be in rpm-3.0.4-0.43.

FWIW, using absolute paths in a spec file is almost always the wrong thing to
Comment 5 Oliver Jones 2000-02-22 06:12:59 EST
Well.  In this case it would have helped _a lot_.  There is always a case for
doing something 'different'.  Supporting the 'different' behaviour doesn't mean
advocating it.
Comment 6 Jeff Johnson 2001-05-22 14:20:37 EDT
This problem appears to be resolved. Please reopen if I'm wrong.

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