[Debichem-commits] [debichem] r7170 - in unstable/qutemol/debian: . patches

ginggs at alioth.debian.org ginggs at alioth.debian.org
Fri Aug 11 18:27:07 UTC 2017


Author: ginggs
Date: 2017-08-11 18:27:07 +0000 (Fri, 11 Aug 2017)
New Revision: 7170

Added:
   unstable/qutemol/debian/patches/40_c++11_compatibility.patch
Modified:
   unstable/qutemol/debian/changelog
   unstable/qutemol/debian/patches/series
Log:
Fix C++11 compatibility, drop -std=gnu++98

Modified: unstable/qutemol/debian/changelog
===================================================================
--- unstable/qutemol/debian/changelog	2017-08-07 16:34:58 UTC (rev 7169)
+++ unstable/qutemol/debian/changelog	2017-08-11 18:27:07 UTC (rev 7170)
@@ -1,3 +1,9 @@
+qutemol (0.4.1~cvs20081111-7) UNRELEASED; urgency=medium
+
+  * Fix C++11 compatibility, drop -std=gnu++98 (Closes: #856406)
+
+ -- Graham Inggs <ginggs at debian.org>  Fri, 11 Aug 2017 18:09:09 +0000
+
 qutemol (0.4.1~cvs20081111-6) unstable; urgency=medium
 
   * Add -std=gnu++98 to CXXFLAGS to fix FTBFS with GCC6,

Added: unstable/qutemol/debian/patches/40_c++11_compatibility.patch
===================================================================
--- unstable/qutemol/debian/patches/40_c++11_compatibility.patch	                        (rev 0)
+++ unstable/qutemol/debian/patches/40_c++11_compatibility.patch	2017-08-11 18:27:07 UTC (rev 7170)
@@ -0,0 +1,20 @@
+Description: C++11 compatibility
+ Use C++11 static_assert instead of a macro for assert.
+Bug-Debian: https://bugs.debian.org/856406
+Forwarded: no
+Author: Graham Inggs <ginggs at debian.org>
+Last-Update: 2017-08-11
+--- a/vcg/vcg/math/base.h
++++ b/vcg/vcg/math/base.h
+@@ -93,11 +93,6 @@
+ #include <assert.h>
+ #include <limits.h>
+ 
+-/// static_assert: implemented as a macro for "assert", but it is separated for clarity.
+-/// Should be used for checking integrity constraints that can be tested at complile time,
+-/// as the ones involving templated constants in templated classes.
+-#define static_assert assert
+-
+   #ifdef __BORLANDC__
+     float sqrtf (float v) {return sqrt(v);}
+     float fabsf (float v) {return fabs(v);}

Modified: unstable/qutemol/debian/patches/series
===================================================================
--- unstable/qutemol/debian/patches/series	2017-08-07 16:34:58 UTC (rev 7169)
+++ unstable/qutemol/debian/patches/series	2017-08-11 18:27:07 UTC (rev 7170)
@@ -37,3 +37,4 @@
 37_giflib5.patch
 38_libpng15.patch
 39_reproducible_build.patch
+40_c++11_compatibility.patch




More information about the Debichem-commits mailing list