Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 11319 - Strange error if .rpmmacros is wrong
Strange error if .rpmmacros is wrong
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 2000-05-09 00:05 EDT by crichton
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:
Last Closed: 2000-05-09 12:54:13 EDT
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 crichton 2000-05-09 00:05:02 EDT
Something weird happens if the format of the .rpmmacros file is wrong:

If I do:

"%_topdir   /home/crichton/srpm"

I get:

Failed to rename /usr/share/locale/en_US/LC_MESSAGES/libc.mo to
/usr/src/redhat/SPECS/rpm-spec.1GN3Nd: Permission denied: No such file or

If the quotes are gone, things work.

I have a funny feeling about this one...

RPM is stock from Zoot, no errata fixes applied.
Comment 1 Jeff Johnson 2000-05-09 12:54:59 EDT
This is basically a configuration problem, and rpm should arguably enforce
stricter rules in parsing the macros file (current behavior is to ignore
any lines, after trimming leading white space, that do not begin with a leading

Trying to build with a broken configuration (i.e. the correct value for %_topdir
was not set) can lead to all sorts of weirdness, as the _topdir value is used
to construct almost all of rpm's paths.

Try alka-seltzer for the "funny feeling", it ain't what you think it is :-)
Comment 2 Jeff Johnson 2000-05-09 12:56:59 EDT
OOPs, yes it was you think it is, freed memory used in an error message.
This is fixed in the tree.

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