Bug 59347

Summary: --buildroot does not work
Product: [Retired] Red Hat Linux Reporter: Need Real Name <bko>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-05 22:44:20 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 Need Real Name 2002-02-05 22:44:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.2.16-23.uid32 i686)

Description of problem:
rpm --buildroot produces

--buildroot: unknown option

which is annoying since man rpm says

       The following options may also be used:

       --buildroot DIRECTORY
              When building a package, override the BuildRoot tag
              with directory DIRECTORY.


this works in 7.1.

i looked for documentation as to where buildroot went, but i can't find any,
even through google.


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


How reproducible:
Always

Steps to Reproduce:
1. try to build an rpm using --buildroot <dir>
2. get error message.
3. look at man page.
	

Actual Results:  i get an error, instead of building the RPM.  this works in
7.1.


Expected Results:  RPM to build. man page to document the new option if the name
has changed.


Additional info:

i even grepped the docs for buildroot, and didn't find any notices about it
going away.

Comment 1 Jeff Johnson 2002-02-06 00:11:07 UTC
Either
  1) invoke rpmbuild, not rpm.
  2) Configure popt magic glue for --buildroot:
        echo "rpm     exec --buildroot 	rpmb --buildroot" >> /etc/popt

The issue is that the build modes of rpm are now in /usr/bin/rpmbuild,
not in /bin/rpm.