[145864] trunk/dports/net/kerberos5

jmr at macports.org jmr at macports.org
Fri Feb 19 08:13:54 PST 2016


Revision: 145864
          https://trac.macports.org/changeset/145864
Author:   jmr at macports.org
Date:     2016-02-19 08:13:54 -0800 (Fri, 19 Feb 2016)
Log Message:
-----------
kerberos5: don't compile with -Werror

Modified Paths:
--------------
    trunk/dports/net/kerberos5/Portfile

Added Paths:
-----------
    trunk/dports/net/kerberos5/files/no-Werror.patch

Modified: trunk/dports/net/kerberos5/Portfile
===================================================================
--- trunk/dports/net/kerberos5/Portfile	2016-02-19 15:55:21 UTC (rev 145863)
+++ trunk/dports/net/kerberos5/Portfile	2016-02-19 16:13:54 UTC (rev 145864)
@@ -44,7 +44,8 @@
                             patch-lib_rpc_Makefile.in-explicitly-link-krb5support.diff \
                             df17a1224a3406f57477bcd372c61e04c0e5a5bb.patch \
                             b863de7fbf080b15e347a736fdda0a82d42f4f6b.patch \
-                            83ed75feba32e46f736fcce0d96a0445f29b96c2.patch
+                            83ed75feba32e46f736fcce0d96a0445f29b96c2.patch \
+                            no-Werror.patch
 
 use_autoreconf              yes
 # kerberos5 fails to build in its own presence, see #23769, #37944

Added: trunk/dports/net/kerberos5/files/no-Werror.patch
===================================================================
--- trunk/dports/net/kerberos5/files/no-Werror.patch	                        (rev 0)
+++ trunk/dports/net/kerberos5/files/no-Werror.patch	2016-02-19 16:13:54 UTC (rev 145864)
@@ -0,0 +1,33 @@
+--- aclocal.m4.orig	2015-11-21 05:42:12.000000000 +1100
++++ aclocal.m4	2016-02-20 03:05:00.000000000 +1100
+@@ -526,7 +526,7 @@
+     TRY_WARN_CC_FLAG(-Wno-format-zero-length)
+     # Other flags here may not be supported on some versions of
+     # gcc that people want to use.
+-    for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized error=pointer-arith ; do
++    for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof ; do
+       TRY_WARN_CC_FLAG(-W$flag)
+     done
+     #  old-style-definition? generates many, many warnings
+@@ -543,10 +543,7 @@
+     # We're currently targeting C89+, not C99, so disallow some
+     # constructs.
+     for flag in declaration-after-statement ; do
+-      TRY_WARN_CC_FLAG(-Werror=$flag)
+-      if test "$flag_supported" = no; then
+         TRY_WARN_CC_FLAG(-W$flag)
+-      fi
+     done
+     # We require function declarations now.
+     #
+@@ -555,10 +552,6 @@
+     # version doesn't cause implicitly declared functions to be
+     # flagged as errors.  If neither works, -Wall implies
+     # -Wimplicit-function-declaration so don't bother.
+-    TRY_WARN_CC_FLAG(-Werror-implicit-function-declaration)
+-    if test "implicit-function-declaration_supported" = no; then
+-      TRY_WARN_CC_FLAG(-Werror=implicit-function-declaration)
+-    fi
+     #
+   fi
+   if test "`uname -s`" = Darwin ; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160219/3de5450b/attachment.html>


More information about the macports-changes mailing list