From: Arkadiusz Miƛkiewicz Date: Tue, 18 Oct 2016 20:24:20 +0000 (+0200) Subject: - rel 10; build fixed X-Git-Tag: auto/th/js-1.7.0-10 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fjs.git;a=commitdiff_plain;h=0c7a21ff51d4ba28218d909c43c6c189b1e11aa1 - rel 10; build fixed --- 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; 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