[ovito] 01/02: Fix FTBFS on archs, where char is unsigned. (Closes: #871248)
Anton Gladky
gladk at moszumanska.debian.org
Thu Aug 10 17:47:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository ovito.
commit cdb5bde459d5526e58e57fd64cd80e2c0275610f
Author: Anton Gladky <gladk at debian.org>
Date: Thu Aug 10 19:44:54 2017 +0200
Fix FTBFS on archs, where char is unsigned. (Closes: #871248)
---
debian/patches/10_fix_ftbfs_on_some_archs.patch | 70 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 71 insertions(+)
diff --git a/debian/patches/10_fix_ftbfs_on_some_archs.patch b/debian/patches/10_fix_ftbfs_on_some_archs.patch
new file mode 100644
index 0000000..b80c820
--- /dev/null
+++ b/debian/patches/10_fix_ftbfs_on_some_archs.patch
@@ -0,0 +1,70 @@
+Description: Fix FTBFS on archs, where char is unsigned
+Author: Anton Gladky <gladk at debian.org>
+Bug-Debian: https://bugs.debian.org/871248
+Last-Update: 2017-08-10
+
+--- ovito-2.9.0+dfsg1.orig/src/plugins/particles/modifier/fields/MarchingCubesLookupTable.h
++++ ovito-2.9.0+dfsg1/src/plugins/particles/modifier/fields/MarchingCubesLookupTable.h
+@@ -41,7 +41,7 @@
+ * 0 1 0 1
+ */
+ //-----------------------------------------------------------------------------
+-static const char cases[256][2] = {
++static const signed char cases[256][2] = {
+ /* 0: */ { 0, -1 },
+ /* 1: 0, */ { 1, 0 },
+ /* 2: 1, */ { 1, 1 },
+@@ -388,7 +388,7 @@ static const char tiling2[24][6] = {
+ * A minus sign means to invert the result of the test.
+ */
+ //-----------------------------------------------------------------------------
+-static const char test3[24] = {
++static const signed char test3[24] = {
+ /* 5: 0, 2, */ 5,
+ /* 33: 0, 5, */ 1,
+ /* 129: 0, 7, */ 4,
+@@ -509,7 +509,7 @@ static const char tiling3_2[24][12] = {
+ * A minus sign means to invert the result of the test.
+ */
+ //-----------------------------------------------------------------------------
+-static const char test4[8] = {
++static const signed char test4[8] = {
+ /* 65: 0, 6, */ 7,
+ /* 130: 1, 7, */ 7,
+ /* 20: 2, 4, */ 7,
+@@ -648,7 +648,7 @@ static const char tiling5[48][9] = {
+ * A minus sign means to invert the result of the test.
+ */
+ //-----------------------------------------------------------------------------
+-static const char test6[48][3] = {
++static const signed char test6[48][3] = {
+ /* 67: 0, 1, 6, */ { 2, 7, 10 },
+ /* 131: 0, 1, 7, */ { 4, 7, 11 },
+ /* 21: 0, 2, 4, */ { 5, 7, 1 },
+@@ -912,7 +912,7 @@ static const char tiling6_2[48][15] = {
+ * A minus sign means to invert the result of the test.
+ */
+ //-----------------------------------------------------------------------------
+-static const char test7[16][5] = {
++static const signed char test7[16][5] = {
+ /* 37: 0, 2, 5, */ { 1, 2, 5, 7, 1 },
+ /* 133: 0, 2, 7, */ { 3, 4, 5, 7, 3 },
+ /* 161: 0, 5, 7, */ { 4, 1, 6, 7, 4 },
+@@ -1689,7 +1689,7 @@ static const char test13[2][7] = {
+ */
+ //-----------------------------------------------------------------------------
+ /* 13: sub configs */
+-static const char subconfig13[64] = {
++static const signed char subconfig13[64] = {
+ /* 0: 0,0,0,0,0,0 */ 0,
+ /* 1: 1,0,0,0,0,0 */ 1,
+ /* 2: 0,1,0,0,0,0 */ 2,
+@@ -2057,7 +2057,7 @@ static const char tiling14[12][12] = {
+ * the cube is not.
+ */
+ //-----------------------------------------------------------------------------
+-static const char casesClassic[256][16] = {
++static const signed char casesClassic[256][16] = {
+ /* 0: */ { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
+ /* 1: 0, */ { 0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
+ /* 2: 1, */ { 0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
diff --git a/debian/patches/series b/debian/patches/series
index 63719f3..84dcdb5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-Disable-povray-test.patch
0004-Use-system-pybind11.patch
06_fix_gcc7_compiation.patch
+10_fix_ftbfs_on_some_archs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ovito.git
More information about the debian-science-commits
mailing list