A quick dirty workaround for 64-bit binaries:
```
diff --git a/usr/bin/padsp.dpkg b/usr/bin/padsp
index 1f6bfd5..62e8686 100755
--- a/usr/bin/padsp.dpkg
+++ b/usr/bin/padsp
@@ -73,11 +73,7 @@ done
 
 shift $(( $OPTIND - 1 ))
 
-if [ x"$LD_PRELOAD" = x ] ; then
-   LD_PRELOAD="/usr/\\$$LIB/pulseaudio/libpulsedsp.so"
-else
-   LD_PRELOAD="$LD_PRELOAD /usr/\\$$LIB/pulseaudio/libpulsedsp.so"
-fi
+LD_PRELOAD=/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so
 
 export LD_PRELOAD
 
```

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/2068940

Title:
  bad environment variable in padsp script

Status in pulseaudio package in Ubuntu:
  Confirmed

Bug description:
  On jammy 22.04 LTS.  I need padsp for an old program that writes to /dev/dsp. 
 The /usr/bin/padsp script from pulseaudio-utils 1:15.99.1+dfsg1-1ubuntu2.2 has 
the lines
  if [ x"$LD_PRELOAD" = x ] ; then
     LD_PRELOAD="/usr/\\$$LIB/pulseaudio/libpulsedsp.so"
  else
     LD_PRELOAD="$LD_PRELOAD /usr/\\$$LIB/pulseaudio/libpulsedsp.so"
  fi
  I don't know where it is supposed to be picking up a value for $LIB, but it 
isn't working.  I get an error message: ld.so: object 
'/usr/\788488LIB/pulseaudio/libpulsedsp.so' from LD_PRELOAD cannot be preloaded 
(cannot open shared object file): ignored.
  The libpulsedsp 1:15.99.1+dfsg1-1ubuntu2.2  package put libpulsedsp.so in 
/usr/lib/x86_64-linux-gnu/pulseaudio and if I edit that into the script in 
place of the call to $LIB, everything works.  So I think it is just a problem 
with the use of LIB in the script.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/2068940/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to