From owner-svn-ports-all@freebsd.org Thu Jan 4 02:19:00 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2B77EBED6B; Thu, 4 Jan 2018 02:19:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8F317389F; Thu, 4 Jan 2018 02:19:00 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w042Ixox099805; Thu, 4 Jan 2018 02:18:59 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w042IxNw099803; Thu, 4 Jan 2018 02:18:59 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801040218.w042IxNw099803@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 4 Jan 2018 02:18:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458008 - in head/lang/spidermonkey170: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/lang/spidermonkey170: . files X-SVN-Commit-Revision: 458008 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2018 02:19:01 -0000 Author: jbeich Date: Thu Jan 4 02:18:59 2018 New Revision: 458008 URL: https://svnweb.freebsd.org/changeset/ports/458008 Log: lang/spidermonkey170: unbreak build with Clang 6 / GCC 7 js/src/shell/jsoptparse.cpp:246:22: error: comparison between pointer and integer ('char *' and 'int') if (value[0] == '\0') ~~~~~~~~ ^ ~~~~ Reported by: antoine (via bug 224669) Obtained from: upstream (SpiderMonkey 25.0) Added: head/lang/spidermonkey170/files/patch-bug894240 (contents, props changed) Modified: head/lang/spidermonkey170/Makefile (contents, props changed) Modified: head/lang/spidermonkey170/Makefile ============================================================================== --- head/lang/spidermonkey170/Makefile Thu Jan 4 00:46:11 2018 (r458007) +++ head/lang/spidermonkey170/Makefile Thu Jan 4 02:18:59 2018 (r458008) @@ -3,7 +3,7 @@ PORTNAME= spidermonkey170 PORTVERSION= 17.0.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= lang MASTER_SITES= MOZILLA/js DISTNAME= mozjs${PORTVERSION} Added: head/lang/spidermonkey170/files/patch-bug894240 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/spidermonkey170/files/patch-bug894240 Thu Jan 4 02:18:59 2018 (r458008) @@ -0,0 +1,20 @@ +commit 19a4ba5c90a9 +Author: Mike Hommey +Date: Wed Jul 17 16:16:55 2013 +0900 + + Bug 894240 - Fix pointer dereference in js::cli::OptionParser::extractValue. r=Waldo +--- + js/src/shell/jsoptparse.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- shell/jsoptparse.cpp.orig 2013-02-11 22:33:23 UTC ++++ shell/jsoptparse.cpp +@@ -243,7 +243,7 @@ OptionParser::extractValue(size_t argc, char **argv, s + char *eq = strchr(argv[*i], '='); + if (eq) { + *value = eq + 1; +- if (value[0] == '\0') ++ if (*value[0] == '\0') + return error("A value is required for option %.*s", eq - argv[*i], argv[*i]); + return Okay; + }