[SCM] libsoxr/master: Fix FTCBFS

mattia at users.alioth.debian.org mattia at users.alioth.debian.org
Sat Nov 4 21:06:36 UTC 2017


The following commit has been merged in the master branch:
commit f4529511b85635bd0d0c26133b0d1e3322462b49
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Nov 4 21:54:11 2017 +0100

    Fix FTCBFS
    
    + Feed endianess from DEB_HOST_ARCH_ENDIAN
    + Honour DEB_BUILD_OPTIONS=nocheck
    
    Closes: #853194
    Thanks: Helmut Grohne <helmut at subdivi.de> for the patch
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>

diff --git a/debian/rules b/debian/rules
index 8f2b34f..2c9de24 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,13 +2,26 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+
+CONFIGURE_FLAGS = -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
+		  -DDOC_INSTALL_DIR=/usr/share/doc/libsoxr-dev
+
+ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
+CONFIGURE_FLAGS += -DHAVE_WORDS_BIGENDIAN_EXITCODE=0
+else
+CONFIGURE_FLAGS += -DHAVE_WORDS_BIGENDIAN_EXITCODE=1
+endif
+
+ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+CONFIGURE_FLAGS += -DBUILD_TESTS=0 -DBUILD_EXAMPLES=1
+endif
 
 %:
 	dh $@ --parallel
 
 override_dh_auto_configure:
-	dh_auto_configure -- -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) -DDOC_INSTALL_DIR=/usr/share/doc/libsoxr-dev
+	dh_auto_configure -- $(CONFIGURE_FLAGS)
 
 override_dh_compress:
 	dh_compress -X.c -X.C

-- 
libsoxr packaging



More information about the pkg-multimedia-commits mailing list