spidermonkey-17: fixup build with gcc-7 via Fedora patch

This failed many builds through the polkit dependency.
This commit is contained in:
Vladimír Čunát 2017-11-12 08:58:19 +01:00
parent 3610d63d72
commit e3bbc4a503
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -18,6 +18,16 @@ stdenv.mkDerivation rec {
postUnpack = "sourceRoot=\${sourceRoot}/js/src";
patches = [
(fetchurl {
name = "jsoptparse-gcc7.patch";
url = "https://src.fedoraproject.org/cgit/rpms/mozjs17.git/plain/"
+ "mozjs17.0.0-gcc7.patch?id=43b846629a299f";
sha256 = "17plyaq0jwf9wli4zlgvh4ri3zyk6nj1fiakh3wnd37nsl90raf9";
})
];
patchFlags = "-p3";
postPatch = ''
# Fixes an issue with version detection under perl 5.22.x
sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl