Bug 173396 - Hardwired build path in /usr/lib/rpm/macros
Summary: Hardwired build path in /usr/lib/rpm/macros
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-16 22:51 UTC by Joel Davis
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-17 02:39:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joel Davis 2005-11-16 22:51:09 UTC
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):
rpm-4.4

How reproducible:
Always

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-17 02:39:58 UTC
Upstream rpm has changed to %{_usrsrc}/rpm

Comment 2 Joel Davis 2005-11-17 02:45:25 UTC
well then the rpm installation needs to create /usr/src/rpm instead of
/usr/src/%{_vendor}

/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-17 03:16:02 UTC
Please test rpm from upstream site:

http://wraptastic.org/pub/i386-linux/SRPMS


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