From b69f04d9efec711f1d291d3ec071ebbf0ebfbcca Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 14 Sep 2023 21:19:05 +0100 Subject: [PATCH] Add a fix for libpulse errors --- debian/changelog | 6 ++++++ debian/control | 1 + debian/patches/libpulse.patch | 20 ++++++++++++++++++++ debian/patches/series | 1 + 4 files changed, 28 insertions(+) create mode 100644 debian/patches/libpulse.patch diff --git a/debian/changelog b/debian/changelog index 26d166b..8c958d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +qtsoundmodem (0.0.0.67-2) UNRELEASED; urgency=medium + + * Fixing libpulse + + -- Dave Hibberd Thu, 14 Sep 2023 21:17:09 +0100 + qtsoundmodem (0.0.0.67-1) unstable; urgency=medium * New Upstream diff --git a/debian/control b/debian/control index 54020c9..b066d8f 100644 --- a/debian/control +++ b/debian/control @@ -12,5 +12,6 @@ Rules-Requires-Root: no Package: qtsoundmodem Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: libpulse0 Description: Qt-based Sound Modem & Terminal for packet QtSoundModem (QtSM) is a multi-platform port of UZ7HO's SoundModem diff --git a/debian/patches/libpulse.patch b/debian/patches/libpulse.patch new file mode 100644 index 0000000..f425823 --- /dev/null +++ b/debian/patches/libpulse.patch @@ -0,0 +1,20 @@ +--- a/pulse.c ++++ b/pulse.c +@@ -67,7 +67,7 @@ + if (handle) + return handle; // already done + +- handle = dlopen("libpulse.so", RTLD_LAZY); ++ handle = dlopen("libpulse.so.0", RTLD_LAZY); + + if (!handle) + { +@@ -91,7 +91,7 @@ + if ((ppa_operation_unref = getModule(handle, "pa_operation_unref")) == NULL) return NULL; + if ((ppa_operation_get_state = getModule(handle, "pa_operation_get_state")) == NULL) return NULL; + +- shandle = dlopen("libpulse-simple.so", RTLD_LAZY); ++ shandle = dlopen("libpulse-simple.so.0", RTLD_LAZY); + + if (!shandle) + { diff --git a/debian/patches/series b/debian/patches/series index 48626c1..eded4b2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +libpulse.patch build-fix.patch