[102718] trunk/dports/cross/openocd

raimue at macports.org raimue at macports.org
Thu Feb 7 09:54:37 PST 2013


Revision: 102718
          https://trac.macports.org/changeset/102718
Author:   raimue at macports.org
Date:     2013-02-07 09:54:37 -0800 (Thu, 07 Feb 2013)
Log Message:
-----------
cross/openocd:
Fix build errors, no revision bump:

Remove -gstabs, which is not supported by clang.

The configure for jimctl wants to add ccache in front of CC by default, which
ends up as 'cccache ccache ${configure.cc}' for MacPorts. Disable automatic use
of ccache.

Modified Paths:
--------------
    trunk/dports/cross/openocd/Portfile

Added Paths:
-----------
    trunk/dports/cross/openocd/files/
    trunk/dports/cross/openocd/files/patch-jimctl-configure.diff

Modified: trunk/dports/cross/openocd/Portfile
===================================================================
--- trunk/dports/cross/openocd/Portfile	2013-02-07 17:33:23 UTC (rev 102717)
+++ trunk/dports/cross/openocd/Portfile	2013-02-07 17:54:37 UTC (rev 102718)
@@ -22,6 +22,8 @@
 checksums           rmd160  b90afa123b2426574d70b2dc514263dc7501948d \
                     sha256  ac051b18d14b7465259fe5b10a3b73bcbc0ac2ef957eec40568f52bbf8b333ca
 
+patchfiles          patch-jimctl-configure.diff
+
 configure.args-append  --disable-werror --enable-maintainer-mode
 
 livecheck.url       http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd\;a=tags

Added: trunk/dports/cross/openocd/files/patch-jimctl-configure.diff
===================================================================
--- trunk/dports/cross/openocd/files/patch-jimctl-configure.diff	                        (rev 0)
+++ trunk/dports/cross/openocd/files/patch-jimctl-configure.diff	2013-02-07 17:54:37 UTC (rev 102718)
@@ -0,0 +1,29 @@
+Remove -gstabs, which is not supported by clang.
+
+The configure for jimctl wants to add ccache in front of CC by default, which
+ends up as 'cccache ccache ${configure.cc}' for MacPorts. Disable automatic use
+of ccache.
+--- jimtcl/autosetup/cc.tcl.orig	2013-02-07 17:51:18.000000000 +0100
++++ jimtcl/autosetup/cc.tcl	2013-02-07 17:54:37.000000000 +0100
+@@ -493,12 +493,6 @@
+ 	}
+ 	lappend cmdline {*}$opts(-cflags)
+ 
+-	switch -glob -- [get-define host] {
+-		*-*-darwin* {
+-			# Don't generate .dSYM directories
+-			lappend cmdline -gstabs
+-		}
+-	}
+ 	lappend cmdline $src -o $tmp {*}$opts(-libs)
+ 
+ 	# At this point we have the complete command line and the
+@@ -668,7 +662,7 @@
+ 	user-error "Could not find a C compiler. Tried: [join $try ", "]"
+ }
+ 
+-define CCACHE [find-an-executable [get-env CCACHE ccache]]
++define CCACHE {}
+ 
+ # Initial cctest settings
+ cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130207/54281440/attachment.html>


More information about the macports-changes mailing list