Package: apulse
Version: 0.1.12-1
Severity: normal
Tags: patch

Dear Maintainer,

Please add support for co-installation of apulse package for multi-arch
systems. Patch attached; I've briefly tested without any apparent problems (in self-compiled backport on stretch system).

-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R), LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

diff -Nru apulse-0.1.12/debian/control apulse-0.1.12/debian/control
--- apulse-0.1.12/debian/control        2018-05-19 20:39:22.000000000 +0300
+++ apulse-0.1.12/debian/control        2018-07-28 23:43:20.000000000 +0300
@@ -10,6 +10,7 @@
 
 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 
03:00:00.000000000 +0300
+++ apulse-0.1.12/debian/patches/multi-arch.patch       2018-07-28 
23:43:20.000000000 +0300
@@ -0,0 +1,33 @@
+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 03:00:00.000000000 +0300
+++ apulse-0.1.12/debian/patches/series 2018-07-28 23:43:20.000000000 +0300
@@ -0,0 +1 @@
+multi-arch.patch

Reply via email to