RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/lib/ filetriggers.c

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 23 Dec 2008 - 23:17:48 CET
Message-id: <30FCFD7F-265F-47C1-8E65-6ABD34B2A9B8@mac.com>

On Dec 23, 2008, at 4:57 PM, Jeff Johnson wrote:

> This patch isn't needed.
> system.h will include "config.h" if -DHAVE_CONFIG_H is defined
> in CFLAGS, which is done throughout rpm.
> And RPM_VENDOR_FOO is passed through CFLAGS, not config.h,
> simpilarly to -DHAVE_CONFIG_H.

If you __DO__ insist on RPM_VENDOR_MANDRIVA
in config.h rather than CFLAGS et al, then the right fix is

     #include "system.h"

     #if defined(RPM_VENDOR_MANDRIVA)

consistent with every other file compiled in rpm.

Slightly worse (but acceptable) is

     #if defined(HAVE_CONFIG_H
     #include "config.h"

     #if defined(RPM_VENDOR_MANDRIVA)

That's my issue (in case I wasn't entirely clear).

Personally, I'd rather see CFLAGS used consistently
for VENODR identification too, up until now CFLAGS,
not config.h, has been used to pass RPM_VENDOR_FOO
around, but that's a different matter. Not every flag could/should
be added to CFLAGS.

73 de Jeff
Received on Tue Dec 23 23:17:53 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.