···2020 export LIBXUL_DIST=$out
2121 '';
22222323- configureFlags = [ "--enable-threadsafe" "--with-system-nspr" ];
2323+ # Explained below in configureFlags for ARM
2424+ patches = stdenv.lib.optionals stdenv.isARM [
2525+ ./findvanilla.patch
2626+ ];
2727+2828+ patchFlags = "-p3";
2929+3030+ # On the Sheevaplug, ARM, its nanojit thing segfaults in japi-tests in
3131+ # "make check". Disabling tracejit makes it work, but then it needs the
3232+ # patch findvanilla.patch do disable a checker about allocator safety. In case
3333+ # of polkit, which is what matters most, it does not override the allocator
3434+ # so the failure of that test does not matter much.
3535+ configureFlags = [ "--enable-threadsafe" "--with-system-nspr" ] ++
3636+ stdenv.lib.optionals stdenv.isArm [
3737+ "--with-cpu-arch=armv5t"
3838+ "--disable-tracejit" ];
24392540 # hack around a make problem, see https://github.com/NixOS/nixpkgs/issues/1279#issuecomment-29547393
2641 preBuild = "touch -- {.,shell,jsapi-tests}/{-lpthread,-ldl}";
···11+diff --git a/js/src/Makefile.in b/js/src/Makefile.in
22+index a85e055..92ef441 100644
33+--- a/js/src/Makefile.in
44++++ b/js/src/Makefile.in
55+@@ -580,14 +580,6 @@ check-valgrind::
66+ $(check-sync-dirs) $(srcdir)/build $(MOZ_SYNC_BUILD_FILES)/build
77+ endif
88+99+-# The "find any vanilla new/new[] calls" script is tailored to Linux, so
1010+-# only run it there. That should be enough to catch any such calls that
1111+-# creep in.
1212+-ifeq ($(OS_ARCH),Linux)
1313+-check::
1414+- $(srcdir)/config/find_vanilla_new_calls $(LIBRARY)
1515+-endif
1616+-
1717+ ifdef ENABLE_TRACEJIT
1818+ ifndef WINCE
1919+ JITFLAGS = ,m,j,mj,mjp,am,amj,amjp,amd