diff -Nru apulse-0.1.12/debian/changelog apulse-0.1.12/debian/changelog --- apulse-0.1.12/debian/changelog 2018-05-19 17:39:22.000000000 +0000 +++ apulse-0.1.12/debian/changelog 2018-07-31 06:40:03.000000000 +0000 @@ -1,3 +1,9 @@ +apulse (0.1.12-2) unstable; urgency=medium + + * Support multi-arch builds, thanks Yuriy M. Kaminskiy (Closes: #904848) + + -- Mirek Kratochvil Tue, 31 Jul 2018 08:40:03 +0200 + apulse (0.1.12-1) unstable; urgency=medium * Upstream release 0.1.12 (Closes: #899043) diff -Nru apulse-0.1.12/debian/control apulse-0.1.12/debian/control --- apulse-0.1.12/debian/control 2018-05-19 17:39:22.000000000 +0000 +++ apulse-0.1.12/debian/control 2018-07-31 06:40:03.000000000 +0000 @@ -3,13 +3,15 @@ Priority: optional Maintainer: Mirek Kratochvil Build-Depends: debhelper (>= 11), cmake, pkg-config, libasound2-dev, libglib2.0-dev -Standards-Version: 4.1.4 +Rules-Requires-Root: no +Standards-Version: 4.1.5 Homepage: https://github.com/i-rinat/apulse Vcs-Git: https://github.com/exaexa/apulse-debian.git Vcs-Browser: https://github.com/exaexa/apulse-debian Package: apulse Architecture: linux-any +Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} Description: PulseAudio emulation for ALSA The program provides an alternative partial implementation of the PulseAudio diff -Nru apulse-0.1.12/debian/patches/multi-arch.patch apulse-0.1.12/debian/patches/multi-arch.patch --- apulse-0.1.12/debian/patches/multi-arch.patch 1970-01-01 00:00:00.000000000 +0000 +++ apulse-0.1.12/debian/patches/multi-arch.patch 2018-07-31 06:38:55.000000000 +0000 @@ -0,0 +1,34 @@ +Patch the build infrastructure to support multiarch. +Index: apulse-0.1.12/CMakeLists.txt +=================================================================== +--- apulse-0.1.12.orig/CMakeLists.txt ++++ apulse-0.1.12/CMakeLists.txt +@@ -1,6 +1,8 @@ + project(apulse) + cmake_minimum_required (VERSION 2.8) + ++include(GNUInstallDirs) ++ + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -fPIC -fvisibility=hidden") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") +@@ -72,7 +74,7 @@ target_link_libraries(pulse-simple ${SYM + + add_subdirectory(tests) + +-set(APULSEPATH "${CMAKE_INSTALL_PREFIX}/lib/apulse" CACHE PATH "library installation directory") ++set(APULSEPATH "${CMAKE_INSTALL_LIBDIR}/apulse" CACHE PATH "library installation directory") + set(APULSE_SEARCH_PATHS "${APULSEPATH}" CACHE PATH "directory list for LD_LIBRARY_PATH") + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/apulse.template" + "${CMAKE_CURRENT_BINARY_DIR}/apulse" @ONLY) +Index: apulse-0.1.12/src/apulse.template +=================================================================== +--- apulse-0.1.12.orig/src/apulse.template ++++ apulse-0.1.12/src/apulse.template +@@ -1,5 +1,5 @@ + #!/bin/sh + +-APULSEPATH="@APULSE_SEARCH_PATHS@" ++APULSEPATH='/usr/$LIB/apulse' + + LD_LIBRARY_PATH=$APULSEPATH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec "$@" diff -Nru apulse-0.1.12/debian/patches/series apulse-0.1.12/debian/patches/series --- apulse-0.1.12/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ apulse-0.1.12/debian/patches/series 2018-07-31 06:32:38.000000000 +0000 @@ -0,0 +1 @@ +multi-arch.patch diff -Nru apulse-0.1.12/debian/rules apulse-0.1.12/debian/rules --- apulse-0.1.12/debian/rules 2018-05-19 17:39:22.000000000 +0000 +++ apulse-0.1.12/debian/rules 2018-05-20 20:06:01.000000000 +0000 @@ -1,6 +1,8 @@ #!/usr/bin/make -f #export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + %: dh $@