Bug 59347 - --buildroot does not work
--buildroot does not work
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2002-02-05 17:44 EST by Need Real Name
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: 2002-02-05 17:44:20 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 Need Real Name 2002-02-05 17:44:15 EST
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:

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

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-05 19:11:07 EST
  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.

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