From a8443f153087c6cc935ca7096f124eac5b61185a Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 8 May 2023 23:23:18 +0200 Subject: [PATCH] acpica-tools: disable -Werror to fix i686-linux builds --- pkgs/tools/system/acpica-tools/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index 4b99e1453858..1fee07c08037 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable + # -Werror altogether to make this derivation less fragile to toolchain + # updates. + NOWERROR = "TRUE"; + # We can handle stripping ourselves. # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected. INSTALLFLAGS = lib.optionals (!stdenv.isDarwin) "-m 555";