r15885 - packages/trunk/netrek-client-cow/debian/patches

Markus Koschany apo at moszumanska.debian.org
Thu Sep 15 22:43:07 UTC 2016


Author: apo
Date: 2016-09-15 22:43:06 +0000 (Thu, 15 Sep 2016)
New Revision: 15885

Added:
   packages/trunk/netrek-client-cow/debian/patches/gcc5.patch
Log:
Add gcc5.patch


Added: packages/trunk/netrek-client-cow/debian/patches/gcc5.patch
===================================================================
--- packages/trunk/netrek-client-cow/debian/patches/gcc5.patch	                        (rev 0)
+++ packages/trunk/netrek-client-cow/debian/patches/gcc5.patch	2016-09-15 22:43:06 UTC (rev 15885)
@@ -0,0 +1,36 @@
+From: Markus Koschany <apo at debian.org>
+Date: Thu, 15 Sep 2016 22:46:11 +0200
+Subject: gcc5
+
+Add -P to CPPFLAGS when checking for GMP 2, a work around for gcc-5
+preprocessor started to emit line markers to properly distinguish whether a
+macro token comes from a system header.
+Original patch by Thavatchai Makphaibulchoke <thavatchai.makpahibulchoke at hp.com>
+
+Debian-Bug: https://bugs.debian.org/778025
+---
+ configure | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/configure b/configure
+index 4f70b56..1f436ba 100755
+--- a/configure
++++ b/configure
+@@ -5054,6 +5054,9 @@ fi
+ # Checking for GMP 2
+ SAVEINCS="$INCS"
+ INCS="$INCS $XINCLUDES"
++SAVECPPFLAGS="$CPPFLAGS"
++CPPFLAGS="$CPPFLAGS -P"
++
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -5068,6 +5071,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ fi
+ rm -f conftest*
+ 
++CPPFLAGS="$SAVECPPFLAGS"
+ INCS="$SAVEINCS"
+ 
+ if test "$MPLIB" = nope; then




More information about the Pkg-games-commits mailing list