diff --git a/pkgs/by-name/el/elfutils/package.nix b/pkgs/by-name/el/elfutils/package.nix index f07ab5b6aebc..581cb244ea52 100644 --- a/pkgs/by-name/el/elfutils/package.nix +++ b/pkgs/by-name/el/elfutils/package.nix @@ -29,11 +29,11 @@ # TODO: Look at the hardcoded paths to kernel, modules etc. stdenv.mkDerivation rec { pname = "elfutils"; - version = "0.192"; + version = "0.193"; src = fetchurl { url = "https://sourceware.org/elfutils/ftp/${version}/${pname}-${version}.tar.bz2"; - hash = "sha256-YWCZvq4kq6Efm2PYbKbMjVZtlouAI5EzTJHfVOq0FrQ="; + hash = "sha256-eFf0S2JPTY1CHfhRqq57FALP5rzdLYBJ8V/AfT3edjU="; }; patches = @@ -146,6 +146,14 @@ stdenv.mkDerivation rec { && (stdenv.hostPlatform == stdenv.buildPlatform); doInstallCheck = !stdenv.hostPlatform.isMusl && (stdenv.hostPlatform == stdenv.buildPlatform); + preCheck = '' + # Workaround lack of rpath linking: + # ./dwarf_srclang_check: error while loading shared libraries: + # libelf.so.1: cannot open shared object file: No such file or directory + # Remove once https://sourceware.org/PR32929 is fixed. + export LD_LIBRARY_PATH="$PWD/libelf:$LD_LIBRARY_PATH" + ''; + passthru.updateScript = gitUpdater { url = "https://sourceware.org/git/elfutils.git"; rev-prefix = "elfutils-";