[105371] trunk/dports/tex/texlive-bin/Portfile

dports at macports.org dports at macports.org
Thu Apr 18 16:31:00 PDT 2013


Revision: 105371
          https://trac.macports.org/changeset/105371
Author:   dports at macports.org
Date:     2013-04-18 16:30:59 -0700 (Thu, 18 Apr 2013)
Log Message:
-----------
texlive-bin: re-enable makejvf and add -Wno-invalid-source-encoding to
its CFLAGS to work around clang bug (#38643)

Modified Paths:
--------------
    trunk/dports/tex/texlive-bin/Portfile

Modified: trunk/dports/tex/texlive-bin/Portfile
===================================================================
--- trunk/dports/tex/texlive-bin/Portfile	2013-04-18 22:49:45 UTC (rev 105370)
+++ trunk/dports/tex/texlive-bin/Portfile	2013-04-18 23:30:59 UTC (rev 105371)
@@ -6,7 +6,7 @@
 
 name            texlive-bin
 version         2012
-revision        8
+revision        9
 
 categories      tex
 maintainers     dports
@@ -176,9 +176,16 @@
                 --without-pdfopen \
                 --enable-build-in-source-tree
 
-# makejvf has problems with at least some versions of clang (#38643);
-# disable it for now until we know what's going on and when.
-configure.args-append --disable-makejvf
+# makejvf has some invalid character encodings in one of its source
+# files, which cause certain versions of clang to hang (#38643). Using
+# -Wno-invalid-source-encoding avoids this problem.
+# It appears to be specific to Xcode 4.6, but there's no harm in
+# silencing the warning for all versions of clang.
+post-patch {
+    if {[string match *clang* ${configure.compiler}]} { 
+        reinplace "/^WARNING_CFLAGS =/s/$/ -Wno-invalid-source-encoding/" ${worksrcpath}/texk/makejvf/Makefile.in
+    }
+}
 
 configure.cppflags-delete   -I${prefix}/include
 configure.ldflags-delete    -L${prefix}/lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130418/6e021bb0/attachment-0001.html>


More information about the macports-changes mailing list