diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-01-04 10:40:11 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 06:18:29 +0800 |
commit | 2e1807aa69ceb39b78a3e35e59ec62c5931bd48c (patch) | |
tree | 40d7ffdab563f195a52855b8e6c37fa6471f86ee /lang | |
parent | f3d81ae89ee46e08ddc3f6f0207358372a3242f7 (diff) | |
download | freebsd-ports-gnome-2e1807aa69ceb39b78a3e35e59ec62c5931bd48c.tar.gz freebsd-ports-gnome-2e1807aa69ceb39b78a3e35e59ec62c5931bd48c.tar.zst freebsd-ports-gnome-2e1807aa69ceb39b78a3e35e59ec62c5931bd48c.zip |
lang/spidermonkey24: unbreak build with Clang 6 / GCC 7
js/src/shell/jsoptparse.cpp:256: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)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/spidermonkey24/Makefile | 2 | ||||
-rw-r--r-- | lang/spidermonkey24/files/patch-bug894240 | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/spidermonkey24/Makefile b/lang/spidermonkey24/Makefile index 4bb7104d4fb8..b63d08b1f06b 100644 --- a/lang/spidermonkey24/Makefile +++ b/lang/spidermonkey24/Makefile @@ -3,7 +3,7 @@ PORTNAME= spidermonkey24 PORTVERSION= 24.2.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= lang MASTER_SITES= MOZILLA/js #http://people.mozilla.org/~sstangl/ diff --git a/lang/spidermonkey24/files/patch-bug894240 b/lang/spidermonkey24/files/patch-bug894240 new file mode 100644 index 000000000000..a805435382d0 --- /dev/null +++ b/lang/spidermonkey24/files/patch-bug894240 @@ -0,0 +1,20 @@ +commit 19a4ba5c90a9 +Author: Mike Hommey <mh+mozilla@glandium.org> +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-10-29 20:40:20 UTC ++++ shell/jsoptparse.cpp +@@ -253,7 +253,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; + } |