Bug 117217 - rpm should automatically recognize new macro files dropped into /etc/rpm
Summary: rpm should automatically recognize new macro files dropped into /etc/rpm
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-rpm-config
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-01 18:30 UTC by Thomas Fitzsimmons
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-23 14:18:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Fitzsimmons 2004-03-01 18:30:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922

Description of problem:
The jpackage-utils package defines various rpm macros for use by other
jpackage spec files.  The macros are installed in a file,
/etc/rpm/macros.jpackage.

jpackage-utils used to define %postun and %triggerin sections that
modified /usr/lib/rpm/rpmrc to register and unregister macros.jpackage
with rpm.  This is unacceptable for various reasons.

The problem would be solved if rpm automatically recognized and loaded
all macro files that appeared in /etc/rpm/

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


How reproducible:
Always

Steps to Reproduce:
The problem was discovered when attempting to build jpackage-utils
into beehive.


Additional info:

Comment 1 Jeff Johnson 2004-03-02 01:51:02 UTC
A change to use a glob instead of explicit files was checked
in. Should be in rpm-4.3-0.17.

Note that dropping in a configuration change to rpm
that is loaded by all builds has deep and profound
consequences. You *really* should think carefully
before attempting macros.jpackage,as most rpm
users are not java programmers, and jpackage-utils
could probably be built in other ways.

Off to redhat-rpm-config for macros.jpackage content vetting.


Comment 2 James Olin Oden 2004-03-03 00:27:32 UTC
Just as an alternate approach.  Where I work what we do is we 
drop such macro files in like /etc/rpm.d, and then we have an RC 
script that combines those into /etc/rpm/macros.  My point is though 
this is usefull functionality (i.e. allowing for globbing of a 
directory, you can get there by other means fairly easily.

Cheers...james

Comment 3 Dmitry V. Levin 2004-03-07 22:19:36 UTC
JFYI, in ALT Linux we use this globbing feature since Aug 28 2002. 
Our macrofiles list contains "/etc/rpm/macros.d/*" entry, and we have simple 
policy how this submacrofiles should be written. 

Comment 4 Elliot Lee 2004-04-23 14:18:16 UTC
redhat-rpm-config edited to use this feature. Thanks for adding it Jeff!


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