Update of /cvsroot/fink/experimental/fangism/finkinfo
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv14588

Modified Files:
        ccache.info 
Log Message:
more override patterns to ccache-default: gcc*, g++* (catches -4.2 on darwin9+)
more usage notes including suggested instructions for --build-as-nobody
TODO: test with llvm*


Index: ccache.info
===================================================================
RCS file: /cvsroot/fink/experimental/fangism/finkinfo/ccache.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ccache.info 15 Oct 2010 22:18:41 -0000      1.2
+++ ccache.info 16 Oct 2010 03:04:37 -0000      1.3
@@ -1,6 +1,6 @@
 Package: ccache 
 Version: 3.1
-Revision: 1
+Revision: 2
 Maintainer: David Fang <fang...@users.sourceforge.net>
 Source: http://samba.org/ftp/%n/%n-%v.tar.bz2
 Source-MD5: 7961852e1e36f11559039c32142f58df
@@ -9,10 +9,7 @@
        # 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
@@ -30,32 +27,30 @@
 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
+for f in cc 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*
+       Package: %n-default
+       Depends: %n
+       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 +61,20 @@
        PostInstScript: <<
        ccache -c > /dev/null
        echo "***************** WARNING ********************"
-       echo "ALL gcc3.3 and gcc4.0 compiles will now be sent through ccache!"
-       echo "For the most part ccache is reliable, but"
+       echo "ALL gcc3.3 and gcc4.0 and gcc4.2 compiles will now be sent 
through %n!"
+       echo "For the most part %n 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 %n-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 +86,24 @@
 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> 
+TODO:
+* make work more robustly with --build-as-nobody
+* add sym-links for FSF versions of gcc4x, possibly creating more splitoffs
+* test against LLVM and add sym-links for them
 <<


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to