Date: Mon, 5 Aug 2019 13:30:38 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508168 - head/lang/spidermonkey52/files Message-ID: <201908051330.x75DUcNU041928@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Aug 5 13:30:38 2019 New Revision: 508168 URL: https://svnweb.freebsd.org/changeset/ports/508168 Log: lang/spidermonkey52: fix build with GCC-based architectures With gcc9, build fails: /usr/local/poudriere/ports/default/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/testPrintf.cpp: In member function 'virtual bool cls_testPrintf::run(JS::HandleObject )': /usr/local/poudriere/ports/default/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/testPrintf.cpp:58:20: error: '%s' directive argument is null [-Werror=format-overflow =] 58 | CHECK(print_one("(null)", "%s", zero())); Remove the test printf: CHECK(print_one("(null)", "%s", zero())); to fix build. PR: 239507 Approved by: tcberner (mentor), portmgr blanket Differential Revision: https://reviews.freebsd.org/D21144 Added: head/lang/spidermonkey52/files/patch-js_src_jsapi-tests_testPrintf.cpp (contents, props changed) Added: head/lang/spidermonkey52/files/patch-js_src_jsapi-tests_testPrintf.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/spidermonkey52/files/patch-js_src_jsapi-tests_testPrintf.cpp Mon Aug 5 13:30:38 2019 (r508168) @@ -0,0 +1,10 @@ +--- js/src/jsapi-tests/testPrintf.cpp.orig 2019-07-29 07:46:30 UTC ++++ 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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908051330.x75DUcNU041928>