-
-
Notifications
You must be signed in to change notification settings - Fork 510
Closed
Labels
Description
Describe the bug
While trying to package the .tar.gz version of teamviewer (.deb has some issues) using autoPatchelfHook, it failed with the following error:
automatically fixing dependencies for ELF files
patchelf: cannot find section '.gnu.hash'
Command failed: patchelf --set-interpreter /nix/store/gafigwfaimlziam6qhw1m8dz4h952g1n-glibc-2.32-35/lib/ld-linux-x86-64.so.2 /nix/store/458ls4agkn01mw4l3zm3wkplhi0jnj6j-teamviewer-0.0/bin/d/libdepend
Steps To Reproduce
Start by downloading and uncompressing this file libdepend.zip in the current folder (taken from the file ./tv_bin/script/libdepend of teamviewer .tar.gz version), and run the following commands:
$ nix-shell -p stdenv
[nix-shell]$ file libdepend
libdepend: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, stripped
[nix-shell]$ patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" libdepend
patchelf: cannot find section '.gnu.hash'
Expected behavior
I expect it to just patch the file without any error.
patchelf 0.12.20200827.8d3a16e