Bug 11905 - rpm doesn't recognize options in rpmrc
rpm doesn't recognize options in rpmrc
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-06-04 17:04 EDT by Adi Linden
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-06-04 17:04:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adi Linden 2000-06-04 17:04:01 EDT
I am trying to get started in using rpm. I read through the RPM-HOWTO and
the pertinent sections in the Maximum RPM book. I am trying to build rpm's
in a directory different than the system default to avoid contaminating the
system with my trial attempts.

I am assuming the rpmrc file is where the directory options are to go. Here
is an rpmrc file I created:

    topdir:               /home/adi/RPM_TESTING/build
    vendor:               PeeWeeLinux
    buildroot:            /home/adi/RPM_TESTING/tmp

When I run rpm with in the followinf way:

    rpm --rcfile=rpmrc --showrc

I get the following errors:

    bad option 'topdir' at rpmrc:2
    bad option 'vendor' at rpmrc:3
    bad option 'buildroot' at rpmrc:4
    ARCHITECTURE AND OS:
    build arch            : i686
    compatible build archs: i686
    build os              : Linux

I tried relocating my rpmrc file to /etc/rpmrc and ~/.rpmrc and the results
are the same.

So I am assuming rpm is broken and doesn't have a clue how to read it's
rpmrc file. So how can I customize my rpm building environment???

Adi
Comment 1 Jeff Johnson 2000-06-04 17:21:11 EDT
The manner in which rpm is configured has changed since "Maximum RPM" was
written.

You have two choices:

1) Build/install rpm-2.5.x from ftp.rpm.org

2) Configure using rpm-3.0 macros. For your example above this is
done by putting in ~/.rpmmacros:

	%_topdir	/home/adi/RPM_TESTING/build
	%vendor		PeeWeeLinux
	%buildroot	/home/adi/RPM_TESTING/tmp

The complete list of configuration macros is in /usr/lib/rpmrc/macros.

The other gotcha is that --rcfile now takes a colon separated list of
rpmrc files, so either invoke (as above) like
	--rcfile /usr/lib/rpm/rpmrc:./rpmrc
or add at the top of your rpmrc file
	include: /usr/lib/rpm/rpmrc

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