Bug 55845 - --buildroot doesn't affect the Build root.
--buildroot doesn't affect the Build root.
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2001-11-07 12:42 EST by Dave Johnson
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-11-07 12:42:15 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 Dave Johnson 2001-11-07 12:42:10 EST
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

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):

How reproducible:

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

Additional info:
Comment 1 Jeff Johnson 2001-11-15 18:56:08 EST
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

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