Bug 115151 - rpmbuild -r $wrk -bp some.spec
rpmbuild -r $wrk -bp some.spec
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-02-06 20:12 EST by Philip A. Ashmore
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-06 21:22:59 EST
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 Philip A. Ashmore 2004-02-06 20:12:01 EST
Description of problem:
rpmbuild seems to ignore the -r option when invoked as
$ rpmbuild -r 'dir' -bp some.spec 
It always looks for the source tarball in /usr/src/redhat/SOURCES
instead of 'dir/usr/src/redhat/SOURCES'

Version-Release number of selected component (if applicable): 4.2.1

How reproducible:
very. I've used doxygen as an example here.

Steps to Reproduce:
1. mkdir -p ~/work/usr/src/redhat/SOURCES ~/work/usr/src/redhat/SPECS
2. cd ~/work
1. wrk=~/work
2. rpm -i --root=$wrk $SRPMS/doxygen-1.3.4-1.src.rpm
3. specdir=$wrk/usr/src/redhat/SPECS
3. rpmbuild -r $wrk -bp $specdir/doxygen.spec
Actual results:
rpm complains about NOKEY but otherwise does its job.
error: File /usr/src/redhat/SOURCES/doxygen-1.3.4.src.tar.gz: No such
file or directory

Expected results:
rpm and rpmbuild should extract and patch the sources from the RPM
ready for compilation.

Additional info:

Comment 1 Jeff Johnson 2004-02-06 21:22:59 EST
rpmbuild -r needs other configuration to be useful.

unsupoorted, but feel free to play. yes, no hints. ;-)

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