[packages/js185] Rel 8

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


commit 0f8a566d91c4a830f099861529be393a993a680b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 10 23:13:00 2026 +0200

    Rel 8

 js185-configure-implicit-int.patch | 56 ++++++++++++++++++++++++++++++++++++++
 js185-hcpp-object.patch            | 12 ++++++++
 js185.spec                         |  8 +++++-
 3 files changed, 75 insertions(+), 1 deletion(-)
---
diff --git a/js185.spec b/js185.spec
index 62e8bc2..9dbc04c 100644
--- a/js185.spec
+++ b/js185.spec
@@ -11,13 +11,15 @@ Summary:	SpiderMonkey JavaScript 1.8.5 implementation
 Summary(pl.UTF-8):	Implementacja SpiderMonkey języka JavaScript 1.8.5
 Name:		js185
 Version:	1.0.0
-Release:	7
+Release:	8
 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
 # Source0-md5:	a4574365938222adca0a6bd33329cb32
 Patch0:		%{name}-install.patch
 Patch1:		%{name}-c++.patch
+Patch2:		%{name}-configure-implicit-int.patch
+Patch3:		%{name}-hcpp-object.patch
 URL:		http://www.mozilla.org/js/
 BuildRequires:	libstdc++-devel
 BuildRequires:	nspr-devel >= 4.7.0
@@ -99,9 +101,13 @@ Statyczna wersja biblioteki JavaScript 1.8.5.
 %setup -q -n js-1.8.5
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 sed -i -e 's/-O3//' js/src/Makefile.in js/src/config/Makefile.in
 
+chmod +x js/src/build/hcc js/src/build/hcpp
+
 %build
 cd js/src
 %configure2_13 \
diff --git a/js185-configure-implicit-int.patch b/js185-configure-implicit-int.patch
new file mode 100644
index 0000000..e4f1634
--- /dev/null
+++ b/js185-configure-implicit-int.patch
@@ -0,0 +1,56 @@
+--- js-1.8.5/js/src/configure.orig	2026-04-10 23:04:11.789758565 +0200
++++ js-1.8.5/js/src/configure	2026-04-10 23:04:11.799758565 +0200
+@@ -1617,7 +1617,7 @@
+ #line 1618 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
+@@ -2262,7 +2262,7 @@
+ #line 2263 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
+@@ -6554,7 +6554,7 @@
+ #include "confdefs.h"
+ 
+ int main() {
+-main()
++int main()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+@@ -6590,7 +6590,7 @@
+ #include "confdefs.h"
+ 
+ int main() {
+-main()
++int main()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+@@ -11047,7 +11047,7 @@
+ #line 11048 "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);
+@@ -13592,7 +13592,7 @@
+ #line 13593 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+-main()
++int main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
diff --git a/js185-hcpp-object.patch b/js185-hcpp-object.patch
new file mode 100644
index 0000000..d065896
--- /dev/null
+++ b/js185-hcpp-object.patch
@@ -0,0 +1,12 @@
+--- js-1.8.5/js/src/build/hcpp.orig2	2026-04-10 23:04:41.006425232 +0200
++++ js-1.8.5/js/src/build/hcpp	2026-04-10 23:05:10.006276003 +0200
+@@ -67,7 +67,9 @@
+ 			;;
+ 		*.o)	if [ $i = `basename $i` ]
+ 			then
++				OBJECT="$i"
+ 				i=""
++				DASH_O=1
+ 			else
+ 				OPTS="${OPTS} -o"
+    				DASH_O=1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js185.git/commitdiff/0f8a566d91c4a830f099861529be393a993a680b



More information about the pld-cvs-commit mailing list