Package: libcmis Version: 0.4.1-3 Severity: serious Tags: patch Justification: fails to build from source (but built successfully in the past) User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu trusty ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following: * debian/patches/fix-endian-bool.diff: Fix int/bool confusion that leads to the test suite failing on all big-endian architectures. This should be fairly self-explanatory. In that actual code, isOutOfMemory is defined and used as a bool, but in the testsuite it's declared as an int. On big-endian arches, int and bool aren't even remotely interchangeable, so fixing the declaration in the testsuite (as this patch does) fixes the FTBFS. This should be forwarded upstream too, obviously. ... Adam -- System Information: Debian Release: jessie/sid APT prefers trusty-updates APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13.0-6-generic (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru libcmis-0.4.1/debian/changelog libcmis-0.4.1/debian/changelog diff -Nru libcmis-0.4.1/debian/control libcmis-0.4.1/debian/control --- libcmis-0.4.1/debian/control 2014-02-05 08:53:57.000000000 -0700 +++ libcmis-0.4.1/debian/control 2014-02-05 19:18:48.000000000 -0700 @@ -1,7 +1,6 @@ Source: libcmis Priority: optional -Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> -XSBC-Original-Maintainer: Rene Engelhard <r...@debian.org> +Maintainer: Rene Engelhard <r...@debian.org> Build-Depends: debhelper (>= 8.0.0), autotools-dev, libxml2-dev, libboost-dev, libboost-program-options-dev, libcurl4-gnutls-dev, libcppunit-dev, docbook-to-man, libboost-date-time-dev, dpkg-dev (>= 1.16.1), dh-autoreconf Standards-Version: 3.9.2 Section: libs diff -Nru libcmis-0.4.1/debian/patches/fix-endian-bool.diff libcmis-0.4.1/debian/patches/fix-endian-bool.diff --- libcmis-0.4.1/debian/patches/fix-endian-bool.diff 1969-12-31 17:00:00.000000000 -0700 +++ libcmis-0.4.1/debian/patches/fix-endian-bool.diff 2014-02-05 18:47:05.000000000 -0700 @@ -0,0 +1,14 @@ +Description: Fix int/bool confusion on big-endian architectures. +Author: Adam Conrad <adcon...@ubuntu.com> + +--- libcmis-0.4.1.orig/qa/libcmis-c/test-document.cxx ++++ libcmis-0.4.1/qa/libcmis-c/test-document.cxx +@@ -43,7 +43,7 @@ + + using namespace std; + +-extern int isOutOfMemory; ++extern bool isOutOfMemory; + + namespace + { diff -Nru libcmis-0.4.1/debian/patches/series libcmis-0.4.1/debian/patches/series --- libcmis-0.4.1/debian/patches/series 2014-02-05 08:51:24.000000000 -0700 +++ libcmis-0.4.1/debian/patches/series 2014-02-05 19:15:06.000000000 -0700 @@ -1,3 +1,3 @@ fix-run-tests-sh.diff fix-docbook-to-man-call.diff - +fix-endian-bool.diff