From c9cdba7c19a3e6dd6fe915202ca10c782777ab2b Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 25 Mar 2017 20:00:26 +0100 Subject: [PATCH] phantomjs: add gcc>=5 patch from Gentoo --- srcpkgs/phantomjs/patches/gcc5-compile-fix.patch | 14 ++++++++++++++ srcpkgs/phantomjs/template | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/phantomjs/patches/gcc5-compile-fix.patch diff --git a/srcpkgs/phantomjs/patches/gcc5-compile-fix.patch b/srcpkgs/phantomjs/patches/gcc5-compile-fix.patch new file mode 100644 index 00000000000..587cd6bd2bf --- /dev/null +++ b/srcpkgs/phantomjs/patches/gcc5-compile-fix.patch @@ -0,0 +1,14 @@ +--- src/qt/qtwebkit/Source/JavaScriptCore/runtime/JSObject.cpp.orig 2015-01-24 08:19:52.000000000 +0600 ++++ src/qt/qtwebkit/Source/JavaScriptCore/runtime/JSObject.cpp 2015-09-24 18:18:45.598322592 +0600 +@@ -1909,6 +1909,11 @@ + } + } + ++// Used in JSArray.cpp so we must instantiate explicit ++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* exec, unsigned i, JSValue value); ++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* exec, unsigned i, JSValue value); ++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* exec, unsigned i, JSValue value); ++ + void JSObject::putByIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, unsigned i, JSValue value, bool shouldThrow, ArrayStorage* storage) + { + VM& vm = exec->vm(); diff --git a/srcpkgs/phantomjs/template b/srcpkgs/phantomjs/template index e72e58d4a5f..68f24c525c5 100644 --- a/srcpkgs/phantomjs/template +++ b/srcpkgs/phantomjs/template @@ -15,7 +15,6 @@ checksum=cc81249eaa059cc138414390cade9cb6509b9d6fa0df16f4f43de70b174b3bfe nopie=yes nocross=yes -broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/1597/steps/shell_3/logs/stdio" do_configure() { sed -e "s|-O2|${CXXFLAGS}|" \