From e93d86a969ee2957a2805450c008599521689cf6 Mon Sep 17 00:00:00 2001 From: Jory Pratt Date: Thu, 25 Jul 2019 10:36:58 -0500 Subject: dev-lang/spidermonkey: Fix gcc-9 support in :52 Closes: https://bugs.gentoo.org/688448 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Jory Pratt --- .../files/spidermonkey-52.0-gcc9-overflow.patch | 24 ++++++++++++++++++++++ .../spidermonkey/spidermonkey-52.9.1_pre1.ebuild | 1 + 2 files changed, 25 insertions(+) create mode 100644 dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch (limited to 'dev-lang') diff --git a/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch b/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch new file mode 100644 index 000000000000..c7eb0f62b280 --- /dev/null +++ b/dev-lang/spidermonkey/files/spidermonkey-52.0-gcc9-overflow.patch @@ -0,0 +1,24 @@ +From 311fc467219ab6ee9eed60759b58a8066c4bf36d Mon Sep 17 00:00:00 2001 +From: +Date: Thu, 25 Jul 2019 10:00:33 -0500 +Subject: [PATCH] gcc-9 overflow fix + +--- + js/src/jsapi-tests/testPrintf.cpp | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/js/src/jsapi-tests/testPrintf.cpp b/js/src/jsapi-tests/testPrintf.cpp +index 51486856..03cc118d 100644 +--- a/js/src/jsapi-tests/testPrintf.cpp ++++ b/js/src/jsapi-tests/testPrintf.cpp +@@ -55,7 +55,6 @@ BEGIN_TEST(testPrintf) + CHECK(print_one("27270", "%zu", (size_t) 27270)); + CHECK(print_one("27270", "%" PRIuSIZE, (size_t) 27270)); + CHECK(print_one("hello", "he%so", "ll")); +- CHECK(print_one("(null)", "%s", zero())); + CHECK(print_one("0", "%p", (char *) 0)); + CHECK(print_one("h", "%c", 'h')); + CHECK(print_one("1.500000", "%f", 1.5f)); +-- +2.22.0 + diff --git a/dev-lang/spidermonkey/spidermonkey-52.9.1_pre1.ebuild b/dev-lang/spidermonkey/spidermonkey-52.9.1_pre1.ebuild index b00a1c665fe2..cfa8e3966b98 100644 --- a/dev-lang/spidermonkey/spidermonkey-52.9.1_pre1.ebuild +++ b/dev-lang/spidermonkey/spidermonkey-52.9.1_pre1.ebuild @@ -49,6 +49,7 @@ src_prepare() { eapply "${WORKDIR}/${PN}" eapply "${FILESDIR}"/moz38-dont-hardcode-libc-soname.patch eapply "${FILESDIR}"/${PN}-52.0-fix-alpha-bitness.patch + eapply "${FILESDIR}"/${PN}-52.0-gcc9-overflow.patch eapply_user -- cgit v1.2.3-65-gdbad