Bug 59347 - --buildroot does not work
Summary: --buildroot does not work
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-02-05 22:44 UTC by Need Real Name
Modified: 2008-05-01 15:38 UTC (History)
0 users

Clone Of:
Last Closed: 2002-02-05 22:44:20 UTC

Attachments (Terms of Use)

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:

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-06 00:11:07 UTC
  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.