[PATCH modular 1/4] build.sh: remove CACHE env variable as it is not implementable

Gaetan Nadon memsize at videotron.ca
Sat Dec 11 17:52:59 PST 2010


The concept of global cache for multiple modules does not exist.

When using --cache-file with the same path, variables with the same
name have their values overwritten on a "last write wins" principle.

For example, this cached variable from clock:
pkg_cv_XFT_LIBS=${pkg_cv_XFT_LIBS='-L/home/nadon/xorg/src/lib -lXft  '}

is overwritten with the value from xdm:
pkg_cv_XFT_LIBS=${pkg_cv_XFT_LIBS='
-L/home/nadon/xorg/src/lib -lXrender -lX11 -lXft  '}

If there is some limited usefulness in specific scanerios, one
can pass the --cache-file option in CONFFLAGS.

This was introduced in commit e5592f548a03e332f2b52f6bd502c4593f7816b3
to improve performance.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 build.sh |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index 7b385fc..93f2c14 100755
--- a/build.sh
+++ b/build.sh
@@ -3,7 +3,6 @@
 envoptions() {
 cat << EOF
 global environment variables you may set:
-  CACHE: absolute path to a global autoconf cache
   QUIET: hush the configure script noise
 
 global environment variables you may set to replace default functionality:
@@ -354,7 +353,6 @@ process() {
     if [ $needs_config -eq 1 ] || [ X"$NOAUTOGEN" = X ]; then
 	sh ${DIR_CONFIG}/${CONFCMD} --prefix=${PREFIX} ${LIB_FLAGS} \
 	    ${QUIET:+--quiet} \
-	    ${CACHE:+--cache-file="$CACHE"} \
 	    ${CONFFLAGS} \
 	    ${CC:+CC="$CC"} \
 	    ${CPP:+CPP="$CPP"} \
-- 
1.6.0.4



More information about the xorg-devel mailing list