Update of /cvsroot/fink/fink/perlmod/Fink
In directory 
sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15910/perlmod/Fink

Modified Files:
      Tag: branch_0_29
        ChangeLog PkgVersion.pm 
Log Message:
backport compiler_wrapper (for ccache-default) edit from HEAD


Index: PkgVersion.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/PkgVersion.pm,v
retrieving revision 1.622.2.9
retrieving revision 1.622.2.10
diff -u -d -r1.622.2.9 -r1.622.2.10
--- PkgVersion.pm       7 Jan 2010 02:08:42 -0000       1.622.2.9
+++ PkgVersion.pm       15 Jan 2010 17:59:35 -0000      1.622.2.10
@@ -4739,7 +4739,19 @@
                open GPP, ">$gpp" or die "Path-prefix file $gpp cannot be 
created!\n";
                print GPP <<EOF;
 #!/bin/sh
-exec /usr/bin/\${0##*/}  "-arch" "$arch" "\$@"
+compiler=\${0##*/}
+save_IFS="\$IFS"
+IFS=:
+newpath=
+for dir in \$PATH ; do
+  case \$dir in
+    *var/lib/fink/path-prefix*) ;;
+    *) newpath="\${newpath:+\${newpath}:}\$dir" ;;
+  esac
+done
+IFS="\$save_IFS"
+export PATH="\$newpath"
+exec \$compiler "-arch" "$arch" "\$@"
 EOF
                close GPP;
                chmod 0755, $gpp or die "Path-prefix file $gpp cannot be made 
executable!\n";

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.1592.2.39
retrieving revision 1.1592.2.40
diff -u -d -r1.1592.2.39 -r1.1592.2.40
--- ChangeLog   7 Jan 2010 02:08:42 -0000       1.1592.2.39
+++ ChangeLog   15 Jan 2010 17:59:34 -0000      1.1592.2.40
@@ -1,3 +1,7 @@
+2010-01-15  David Fang  <fang...@users.sourceforge.net>
+
+       * PkgVersion.pm: compiler_wrapper finds %p/bin for ccache-default
+
 2010-01-06  Daniel Macks  <dma...@netspace.org>
 
        * all: update copyright


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to