Bug 3212

Summary: values in site script CONFIG_SITE are not propagated to popt directory
Product: [Retired] Red Hat Linux Reporter: benedict
Component: rpmAssignee: Jay Turner <jturner>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-16 20:01:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description benedict 1999-06-02 13:23:26 UTC
When running configure like this:

sh -c 'CONFIG_SITE=./config.site ./configure'

the site script is loaded ...

loading site script ./config.site

but not propagated to the popt directory

configuring in popt
running /bin/sh ./configure  --cache-file=.././config.cache
--srcdir=.
loading cache .././config.cache

This is not very good as it makes it impossible to use the
site script to e.g. turn optimisation off by writing
CFLAGS='-g' in the file.  If you try, optimization will be
off everywhere except in the popt code ;-((

Comment 1 Jeff Johnson 1999-06-16 20:01:59 UTC
Fixed as below. Thanks for the report.

Index: configure.in
===================================================================
RCS file: /cvs/devel/rpm/configure.in,v
retrieving revision 1.143
diff -u -r1.143 configure.in
--- configure.in        1999/06/09 14:13:33     1.143
+++ configure.in        1999/06/16 20:00:17
@@ -776,7 +776,7 @@
 AC_SUBST(RPM)

 # XXX Propagate -lucb to popt ...
-export LIBS INCPATH
+export LIBS INCPATH CONFIG_SITE

 AC_CONFIG_SUBDIRS(popt)
 AC_OUTPUT([Makefile rpmrc macros lib/Makefile