[136513] trunk/dports/print/ghostscript

jmr at macports.org jmr at macports.org
Tue May 19 20:11:57 PDT 2015


Revision: 136513
          https://trac.macports.org/changeset/136513
Author:   jmr at macports.org
Date:     2015-05-19 20:11:57 -0700 (Tue, 19 May 2015)
Log Message:
-----------
ghostscript: remove use of -Werror instead of blacklisting compilers

Modified Paths:
--------------
    trunk/dports/print/ghostscript/Portfile

Added Paths:
-----------
    trunk/dports/print/ghostscript/files/no-werror.diff

Modified: trunk/dports/print/ghostscript/Portfile
===================================================================
--- trunk/dports/print/ghostscript/Portfile	2015-05-20 02:44:11 UTC (rev 136512)
+++ trunk/dports/print/ghostscript/Portfile	2015-05-20 03:11:57 UTC (rev 136513)
@@ -3,7 +3,6 @@
 
 PortSystem          1.0
 PortGroup           muniversal 1.0
-PortGroup           compiler_blacklist_versions 1.0
 
 name                ghostscript
 version             9.16
@@ -28,7 +27,8 @@
                     ghostscript-fonts-other-6.0.tar.gz:fonts \
                     ${mappingresources_commit}.zip:misc
 patchfiles          patch-base_unix-dll.mak.diff \
-                    patch-base_stdpre.h.diff
+                    patch-base_stdpre.h.diff \
+                    no-werror.diff
 
 checksums           ${distname}.tar.gz \
                     rmd160  9c483b93ccd106bae6db36b3335fae4e91177aec \
@@ -89,11 +89,6 @@
     }
 }
 
-# gcc-4.* and friends fail with error
-# ./trio/triop.h:407: error: type qualifiers ignored on function return type
-
-compiler.blacklist  *gcc* {clang < 300}
-
 use_autoreconf      yes
 autoreconf.args     -fv
 

Added: trunk/dports/print/ghostscript/files/no-werror.diff
===================================================================
--- trunk/dports/print/ghostscript/files/no-werror.diff	                        (rev 0)
+++ trunk/dports/print/ghostscript/files/no-werror.diff	2015-05-20 03:11:57 UTC (rev 136513)
@@ -0,0 +1,13 @@
+--- configure.ac.orig	2015-03-30 19:21:24.000000000 +1100
++++ configure.ac	2015-05-20 12:57:22.000000000 +1000
+@@ -195,8 +195,8 @@
+ if test $ac_cv_prog_gcc = yes; then
+     cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
+ -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
+--Wno-strict-aliasing -Werror=declaration-after-statement \
+--fno-builtin -fno-common -Werror=return-type"
++-Wno-strict-aliasing \
++-fno-builtin -fno-common"
+     optflags_to_try="$CC_OPT_FLAGS_TO_TRY"
+     dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY"
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150519/24bff9c2/attachment-0001.html>


More information about the macports-changes mailing list