[118594] trunk/dports/x11/openmotif

mcalhoun at macports.org mcalhoun at macports.org
Sat Apr 5 09:09:04 PDT 2014


Revision: 118594
          https://trac.macports.org/changeset/118594
Author:   mcalhoun at macports.org
Date:     2014-04-05 09:09:03 -0700 (Sat, 05 Apr 2014)
Log Message:
-----------
clang does not recognize argument -fno-tree-ter.
Fixes #42847.
No revision bump because clang either fails or ignores argument.

Modified Paths:
--------------
    trunk/dports/x11/openmotif/Portfile

Added Paths:
-----------
    trunk/dports/x11/openmotif/files/patch-configure.ac.diff

Modified: trunk/dports/x11/openmotif/Portfile
===================================================================
--- trunk/dports/x11/openmotif/Portfile	2014-04-05 13:28:48 UTC (rev 118593)
+++ trunk/dports/x11/openmotif/Portfile	2014-04-05 16:09:03 UTC (rev 118594)
@@ -49,6 +49,11 @@
                 patch-autogen.sh.diff \
                 patch-automake-1.13.diff
 
+# See #42847
+if {[string match "*clang*" ${configure.compiler}]} {
+    patchfiles-append patch-configure.ac.diff
+}
+
 post-patch {
     # Looks like a botched cvs rename - identical files with an 'Exm' name
     # prefix exist. Only a problem because of a case-conflict with libc's

Added: trunk/dports/x11/openmotif/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/x11/openmotif/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/x11/openmotif/files/patch-configure.ac.diff	2014-04-05 16:09:03 UTC (rev 118594)
@@ -0,0 +1,15 @@
+--- configure.ac.orig	2014-04-05 08:43:31.000000000 -0700
++++ configure.ac	2014-04-05 08:43:44.000000000 -0700
+@@ -164,9 +164,9 @@
+ if test x$GCC = xyes
+ then
+     CFLAGS="$CFLAGS -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment"
+-    if test ` $CC -dumpversion | sed -e 's/\(^.\).*/\1/'` = "4" ; then
+-        CFLAGS="$CFLAGS -fno-tree-ter"
+-    fi
++    #if test ` $CC -dumpversion | sed -e 's/\(^.\).*/\1/'` = "4" ; then
++    #    CFLAGS="$CFLAGS -fno-tree-ter"
++    #fi
+ fi
+ AC_DEFINE(NO_OL_COMPAT, 1, "No OL Compatability")
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140405/f7fc8c27/attachment.html>


More information about the macports-changes mailing list