[Rpm-maint] [Patch 07/19] Fix db for CFLAGS having --param

Paul Nasrat pnasrat at redhat.com
Fri Feb 9 11:35:20 UTC 2007


This fixes the db build to handle newer CFLAGS which can contain the long
option --param.

--- rpm-4.4.2/db3/configure.param	2003-12-27 11:02:18.000000000 -0500
+++ rpm-4.4.2/db3/configure	2005-08-26 10:08:48.000000000 -0400
@@ -8,7 +8,7 @@
 rm -f config.cache
 
 # XXX edit CFLAGS= ... out of invocation args ???
-ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's%--cache-file=.*$%%'`"
+ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
 
 CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
 	--enable-shared --enable-static --enable-rpc \





More information about the Rpm-maint mailing list