pkgsMusl.valgrind-light: fix build

We need to add autoreconfHook because the patch modifies configure.ac.
This commit is contained in:
Alyssa Ross 2021-11-10 22:23:52 +00:00
parent 81e2cd50e5
commit ae3ffded45

View File

@ -1,4 +1,7 @@
{ lib, stdenv, fetchurl, perl, gdb, cctools, xnu, bootstrap_cmds }:
{ lib, stdenv, fetchurl, fetchpatch
, autoreconfHook, perl
, gdb, cctools, xnu, bootstrap_cmds
}:
stdenv.mkDerivation rec {
pname = "valgrind";
@ -9,16 +12,25 @@ stdenv.mkDerivation rec {
sha256 = "sha256-AIWaoTp3Lt33giIl9LRu4NOa++Bx0yd42k2ZmECB9/U=";
};
patches = [
# Fix tests on Musl.
# https://bugs.kde.org/show_bug.cgi?id=445300
(fetchpatch {
url = "https://bugsfiles.kde.org/attachment.cgi?id=143535";
sha256 = "036zyk30rixjvpylw3c7n171n4gpn6zcp7h6ya2dz4h5r478l9i6";
})
];
outputs = [ "out" "dev" "man" "doc" ];
hardeningDisable = [ "stackprotector" ];
hardeningDisable = [ "pie" "stackprotector" ];
# GDB is needed to provide a sane default for `--db-command'.
# Perl is needed for `callgrind_{annotate,control}'.
buildInputs = [ gdb perl ] ++ lib.optionals (stdenv.isDarwin) [ bootstrap_cmds xnu ];
# Perl is also a native build input.
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ autoreconfHook perl ];
enableParallelBuilding = true;
separateDebugInfo = stdenv.isLinux;