Bug 55845

Summary: --buildroot doesn't affect the Build root.
Product: [Retired] Red Hat Linux Reporter: Dave Johnson <johnsond>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-07 17:42:15 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:

Description Dave Johnson 2001-11-07 17:42:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
Passing a --buildroot option seems to be ignored.  That is, even when
passing a --buildroot option, RPM looks for source files in the default
build root (/usr/src/redhat) and complains when the source files aren't
there.

Further, using a "buildroot: <path>" option in a .rpmrc results in an error
message: "error: bad option 'buildroot' in /home/johnsond/.rpmrc:1".

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

How reproducible:
Always

Steps to Reproduce:
1. rpm -ba <specfile> --buildroot <path to build root>
	

Additional info:

Comment 1 Jeff Johnson 2001-11-15 23:56:08 UTC
You're confusing --buildroot with the macro value
%{_builddir}. And you're probably looking to
change the macro %{_topdir} to something 
other than /usr/src/redhat. Do that by
	echo "%_topdir  /wherever/you/want" >> ~/.rpmmacros