summaryrefslogtreecommitdiff
path: root/games/gnuchess
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-10-01 04:24:27 +0000
committerjlam <jlam@pkgsrc.org>2000-10-01 04:24:27 +0000
commit3bdfd7c9b9a81d9bff768ddc8750c4f9321c41f6 (patch)
tree0e393fdeb0b044d6615a00bee8cc134d8d2ceabb /games/gnuchess
parentbebbed348e167e8685bd66db4b3a87bfc5362b9b (diff)
downloadpkgsrc-3bdfd7c9b9a81d9bff768ddc8750c4f9321c41f6.tar.gz
Open the opening book with read permissions, not read/write. This fixes
an error where GNU Chess would go out of book on the first move when it fails to open the book read/write, and concludes the book isn't there.
Diffstat (limited to 'games/gnuchess')
-rw-r--r--games/gnuchess/files/patch-sum3
-rw-r--r--games/gnuchess/patches/patch-ac13
2 files changed, 15 insertions, 1 deletions
diff --git a/games/gnuchess/files/patch-sum b/games/gnuchess/files/patch-sum
index 46f06a138ea..752fc141c6f 100644
--- a/games/gnuchess/files/patch-sum
+++ b/games/gnuchess/files/patch-sum
@@ -1,4 +1,5 @@
-$NetBSD: patch-sum,v 1.3 2000/03/26 08:29:25 jlam Exp $
+$NetBSD: patch-sum,v 1.4 2000/10/01 04:24:27 jlam Exp $
MD5 (patch-aa) = 9aede68ccd4a386b653381a8245a21d5
MD5 (patch-ab) = 4376f2b68d7733c469ac67e657e1343f
+MD5 (patch-ac) = 6eabe3d99fdec3d3259b18de9c944f18
diff --git a/games/gnuchess/patches/patch-ac b/games/gnuchess/patches/patch-ac
new file mode 100644
index 00000000000..46d28f30351
--- /dev/null
+++ b/games/gnuchess/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.4 2000/10/01 04:24:27 jlam Exp $
+
+--- book.c.orig Sat Oct 23 06:07:21 1999
++++ book.c
+@@ -85,7 +85,7 @@
+ mcnt = -1;
+ side = board.side;
+ xside = 1^side;
+- rfp = fopen(BOOKBIN,"r+b");
++ rfp = fopen(BOOKBIN,"rb"); /* don't need to open read/write */
+ if (rfp == NULL) {
+ if (!(flags & XBOARD))
+ fprintf(ofp," no book (%s).\n",BOOKBIN);