commit 0c7a21ff51d4ba28218d909c43c6c189b1e11aa1
Author: Arkadiusz Miƛkiewicz <ar...@maven.pl>
Date:   Tue Oct 18 22:24:20 2016 +0200

    - rel 10; build fixed

 js-build.patch | 11 +++++++++++
 js.spec        |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/js.spec b/js.spec
index 310fb52..8a7fcf9 100644
--- a/js.spec
+++ b/js.spec
@@ -8,7 +8,7 @@ Summary:        JavaScript Reference Implementation
 Summary(pl.UTF-8):     Wzorcowa implementacja JavaScriptu
 Name:          js
 Version:       1.7.0
-Release:       9
+Release:       10
 Epoch:         2
 License:       MPL 1.1 or GPL v2+ or LGPL v2.1+
 Group:         Development/Languages
@@ -16,6 +16,7 @@ Source0:      
http://ftp.mozilla.org/pub/mozilla.org/js/%{name}-%{version}.tar.gz
 # Source0-md5: 5571134c3863686b623ebe4e6b1f6fe6
 Patch0:                %{name}-makefile.patch
 Patch1:                %{name}-java.patch
+Patch2:                %{name}-build.patch
 URL:           http://www.mozilla.org/js/
 %{?with_java:BuildRequires:    jdk}
 %{?with_java:BuildRequires:    jpackage-utils}
@@ -144,6 +145,7 @@ Biblioteka statyczna implementacji JavaScript LiveConnect 3.
 %setup -q -n %{name}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 echo 'SONAME=libjs.so.1' >> src/Makefile.ref
 echo 'SONAME=libjsj.so.1' >> src/liveconnect/Makefile.ref
diff --git a/js-build.patch b/js-build.patch
new file mode 100644
index 0000000..1645c56
--- /dev/null
+++ b/js-build.patch
@@ -0,0 +1,11 @@
+--- js/src/js.c~       2007-04-20 20:45:18.000000000 +0200
++++ js/src/js.c        2016-10-18 22:22:16.509762977 +0200
+@@ -160,7 +160,7 @@
+ #endif
+     {
+         char line[256];
+-        fprintf(gOutFile, prompt);
++        fprintf(gOutFile, "%s", prompt);
+         fflush(gOutFile);
+         if (!fgets(line, sizeof line, file))
+             return JS_FALSE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js.git/commitdiff/0c7a21ff51d4ba28218d909c43c6c189b1e11aa1

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to