[packages/mozjs24] - rel 6; fix build
arekm
arekm at pld-linux.org
Sun Oct 20 13:45:05 CEST 2019
commit 66673a26f33b5059eb89adb69e5080248be131b3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Oct 20 13:44:59 2019 +0200
- rel 6; fix build
build.patch | 11 +++++++++++
mozjs24.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/mozjs24.spec b/mozjs24.spec
index 24424da..ea4c13f 100644
--- a/mozjs24.spec
+++ b/mozjs24.spec
@@ -3,7 +3,7 @@ Summary: SpiderMonkey 24 - JavaScript 1.8.5+ implementation
Summary(pl.UTF-8): SpiderMonkey 24 - implementacja języka JavaScript 1.8.5+
Name: mozjs24
Version: 24.2.0
-Release: 5
+Release: 6
License: MPL v2.0
Group: Libraries
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2
@@ -11,6 +11,7 @@ Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-%{version}.tar.bz2
Patch0: %{name}-system-virtualenv.patch
Patch1: Disable-js-JIT-on-x32.patch
Patch2: perl.patch
+Patch3: build.patch
URL: http://www.mozilla.org/js/
BuildRequires: gcc-c++ >= 6:4.4
BuildRequires: libffi-devel >= 5:3.0.9
@@ -74,6 +75,7 @@ Statyczna wersja biblioteki JavaScript.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
cd js/src
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..47f69fb
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,11 @@
+--- mozjs-24.2.0/js/src/shell/jsoptparse.cpp~ 2013-10-29 21:40:20.000000000 +0100
++++ mozjs-24.2.0/js/src/shell/jsoptparse.cpp 2019-10-20 13:39:18.818968577 +0200
+@@ -253,7 +253,7 @@ OptionParser::extractValue(size_t argc,
+ char *eq = strchr(argv[*i], '=');
+ if (eq) {
+ *value = eq + 1;
+- if (value[0] == '\0')
++ if (value[0][0] == '\0')
+ return error("A value is required for option %.*s", eq - argv[*i], argv[*i]);
+ return Okay;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozjs24.git/commitdiff/66673a26f33b5059eb89adb69e5080248be131b3
More information about the pld-cvs-commit
mailing list