- regen patchfiles
- remove hashfile support + useless due to missing permissions anyways + creates the hashfile during build outside the fake area, if building as root
This commit is contained in:
parent
82d45303db
commit
8e669b087c
13
games/gnuchess/patches/patch-Makefile_in
Normal file
13
games/gnuchess/patches/patch-Makefile_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1 2004/01/09 20:06:43 sturm Exp $
|
||||
--- Makefile.in.orig 1998-09-28 08:41:13.000000000 +0200
|
||||
+++ Makefile.in 2004-01-09 21:02:37.000000000 +0100
|
||||
@@ -43,7 +43,8 @@ LANGF= -DLANGFILE=\"$(LIBDIR)/gnuchess.l
|
||||
|
||||
# The hashfile is a record of positions seen. It is used by
|
||||
# GNU Chess to avoid making the same mistakes, a form of learning.
|
||||
-HASH= -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
|
||||
+# desturbs systrace and is not used due to missing permissions anyways
|
||||
+#HASH= -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
|
||||
|
||||
# The "book" is a record of the first few moves, for playing good
|
||||
# moves easily and quickly, saving time, and irritating the human
|
@ -1,63 +0,0 @@
|
||||
diff --minimal -c orig/gnuchess-4.0.pl77/src/dspcom.c gnuchess-4.0.pl77/src/dspcom.c
|
||||
*** orig/gnuchess-4.0.pl77/src/dspcom.c Sun May 19 23:38:47 1996
|
||||
--- dspcom.c Sat Feb 15 00:29:12 1997
|
||||
***************
|
||||
*** 1099,1105 ****
|
||||
#ifdef NONDSP
|
||||
s[0] = sx[0] = '\0';
|
||||
while (!sx[0])
|
||||
! (void) gets (sx);
|
||||
#else
|
||||
fflush (stdout);
|
||||
#ifdef MSDOS
|
||||
--- 1099,1105 ----
|
||||
#ifdef NONDSP
|
||||
s[0] = sx[0] = '\0';
|
||||
while (!sx[0])
|
||||
! (void) fgets (sx, 80, stdin);
|
||||
#else
|
||||
fflush (stdout);
|
||||
#ifdef MSDOS
|
||||
diff --minimal -c orig/gnuchess-4.0.pl77/src/nondsp.c gnuchess-4.0.pl77/src/nondsp.c
|
||||
*** orig/gnuchess-4.0.pl77/src/nondsp.c Sun May 19 23:40:31 1996
|
||||
--- nondsp.c Sat Feb 15 00:25:49 1997
|
||||
***************
|
||||
*** 264,273 ****
|
||||
|
||||
NewGame ();
|
||||
|
||||
! gets (s); /* skip "setup" command */
|
||||
for (r = 7; r >= 0; r--)
|
||||
{
|
||||
! gets (s);
|
||||
for (c = 0; c <= 7; c++)
|
||||
{
|
||||
ch = s[c];
|
||||
--- 264,273 ----
|
||||
|
||||
NewGame ();
|
||||
|
||||
! fgets (s, 80, stdin); /* skip "setup" command */
|
||||
for (r = 7; r >= 0; r--)
|
||||
{
|
||||
! fgets (s, 80, stdin);
|
||||
for (c = 0; c <= 7; c++)
|
||||
{
|
||||
ch = s[c];
|
||||
***************
|
||||
*** 617,623 ****
|
||||
if (!T[0])
|
||||
{
|
||||
printz (CP[61]);
|
||||
! gets (T);
|
||||
}
|
||||
strcat (T, "XX");
|
||||
/* skip whitespace */
|
||||
--- 617,623 ----
|
||||
if (!T[0])
|
||||
{
|
||||
printz (CP[61]);
|
||||
! fgets (T, 64, stdin);
|
||||
}
|
||||
strcat (T, "XX");
|
||||
/* skip whitespace */
|
12
games/gnuchess/patches/patch-dspcom_c
Normal file
12
games/gnuchess/patches/patch-dspcom_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-dspcom_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
|
||||
--- dspcom.c.orig 1998-09-28 08:41:19.000000000 +0200
|
||||
+++ dspcom.c 2004-01-09 20:33:29.000000000 +0100
|
||||
@@ -1099,7 +1099,7 @@ InputCommand (void)
|
||||
#ifdef NONDSP
|
||||
s[0] = sx[0] = '\0';
|
||||
while (!sx[0])
|
||||
- (void) gets (sx);
|
||||
+ (void) fgets (sx, 80, stdin);
|
||||
#else
|
||||
fflush (stdout);
|
||||
#ifdef MSDOS
|
@ -1,6 +1,7 @@
|
||||
--- gnuan.c.orig Sun Sep 27 23:41:21 1998
|
||||
+++ gnuan.c Sun Feb 7 19:23:01 1999
|
||||
@@ -1348,12 +1348,12 @@
|
||||
$OpenBSD: patch-gnuan_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
|
||||
--- gnuan.c.orig 1999-04-03 05:58:53.000000000 +0200
|
||||
+++ gnuan.c 2004-01-09 20:33:29.000000000 +0100
|
||||
@@ -1348,12 +1348,12 @@ InputCommand (void)
|
||||
fpout = stderr;
|
||||
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
|
||||
fflush (fpout);
|
||||
@ -15,7 +16,7 @@
|
||||
search_depth = atoi (inbuf);
|
||||
if (search_depth < 0)
|
||||
{
|
||||
@@ -1369,7 +1369,7 @@
|
||||
@@ -1369,7 +1369,7 @@ InputCommand (void)
|
||||
do
|
||||
{
|
||||
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
|
||||
@ -24,7 +25,7 @@
|
||||
max_minutes = atoi (inbuf);
|
||||
if (max_minutes < 0)
|
||||
{
|
||||
@@ -1379,7 +1379,7 @@
|
||||
@@ -1379,7 +1379,7 @@ InputCommand (void)
|
||||
}
|
||||
while ((max_minutes + max_seconds) < 1);
|
||||
fprintf (fpout, "Post the search results(y/n).\n");
|
||||
@ -33,7 +34,7 @@
|
||||
if (inbuf[0] == 'y')
|
||||
flag.post = true;
|
||||
else
|
||||
@@ -1559,7 +1559,7 @@
|
||||
@@ -1559,7 +1559,7 @@ InputCommand (void)
|
||||
while (true)
|
||||
{
|
||||
printf (">");
|
25
games/gnuchess/patches/patch-nondsp_c
Normal file
25
games/gnuchess/patches/patch-nondsp_c
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-nondsp_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
|
||||
--- nondsp.c.orig 1998-09-28 08:41:22.000000000 +0200
|
||||
+++ nondsp.c 2004-01-09 20:33:29.000000000 +0100
|
||||
@@ -264,10 +264,10 @@ SetupBoard (void)
|
||||
|
||||
NewGame ();
|
||||
|
||||
- gets (s); /* skip "setup" command */
|
||||
+ fgets (s, 80, stdin); /* skip "setup" command */
|
||||
for (r = 7; r >= 0; r--)
|
||||
{
|
||||
- gets (s);
|
||||
+ fgets (s, 80, stdin);
|
||||
for (c = 0; c <= 7; c++)
|
||||
{
|
||||
ch = s[c];
|
||||
@@ -617,7 +617,7 @@ SelectLevel (CHAR *sx)
|
||||
if (!T[0])
|
||||
{
|
||||
printz (CP[61]);
|
||||
- gets (T);
|
||||
+ fgets (T, 64, stdin);
|
||||
}
|
||||
strcat (T, "XX");
|
||||
/* skip whitespace */
|
Loading…
Reference in New Issue
Block a user