pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/spidermonkey Added a patch that disables fdlibm o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a3b1b20f080
branches:  trunk
changeset: 524387:3a3b1b20f080
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jan 24 19:35:26 2007 +0000

description:
Added a patch that disables fdlibm on all platforms, since the latter is
not in pkgsrc and therefore not generally available.

PKGREVISION++

diffstat:

 lang/spidermonkey/Makefile         |   5 +++--
 lang/spidermonkey/distinfo         |   3 ++-
 lang/spidermonkey/patches/patch-af |  23 +++++++++++++++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (63 lines):

diff -r 64678220c99b -r 3a3b1b20f080 lang/spidermonkey/Makefile
--- a/lang/spidermonkey/Makefile        Wed Jan 24 19:35:04 2007 +0000
+++ b/lang/spidermonkey/Makefile        Wed Jan 24 19:35:26 2007 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2006/12/05 18:04:18 tron Exp $
+# $NetBSD: Makefile,v 1.13 2007/01/24 19:35:26 rillig Exp $
 
 DISTNAME=      js-1.5
 PKGNAME=       ${DISTNAME:S/js/spidermonkey/}
-PKGREVISION=   8
+PKGREVISION=   9
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_MOZILLA:=js/}
 
@@ -15,6 +15,7 @@
 NO_CONFIGURE=  yes
 USE_TOOLS+=    gmake
 MAKE_FILE=     Makefile.ref
+CFLAGS+=       -DJS_USE_FDLIBM_MATH=0
 
 # JS_THREADSAFE
 PTHREAD_AUTO_VARS=     yes
diff -r 64678220c99b -r 3a3b1b20f080 lang/spidermonkey/distinfo
--- a/lang/spidermonkey/distinfo        Wed Jan 24 19:35:04 2007 +0000
+++ b/lang/spidermonkey/distinfo        Wed Jan 24 19:35:26 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2006/12/05 18:04:18 tron Exp $
+$NetBSD: distinfo,v 1.8 2007/01/24 19:35:26 rillig Exp $
 
 SHA1 (js-1.5.tar.gz) = 707755be3a94207d5d10ccd1011ca00babe0a689
 RMD160 (js-1.5.tar.gz) = a1f23d53c259a9fa354f29eecdc1c56472f4f626
@@ -7,3 +7,4 @@
 SHA1 (patch-ac) = f115560c19852b658ee7b008338a42858c5239ef
 SHA1 (patch-ad) = 80550041ceb7f067d1b4bca1eb471b5bd6c59a7a
 SHA1 (patch-ae) = 22effe11d88ad370074ae547882959f6d1a765bb
+SHA1 (patch-af) = a2f144828b85d600eb32c3b024b4ba0f00c44c52
diff -r 64678220c99b -r 3a3b1b20f080 lang/spidermonkey/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/spidermonkey/patches/patch-af        Wed Jan 24 19:35:26 2007 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-af,v 1.1 2007/01/24 19:35:26 rillig Exp $
+
+Only define JS_USE_FDLIBM_MATH if the user (generally) or pkgsrc (in
+this case) hasn't decided.
+
+--- jslibmath.h.orig   2003-11-15 01:10:57.000000000 +0100
++++ jslibmath.h        2007-01-24 20:38:03.000000000 +0100
+@@ -54,6 +54,7 @@
+  * by default since there can be problems with endian-ness and such.
+  */
+ 
++#if !defined(JS_USE_FDLIBM_MATH)
+ #if defined(_WIN32) && !defined(__MWERKS__)
+ #define JS_USE_FDLIBM_MATH 1
+ 
+@@ -82,6 +83,7 @@
+ #else
+ #define JS_USE_FDLIBM_MATH 0
+ #endif
++#endif
+ 
+ #if !JS_USE_FDLIBM_MATH
+ 



Home | Main Index | Thread Index | Old Index