debugedit: 5.0 -> 5.2

This commit is contained in:
aleksana
2025-12-26 12:55:41 +08:00
parent 99d779f028
commit 452470f25d
+32 -8
View File
@@ -1,31 +1,55 @@
#TODO@deliciouslytyped The tool seems to unnecessarily force mutable access for the debugedit `-l` feature
{
fetchgit,
fetchpatch,
lib,
stdenv,
autoreconfHook,
pkg-config,
elfutils,
xxHash,
help2man,
util-linux,
cpio,
gdb,
dwz,
}:
stdenv.mkDerivation rec {
pname = "debugedit";
version = "5.0";
version = "5.2";
src = fetchgit {
url = "git://sourceware.org/git/debugedit.git";
tag = "debugedit-${version}";
hash = "sha256-6SOw5t9Hnb9Picx18LwqLwaPieueO6mXl8/vGnU+81E=";
};
patches = [
# fix: No build ID note found in ...
# caused by gcc not configured to produce build-id by default
(fetchpatch {
url = "https://sourceware.org/git/?p=debugedit.git;a=commitdiff_plain;h=c011f478dca2c89d52958a8999b99663d14db85d";
hash = "sha256-fOjXKA3U1YM+ZMieLhWiXdJj79IJ+iFNH0x+Asn/EMY=";
})
];
nativeBuildInputs = [
autoreconfHook
pkg-config
help2man
];
buildInputs = [ elfutils ];
nativeCheckInputs = [ util-linux ]; # Tests use `rev`
src = fetchgit {
url = "git://sourceware.org/git/debugedit.git";
rev = "debugedit-${version}";
sha256 = "VTZ7ybQT3DfKIfK0lH+JiehCJyJ+qpQ0bAn1/f+Pscs=";
};
buildInputs = [
elfutils
xxHash
];
nativeCheckInputs = [
util-linux # Tests use `rev`
cpio
gdb
dwz
];
preBuild = ''
patchShebangs scripts/find-debuginfo.in