pulseaudio-modules-bt: Patched rpath takes precedence over original
This fixes a segmentation fault when loaded via pulseaudio's dl-search-path
This commit is contained in:
parent
9fa59b6bc7
commit
613d3bac86
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
{ stdenv
|
||||
, runCommand
|
||||
, fetchFromGitHub
|
||||
, libpulseaudio
|
||||
, pulseaudio
|
||||
, pkgconfig
|
||||
, ffmpeg_4
|
||||
|
@ -44,7 +43,6 @@ in stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildInputs = [
|
||||
libpulseaudio
|
||||
pulseaudio
|
||||
ffmpeg_4
|
||||
libtool
|
||||
|
@ -67,7 +65,7 @@ in stdenv.mkDerivation rec {
|
|||
for so in $out/lib/pulse-${pulseaudio.version}/modules/*.so; do
|
||||
orig_rpath=$(patchelf --print-rpath "$so")
|
||||
patchelf \
|
||||
--set-rpath "$orig_rpath:${lib.getLib ffmpeg_4}/lib:$out/lib/pulse-${pulseaudio.version}/modules" \
|
||||
--set-rpath "${lib.getLib ffmpeg_4}/lib:$out/lib/pulse-${pulseaudio.version}/modules:$orig_rpath" \
|
||||
"$so"
|
||||
done
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue