From 7cca16e9f1d491879cb472263449f4228a086a20 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 21 Aug 2018 13:29:17 +0300 Subject: [PATCH] spidermonkey_52: Fix on ARMv6 Arch Linux applies the CFLAGS always, as does Debian, so do the same. --- pkgs/development/interpreters/spidermonkey/52.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/interpreters/spidermonkey/52.nix b/pkgs/development/interpreters/spidermonkey/52.nix index bfbc48e753b7..ecbb1abb40ca 100644 --- a/pkgs/development/interpreters/spidermonkey/52.nix +++ b/pkgs/development/interpreters/spidermonkey/52.nix @@ -13,6 +13,12 @@ in stdenv.mkDerivation rec { buildInputs = [ readline icu zlib nspr ]; nativeBuildInputs = [ autoconf213 pkgconfig perl which python2 zip ]; + # Apparently this package fails to build correctly with modern compilers, which at least + # on ARMv6 causes polkit testsuite to break with an assertion failure in spidermonkey. + # These flags were stolen from: + # https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/js52 + NIX_CFLAGS_COMPILE = "-fno-delete-null-pointer-checks -fno-strict-aliasing -fno-tree-vrp"; + patches = [ # needed to build gnome3.gjs (fetchpatch {