pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xmahjongg Added a patch for SunPro.
details: https://anonhg.NetBSD.org/pkgsrc/rev/6acf9be3d96a
branches: trunk
changeset: 521153:6acf9be3d96a
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Nov 05 18:46:57 2006 +0000
description:
Added a patch for SunPro.
diffstat:
games/xmahjongg/distinfo | 3 ++-
games/xmahjongg/patches/patch-ac | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r cdda05391b46 -r 6acf9be3d96a games/xmahjongg/distinfo
--- a/games/xmahjongg/distinfo Sun Nov 05 18:08:17 2006 +0000
+++ b/games/xmahjongg/distinfo Sun Nov 05 18:46:57 2006 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/06/02 09:08:15 martin Exp $
+$NetBSD: distinfo,v 1.7 2006/11/05 18:46:57 rillig Exp $
SHA1 (xmahjongg-3.6.1.tar.gz) = 35e380e53412568e6af7f4fcc1677693f52fc60e
RMD160 (xmahjongg-3.6.1.tar.gz) = acfc0161322b22296639dff313bae8d57e012618
Size (xmahjongg-3.6.1.tar.gz) = 462833 bytes
SHA1 (patch-aa) = 5305cfb0c0c8c0fcc507bc3730043331255a94a5
SHA1 (patch-ab) = d3c2574c8de7e85c8e38670017d0eda64fe3b0be
+SHA1 (patch-ac) = f8ea278393d81ad0503350f88c7b3a352b78bf22
diff -r cdda05391b46 -r 6acf9be3d96a games/xmahjongg/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xmahjongg/patches/patch-ac Sun Nov 05 18:46:57 2006 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1 2006/11/05 18:46:58 rillig Exp $
+
+SunPro sees an overloading ambiguity between operator bool() and
+operator const char *().
+
+--- permstr.cc.orig 2001-09-06 20:30:10.000000000 +0200
++++ permstr.cc 2006-11-05 19:12:50.020399608 +0100
+@@ -183,8 +183,8 @@ PermString::static_initialize()
+ bool
+ operator==(PermString a, const char *b)
+ {
+- if (!a || !b)
+- return !a && !b;
++ if (a == false || !b)
++ return (a == false) && !b;
+ int l = strlen(b);
+ return a.length() == l && memcmp(a.cc(), b, l) == 0;
+ }
Home |
Main Index |
Thread Index |
Old Index