pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/gnumeric-current Made the package work with sunpro.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6465af55699f
branches:  trunk
changeset: 535641:6465af55699f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 23 15:37:37 2007 +0000

description:
Made the package work with sunpro.

diffstat:

 math/gnumeric-current/distinfo         |   4 +++-
 math/gnumeric-current/patches/patch-aa |  18 ++++++++++++++++++
 math/gnumeric-current/patches/patch-ab |  13 +++++++++++++
 3 files changed, 34 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r 59138fea9626 -r 6465af55699f math/gnumeric-current/distinfo
--- a/math/gnumeric-current/distinfo    Fri Nov 23 14:35:22 2007 +0000
+++ b/math/gnumeric-current/distinfo    Fri Nov 23 15:37:37 2007 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.7 2007/11/08 19:39:11 wiz Exp $
+$NetBSD: distinfo,v 1.8 2007/11/23 15:37:37 rillig Exp $
 
 SHA1 (gnumeric-1.7.14.tar.bz2) = f8781a2d1691fcb6b6b2c9fa5174e26ad3df5d91
 RMD160 (gnumeric-1.7.14.tar.bz2) = c1190b4102ba69bebf3b4f4276a8395b12b42da7
 Size (gnumeric-1.7.14.tar.bz2) = 13977827 bytes
+SHA1 (patch-aa) = 593df8dcff9fd84715d05bd06e08b4b0670072c6
+SHA1 (patch-ab) = 42f6bfbcd4eb586bdca5b15b338f8b406c658caa
diff -r 59138fea9626 -r 6465af55699f math/gnumeric-current/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric-current/patches/patch-aa    Fri Nov 23 15:37:37 2007 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2007/11/23 15:37:37 rillig Exp $
+
+Sunpro doesn't like floating point comparisons in constant expressions.
+
+--- plugins/numtheory/numtheory.c.orig 2007-01-01 03:40:18.000000000 +0100
++++ plugins/numtheory/numtheory.c      2007-11-23 16:17:34.395473000 +0100
+@@ -33,7 +33,10 @@ GNM_PLUGIN_MODULE_HEADER;
+ 
+ #define OUT_OF_BOUNDS "#LIMIT!"
+ 
+-static const double bit_max = MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
++static inline double bit_max_fn(void) {
++      return MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
++}
++#define bit_max (bit_max_fn())
+ 
+ /* ------------------------------------------------------------------------- */
+ 
diff -r 59138fea9626 -r 6465af55699f math/gnumeric-current/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gnumeric-current/patches/patch-ab    Fri Nov 23 15:37:37 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2007/11/23 15:37:37 rillig Exp $
+
+--- src/gnm-so-polygon.c.orig  2007-09-29 01:48:00.000000000 +0200
++++ src/gnm-so-polygon.c       2007-11-23 15:58:26.784640000 +0100
+@@ -223,7 +223,7 @@ static void
+ gnm_so_polygon_write_xml_sax (SheetObject const *so, GsfXMLOut *output)
+ {
+       /* TODO */
+-      return gnm_so_polygon_parent_class->write_xml_sax (so, output);
++      gnm_so_polygon_parent_class->write_xml_sax (so, output);
+ }
+ 
+ static void



Home | Main Index | Thread Index | Old Index