mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
citrix-receiver: fix patchelf error during installPhase
Due to recent change in patchelf, it's now necessary to run chmod u+w prior to running patchelf itself. Fixes #14440 for citrix-receiver
This commit is contained in:
parent
88c97e2860
commit
3a75ed4464
1 changed files with 8 additions and 3 deletions
|
@ -121,9 +121,14 @@ stdenv.mkDerivation rec {
|
||||||
find $ICAInstDir -type f -exec file {} \; |
|
find $ICAInstDir -type f -exec file {} \; |
|
||||||
grep 'ELF.*executable' |
|
grep 'ELF.*executable' |
|
||||||
cut -f 1 -d : |
|
cut -f 1 -d : |
|
||||||
xargs -t -n 1 patchelf \
|
while read f
|
||||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
do
|
||||||
--set-rpath "$ICAInstDir:$libPath"
|
echo "Patching ELF intrepreter and rpath for $f"
|
||||||
|
chmod u+w "$f"
|
||||||
|
patchelf \
|
||||||
|
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||||
|
--set-rpath "$ICAInstDir:$libPath" "$f"
|
||||||
|
done
|
||||||
|
|
||||||
echo "Wrapping wfica..."
|
echo "Wrapping wfica..."
|
||||||
mkdir "$out/bin"
|
mkdir "$out/bin"
|
||||||
|
|
Loading…
Reference in a new issue