Bug#845802: padsp 32 bits application issue on 64 bits system

2016-11-30 Thread Felipe Sateler
Control: forwarded -1 
https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-November/027199.html

On 26 November 2016 at 16:58, Nicolas DEFFAYET  wrote:
> Package: pulseaudio-utils
> Version: 5.0-13
> Severity: normal
>
>
> Issue
> -
>
> padsp provided in pulseaudio-utils:amd64 support only 64 bits
> applications.
>
> 32 bits applications run on 64 bits system (multiarch) fail with:
> ERROR: ld.so: object
> '/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so' from LD_PRELOAD
> cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>
>
> Where is the bug ?
> --
>
> The bug is due to the fact padsp provided in pulseaudio-utils:amd64
> always load 64 bit version of libpulsedsp.so. This can't work for 32
> bits applications as they require 32 bit version of libpulsedsp.so.
>
>
> How fix the issue ?
> ---
>
> # cp /usr/bin/padsp /usr/bin/padsp32
> # sed -i 's/\/usr\/lib\/x86_64-linux-gnu\/pulseaudio\/libpulsedsp.so/ =>
> \/usr\/lib\/i386-linux-gnu\/pulseaudio
> \/libpulsedsp.so/g' /usr/bin/padsp32
>
> /usr/bin/padsp32 must be provided in pulseaudio-utils:amd64 in addition
> of /usr/bin/padsp.
>
> Expected usage is:
> /usr/bin/padsp 
> /usr/bin/padsp32 

A better fix would be to have padsp load the correct library according
to the binary being loaded. Upstream patch proposed at the url above.

I don't think this will be fixed in jessie though. This would be too
intrusive a change.

-- 

Saludos,
Felipe Sateler



Bug#845802: padsp 32 bits application issue on 64 bits system

2016-11-26 Thread Nicolas DEFFAYET
Package: pulseaudio-utils
Version: 5.0-13
Severity: normal


Issue
-

padsp provided in pulseaudio-utils:amd64 support only 64 bits
applications.

32 bits applications run on 64 bits system (multiarch) fail with:
ERROR: ld.so: object
'/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so' from LD_PRELOAD
cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.


Where is the bug ?
--

The bug is due to the fact padsp provided in pulseaudio-utils:amd64
always load 64 bit version of libpulsedsp.so. This can't work for 32
bits applications as they require 32 bit version of libpulsedsp.so.


How fix the issue ?
---

# cp /usr/bin/padsp /usr/bin/padsp32
# sed -i 's/\/usr\/lib\/x86_64-linux-gnu\/pulseaudio\/libpulsedsp.so/ =>
\/usr\/lib\/i386-linux-gnu\/pulseaudio
\/libpulsedsp.so/g' /usr/bin/padsp32

/usr/bin/padsp32 must be provided in pulseaudio-utils:amd64 in addition
of /usr/bin/padsp.

Expected usage is:
/usr/bin/padsp 
/usr/bin/padsp32 


-- 
Nicolas DEFFAYET