Bug 173396 - Hardwired build path in /usr/lib/rpm/macros
Hardwired build path in /usr/lib/rpm/macros
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-11-16 17:51 EST by Joel Davis
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-16 21:39:58 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 Joel Davis 2005-11-16 17:51:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Description of problem:
I didn't know where else to submit a bug report for RPM so I just put it here and hope it finds its way to whoever needs it.

I downloaded RPM from jbj.org and installed it with the /usr prefix, and the macros file placed at /usr/lib/rpm.macros has a a bit of an oversight in it.

The configuration and install was error free, however when building RPMs, rpmbuild looks under /usr/src/redhat/SOURCES for the tar package.

on line 221 in /usr/lib/rpm/macros, it is:
                   %_topdir    %{_usrsrc}/redhat
and I believe it should be:
                   %_topdir    %{_usrsrc}/%{_vendor}

When building on distros other than Red Hat/Fedora, it might be clearer to have the buildtree have the distro's name instead of red hat's

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

How reproducible:

Steps to Reproduce:
1. Download tarball
2. untar and configure
3. install to /usr
4. check /usr/lib/rpm/macros

Actual Results:  Builds of RPMs failed as it is always unable to locate the tarball witohut a symlink being created.

Expected Results:  RPM to look underneat the /usr/src directory it created during the install instead of always and only /usr/src/redhat

Additional info:

I like pepsi.
Comment 1 Paul Nasrat 2005-11-16 21:39:58 EST
Upstream rpm has changed to %{_usrsrc}/rpm
Comment 2 Joel Davis 2005-11-16 21:45:25 EST
well then the rpm installation needs to create /usr/src/rpm instead of

/usr/src/%{_vendor} is created at install time and unless the %{_srcdir} matches
it the rpm builds are still going to fail unless they create a symlink called
"rpm" pointing to the /usr/src/%{_vendor} directory.
Comment 3 Paul Nasrat 2005-11-16 22:16:02 EST
Please test rpm from upstream site:


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