From 86b0198a2a8493fa2aef1a6bb27d6d9ab99204d9 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 28 Apr 2025 07:00:34 +0100 Subject: [PATCH] elfutils: 0.192 -> 0.193 Changes: https://www.mail-archive.com/elfutils-devel@sourceware.org/msg08098.html --- pkgs/by-name/el/elfutils/package.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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-";