Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv16473

Modified Files:
        ccache.info 
Log Message:
TestConflict with own ccache-default, so test-suite passes.  TODO notes.


Index: ccache.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/ccache.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ccache.info 15 Oct 2010 23:57:32 -0000      1.2
+++ ccache.info 4 Nov 2010 01:01:47 -0000       1.3
@@ -1,6 +1,6 @@
 Package: ccache 
 Version: 3.1
-Revision: 1
+Revision: 3
 Maintainer: David Fang <fang...@users.sourceforge.net>
 Source: http://samba.org/ftp/%n/%n-%v.tar.bz2
 Source-MD5: 7961852e1e36f11559039c32142f58df
@@ -9,16 +9,14 @@
        # patch Makefile to not depend on implicit rules
        file=Makefile.in
        mv $file $file.orig
-       echo ".SUFFIXES: .c .o" > $file
-       echo ".c.o:" >> $file
-       echo '  $(CC) $(CFLAGS) -o $@ -c $<' >> $file
-       cat $file.orig >> $file
+       { echo ".SUFFIXES: .c .o" && cat $file.orig ;} > $file
 <<
 CompileScript: <<
  ./configure %c
  make CFLAGS='-g -O2 -Wall -W -I. -prebind'
 <<
 InfoTest: <<
+       TestConflicts: ccache-default
        TestScript: <<
        #!/bin/sh -ev
        make -k check || exit 2
@@ -30,32 +28,31 @@
 mkdir -p %i/bin
 mkdir -p %i/share/man/man1
 make install prefix=%i mandir=%i/share/man
-ln -s %p/bin/ccache %i/bin/cc
-ln -s %p/bin/ccache %i/bin/c++
-ln -s %p/bin/ccache %i/bin/c++-4.0
-ln -s %p/bin/ccache %i/bin/c++-3.3
-ln -s %p/bin/ccache %i/bin/g++
-ln -s %p/bin/ccache %i/bin/gcc
-ln -s %p/bin/ccache %i/bin/g++-4.0
-ln -s %p/bin/ccache %i/bin/g++-3.3
-ln -s %p/bin/ccache %i/bin/gcc-4.0
-ln -s %p/bin/ccache %i/bin/gcc-3.3
-for f in /usr/bin/*-apple-darwin*-g*
+echo creating ccache-default overrides...
+pushd /usr/bin
+# llvm-* clang c89 c99
+for f in cc c++ c++-* gcc* g++* *-apple-darwin*-g*
 do
-  b=`basename $f`
-  echo "linking $b"
-  ln -s %p/bin/ccache %i/bin/$b
+  echo "linking %p/bin/$f to ccache to override /usr/bin/$f"
+  ln -s %p/bin/ccache %i/bin/$f
 done
+popd
 <<
 PostInstScript: <<
 echo "If you wish ccache to be the default compiler"
 echo "(to override and send ALL compilations through ccache),"
-echo " install the \"ccache-default\" package."
+echo " install the \"%n-default\" package."
 <<
 SplitOff: <<
        Package: ccache-default
-       Depends: ccache
-       Files: bin/cc bin/c++ bin/c++-4.0 bin/c++-3.3 bin/g++ bin/gcc 
bin/g++-4.0 bin/g++-3.3 bin/gcc-4.0 bin/gcc-3.3 bin/*-apple-darwin*
+       Depends: ccache (= %v-%r)
+       Files: <<
+               bin/cc
+               bin/c++*
+               bin/g++*
+               bin/gcc*
+               bin/*-apple-darwin*
+       <<
        Description: C/C++ compiler cache - As default compiler
        DescDetail: <<
          This package installs symlinks for ccache to override your compiler.
@@ -66,15 +63,20 @@
        PostInstScript: <<
        ccache -c > /dev/null
        echo "***************** WARNING ********************"
-       echo "ALL gcc3.3 and gcc4.0 compiles will now be sent through ccache!"
+       echo "ALL gcc3.3 and gcc4.0 and gcc4.2 compiles will now be sent 
through ccache!"
        echo "For the most part ccache is reliable, but"
        echo "it can occasionally cause strange compile problems!"
        echo "If you have a strange compile problem, remove this package"
        echo "and try again before reporting any bugs!"
        echo ""
+       echo "Fink uses its own cache in CCACHE_DIR=%p/var/ccache."
        echo "Additionally, the default cache size is 1 Gig."
-       echo "so you may want to run \"ccache -M 500M\" (for example)"
+       echo "so you may want to run \"CCACHE_DIR=%p/var/ccache ccache -M 
500M\" (for example)"
        echo "to limit the size of the cache."
+       echo ""
+       echo "If you want --build-as-nobody to work with ccache-default,"
+       echo "I suggest: sudo chown -R fink-bld %p/var/ccache"
+       echo "and never building as root (always --build-as-nobody)."
        echo "***************** WARNING ********************"
        <<
 <<
@@ -86,10 +88,28 @@
 from cache. This often results in a 5 to 10 times speedup in common
 compilations.
 If you wish ccache to be the default compiler (to override and send ALL 
-compilations through ccache), install the "ccache-default" package.
+compilations through ccache), install the "%n-default" package.
+See f90cache for the Fortran equivalent of %n.  
+<<
+DescUsage: <<
+To use ccache manually, point your builds to use CC="ccache gcc"
+and CXX="ccache g++" (if using gcc).  Passing these variables to
+most autoconf produced configure scripts should work.  
+By default ccache will create a cache in ~/.ccache, but this location
+can be overriden by the CCACHE_DIR environment variable.  
+If you wish ccache to be the default compiler (to override and send ALL 
+compilations through ccache), install the "%n-default" package.
 <<
 Homepage: http://ccache.samba.org/
 License: GPL
 DescPackaging: <<
 Former maintainer: Ben Hines <bhi...@alumni.ucsd.edu> 
+TestConflicts with own ccache-default because one test assumes 'gcc' to
+be uncached, thus we remove ccache-default temporarily during testing.
+TODO:
+* make work more robustly with --build-as-nobody
+* add sym-links for FSF versions of gcc4x, possibly creating more splitoffs
+* test against LLVM, clang and add sym-links for them
+* test against mpic* (open MPI compilers, gcc-4.2+)
+* test against c89, c99*
 <<


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to