[96797] trunk/dports/devel/valgrind

raimue at macports.org raimue at macports.org
Sun Aug 19 08:01:04 PDT 2012


Revision: 96797
          https://trac.macports.org/changeset/96797
Author:   raimue at macports.org
Date:     2012-08-19 08:01:03 -0700 (Sun, 19 Aug 2012)
Log Message:
-----------
devel/valgrind:
Fix compilation with ccache for valgrind @3.8.0.
No revision bump as this is a build problem only, the installed files are not
changed.

Modified Paths:
--------------
    trunk/dports/devel/valgrind/Portfile

Added Paths:
-----------
    trunk/dports/devel/valgrind/files/
    trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff

Modified: trunk/dports/devel/valgrind/Portfile
===================================================================
--- trunk/dports/devel/valgrind/Portfile	2012-08-19 14:40:16 UTC (rev 96796)
+++ trunk/dports/devel/valgrind/Portfile	2012-08-19 15:01:03 UTC (rev 96797)
@@ -38,6 +38,8 @@
 # Ignore trace reports about boost, Qt and OpenMP
 # as they are only used for tests
 
+patchfiles      link_tool_exe_darwin-ccache.diff
+
 configure.args  --mandir=${prefix}/share/man \
                 --without-mpicc
 

Added: trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff
===================================================================
--- trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff	                        (rev 0)
+++ trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff	2012-08-19 15:01:03 UTC (rev 96797)
@@ -0,0 +1,15 @@
+https://bugs.kde.org/show_bug.cgi?id=295427
+--- coregrind/link_tool_exe_darwin.in.orig	2012-08-19 16:30:14.000000000 +0200
++++ coregrind/link_tool_exe_darwin.in	2012-08-19 16:29:50.000000000 +0200
+@@ -101,6 +101,11 @@
+ my $ala = $ARGV[0];  # the load address to use
+ my $cc  = $ARGV[1];  # the C compiler in use
+ 
++# if ccache is used, the actual compiler is the next argument
++if ("$cc" =~ /ccache$/) {
++    $cc = $ARGV[2];
++}
++
+ # check for plausible-ish alt load address
+ die "Bogus alt-load address (1)"
+     if (length($ala) < 3 || index($ala, "0x") != 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120819/80a826aa/attachment-0001.html>


More information about the macports-changes mailing list