[Debian-iot-packaging] [alljoyn-core-1504] 02/02: Import Debian patch 15.04b-7

Thorsten Alteholz alteholz at moszumanska.debian.org
Tue Oct 11 17:56:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository alljoyn-core-1504.

commit 2d9e5c2f2fd7569a6849e28ff84a77569f210167
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Sun Aug 7 12:31:37 2016 +0200

    Import Debian patch 15.04b-7
---
 debian/changelog          |  8 ++++++
 debian/patches/gcc6.patch | 69 +++++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series     |  1 +
 debian/rules              |  9 ++++---
 4 files changed, 84 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6675c30..74dfc9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+alljoyn-core-1504 (15.04b-7) unstable; urgency=medium
+
+  * take care of gcc-6 build errors (Closes: #831127)
+  * deactivating gtest for now as it does not work with gcc-6
+    (-> look at #833636)
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sun, 07 Aug 2016 12:31:37 +0200
+
 alljoyn-core-1504 (15.04b-6) unstable; urgency=medium
 
   * put some software for testing the library to
diff --git a/debian/patches/gcc6.patch b/debian/patches/gcc6.patch
new file mode 100644
index 0000000..7965c12
--- /dev/null
+++ b/debian/patches/gcc6.patch
@@ -0,0 +1,69 @@
+Author: Thorsten Alteholz <debian at alteholz.de>
+Description: take care of compile errors due to gcc-6
+Index: alljoyn-core-1504-15.04b/common/src/CryptoSRP.cc
+===================================================================
+--- alljoyn-core-1504-15.04b.orig/common/src/CryptoSRP.cc	2016-08-07 15:02:46.000000000 +0200
++++ alljoyn-core-1504-15.04b/common/src/CryptoSRP.cc	2016-08-07 15:06:30.000000000 +0200
+@@ -26,7 +26,12 @@
+ #include <assert.h>
+ #include <ctype.h>
+ #include <stdio.h>
+-#include <math.h>
++/* need to change include files, problem occurs with gcc-6 */
++#if __GNUC__ >= 6
++ #include <cmath>
++#else
++ #include <math.h>
++#endif
+ 
+ #include <qcc/Debug.h>
+ #include <qcc/Crypto.h>
+Index: alljoyn-core-1504-15.04b/common/src/SLAPStream.cc
+===================================================================
+--- alljoyn-core-1504-15.04b.orig/common/src/SLAPStream.cc	2016-08-07 15:02:46.000000000 +0200
++++ alljoyn-core-1504-15.04b/common/src/SLAPStream.cc	2016-08-07 15:02:46.000000000 +0200
+@@ -465,7 +465,7 @@
+             /*
+              * Check that the configuration response is valid.
+              */
+-            if (m_linkParams.packetSize > m_linkParams.packetSize) {
++            if (m_linkParams.packetSize > m_linkParams.maxPacketSize) {
+                 QCC_LogError(ER_FAIL, ("Configuration failed - device is not configuring link correctly %d %d", m_linkParams.packetSize, m_linkParams.maxPacketSize));
+                 m_linkState = LINK_DEAD;
+                 return;
+Index: alljoyn-core-1504-15.04b/common/src/StringUtil.cc
+===================================================================
+--- alljoyn-core-1504-15.04b.orig/common/src/StringUtil.cc	2016-08-07 15:02:46.000000000 +0200
++++ alljoyn-core-1504-15.04b/common/src/StringUtil.cc	2016-08-07 15:06:47.000000000 +0200
+@@ -24,7 +24,12 @@
+ 
+ #include <algorithm>
+ #include <cctype>
+-#include <math.h>
++/* need to change include files, problem occurs with gcc-6 */
++#if __GNUC__ >= 6
++ #include <cmath>
++#else
++ #include <math.h>
++#endif
+ 
+ #include <qcc/String.h>
+ #include <qcc/StringUtil.h>
+Index: alljoyn-core-1504-15.04b/common/crypto/openssl/CryptoAES.cc
+===================================================================
+--- alljoyn-core-1504-15.04b.orig/common/crypto/openssl/CryptoAES.cc	2016-08-07 15:02:46.000000000 +0200
++++ alljoyn-core-1504-15.04b/common/crypto/openssl/CryptoAES.cc	2016-08-07 15:06:55.000000000 +0200
+@@ -25,7 +25,12 @@
+ #include <algorithm>
+ #include <assert.h>
+ #include <ctype.h>
+-#include <math.h>
++/* need to change include files, problem occurs with gcc-6 */
++#if __GNUC__ >= 6
++ #include <cmath>
++#else
++ #include <math.h>
++#endif
+ 
+ #include <qcc/String.h>
+ #include <qcc/StringUtil.h>
diff --git a/debian/patches/series b/debian/patches/series
index 3618276..2d343d8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ more-native-cpus.patch
 remove-build.xml
 time.patch
 no-bsymbolic.patch
+gcc6.patch
diff --git a/debian/rules b/debian/rules
index 44a8a29..98701fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 export JAVA_HOME=/usr/lib/jvm/default-java
 export CLASSPATH=/usr/share/java/csv.jar:/usr/share/java/debug-disable.jar:/usr/share/java/itext.jar
-export GTEST_DIR=/usr/src/gtest
+#XXX deactivate tests for now: export GTEST_DIR=/usr/src/gtest
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
@@ -22,7 +22,8 @@ OS=linux
 export VERSION := 15.04b
 export SONAME := 1504
 export VARIANT := release
-export SCONS_ARGS := CPU=$(CPU) OS=$(OS) VARIANT=$(VARIANT) V=1 GTEST_DIR=$(GTEST_DIR)
+#XXX deactivate tests for now: export SCONS_ARGS := CPU=$(CPU) OS=$(OS) VARIANT=$(VARIANT) V=1 GTEST_DIR=$(GTEST_DIR)
+export SCONS_ARGS := CPU=$(CPU) OS=$(OS) VARIANT=$(VARIANT) V=1 
 export BUILD_DIR := $(CURDIR)/build/$(OS)/$(CPU)/$(VARIANT)/dist
 export OBJ_DIR := $(CURDIR)/build/$(OS)/$(CPU)/$(VARIANT)/obj
 
@@ -36,6 +37,8 @@ override_dh_auto_build:
 #		WS=off BT=off ICE=off 
 
 	dpkg-architecture -l
+	gcc --version
+	g++ --version
 
 	scons BINDINGS=c $(SCONS_ARGS) \
 		WS=off BT=off ICE=off 
@@ -79,7 +82,7 @@ override_dh_auto_clean:
 	dh_auto_clean
 
 override_dh_auto_test:
-	./build/$(OS)/$(CPU)/$(VARIANT)/test/cpp/bin/cmtest
+	#XXX deactivate tests for now: ./build/$(OS)/$(CPU)/$(VARIANT)/test/cpp/bin/cmtest
 	dh_auto_test
 
 override_dh_installchangelogs:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/alljoyn-core-1504.git



More information about the Debian-iot-packaging mailing list