[packages/js187] Rel 7

arekm arekm at pld-linux.org
Fri Apr 10 23:13:51 CEST 2026


commit 4ae19b3a7f7c1cbae37770ba4697beb05e0cf7f4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 10 23:13:41 2026 +0200

    Rel 7

 js187-configure-implicit-int.patch | 38 ++++++++++++++++++++++++++++++++++++++
 js187-install.patch                |  9 ++++-----
 js187.spec                         |  4 +++-
 3 files changed, 45 insertions(+), 6 deletions(-)
---
diff --git a/js187.spec b/js187.spec
index d5f0fc8..33857c6 100644
--- a/js187.spec
+++ b/js187.spec
@@ -11,7 +11,7 @@ Summary:	SpiderMonkey JavaScript 1.8.7 implementation
 Summary(pl.UTF-8):	Implementacja SpiderMonkey języka JavaScript 1.8.7
 Name:		js187
 Version:	1.0.0
-Release:	6
+Release:	7
 License:	MPL 1.1 or GPL v2+ or LGPL v2.1+
 Group:		Development/Languages
 #Source0:	http://ftp.mozilla.org/pub/mozilla.org/js/%{name}-%{version}.tar.gz
@@ -19,6 +19,7 @@ Source0:	%{name}-%{version}.tar.gz
 # Source0-md5:	9399466aa36e98e157cb3780c3f96dde
 Patch0:		%{name}-install.patch
 Patch1:		%{name}-x32.patch
+Patch2:		%{name}-configure-implicit-int.patch
 URL:		http://www.mozilla.org/js/
 BuildRequires:	libstdc++-devel
 BuildRequires:	nspr-devel >= 4.7.0
@@ -100,6 +101,7 @@ Statyczna wersja biblioteki JavaScript 1.8.7.
 %setup -q -n js-1.8.7
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 sed -i -e 's/-O3//' js/src/Makefile.in js/src/config/Makefile.in
 
diff --git a/js187-configure-implicit-int.patch b/js187-configure-implicit-int.patch
new file mode 100644
index 0000000..e0685d5
--- /dev/null
+++ b/js187-configure-implicit-int.patch
@@ -0,0 +1,38 @@
+--- js-1.8.7/js/src/configure.orig	2026-04-10 23:06:08.803091899 +0200
++++ js-1.8.7/js/src/configure	2026-04-10 23:06:08.808085437 +0200
+@@ -1685,7 +1685,7 @@
+ #line 1686 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
+@@ -2330,7 +2330,7 @@
+ #line 2331 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
+@@ -10699,7 +10699,7 @@
+ #line 10700 "configure"
+ #include "confdefs.h"
+ 
+-main()
++int main()
+ {
+   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
+   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
+@@ -12941,7 +12941,7 @@
+ #line 12942 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+-main()
++int main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
diff --git a/js187-install.patch b/js187-install.patch
index f595ec1..9e1b58c 100644
--- a/js187-install.patch
+++ b/js187-install.patch
@@ -1,7 +1,6 @@
-diff -uNr js-1.8.5.old/js/src/Makefile.in js-1.8.5/js/src/Makefile.in
---- js-1.8.5.old/js/src/Makefile.in	2011-03-31 21:08:36.000000000 +0200
-+++ js-1.8.5/js/src/Makefile.in	2012-01-18 15:03:30.706388915 +0100
-@@ -888,8 +888,8 @@
+--- js-1.8.7/js/src/Makefile.in.orig	2026-04-10 22:47:27.816425232 +0200
++++ js-1.8.7/js/src/Makefile.in	2026-04-10 22:47:27.839869745 +0200
+@@ -960,10 +960,10 @@
  endif
  endif
  
@@ -16,7 +15,7 @@ diff -uNr js-1.8.5.old/js/src/Makefile.in js-1.8.5/js/src/Makefile.in
  endif
  ifneq (,$(SHARED_LIBRARY))
  ifeq (,$(HOST_BIN_SUFFIX))
-@@ -965,10 +965,10 @@
+@@ -973,8 +973,8 @@
  ifeq (,$(HOST_BIN_SUFFIX))
  	mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
  	@[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js187.git/commitdiff/4ae19b3a7f7c1cbae37770ba4697beb05e0cf7f4



More information about the pld-cvs-commit mailing list