pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xglobe Added a patch for sunpro.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcbdb2842b52
branches:  trunk
changeset: 537681:bcbdb2842b52
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jan 13 22:53:10 2008 +0000

description:
Added a patch for sunpro.

diffstat:

 x11/xglobe/distinfo         |   4 ++--
 x11/xglobe/patches/patch-ab |  18 +++++++++++++++---
 2 files changed, 17 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 11070e116083 -r bcbdb2842b52 x11/xglobe/distinfo
--- a/x11/xglobe/distinfo       Sun Jan 13 22:42:06 2008 +0000
+++ b/x11/xglobe/distinfo       Sun Jan 13 22:53:10 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2006/01/04 14:54:17 joerg Exp $
+$NetBSD: distinfo,v 1.7 2008/01/13 22:53:10 rillig Exp $
 
 SHA1 (xglobe/LE.400.gif) = acfe3f73a9513b312e2c65403b6b4242c53d9c1a
 RMD160 (xglobe/LE.400.gif) = 438e79c256f91f979d5fd08f4eb2812c10c4f28b
@@ -13,6 +13,6 @@
 RMD160 (xglobe/xglobe-0.5.tar.gz) = 0aa1f0c6fefa2a87d09a0c75fdc897a07889ee5c
 Size (xglobe/xglobe-0.5.tar.gz) = 982309 bytes
 SHA1 (patch-aa) = b71a6bd947c0b9c2b4993e66f789083863ed8141
-SHA1 (patch-ab) = d3629dd5e0c4940127938491e1911f1f88a4e1b7
+SHA1 (patch-ab) = 4b8297a44eca21a964d873c02cfc9db1e0893b45
 SHA1 (patch-ac) = 3548c21bad7c95f1a5abd8884fa474a297c33b90
 SHA1 (patch-ad) = fcc4b34402ec7ff2ceedb5391bb9553f891783fc
diff -r 11070e116083 -r bcbdb2842b52 x11/xglobe/patches/patch-ab
--- a/x11/xglobe/patches/patch-ab       Sun Jan 13 22:42:06 2008 +0000
+++ b/x11/xglobe/patches/patch-ab       Sun Jan 13 22:53:10 2008 +0000
@@ -1,7 +1,19 @@
-$NetBSD: patch-ab,v 1.2 2004/07/06 22:08:17 hubertf Exp $
+$NetBSD: patch-ab,v 1.3 2008/01/13 22:53:10 rillig Exp $
+
+Line 717 resolves an ambiguity between sqrt(double) and sqrt(long
+double) with sunpro.
 
---- renderer.cpp.orig  1999-12-06 10:13:35.000000000 -0600
-+++ renderer.cpp       2003-11-14 12:32:03.000000000 -0600
+--- renderer.cpp.orig  1999-12-06 17:13:35.000000000 +0100
++++ renderer.cpp       2007-12-05 18:21:58.055143000 +0100
+@@ -713,7 +713,7 @@
+            (py-renderedImage->height()/2);
+ 
+     if(temp >= 0)
+-      startx = (renderedImage->width()/2 - (int)sqrt(temp));
++      startx = (renderedImage->width()/2 - int(sqrt(double(temp))));
+     else
+       startx = (renderedImage->width()/2);
+     
 @@ -1483,8 +1483,8 @@
    labelstring.sprintf("%s, %s %d. %d, %d:%02d %s\n"
                        "View pos %2.2f° %c %2.2f° %c\n"



Home | Main Index | Thread Index | Old Index