summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2001-10-07 14:00:43 +0000
committerrh <rh@pkgsrc.org>2001-10-07 14:00:43 +0000
commit030eaeb26f7f4cf0035b2b54ec42e085b8db15ff (patch)
tree28b52dc38cba92d271db69c3ac75610ac4133976 /games
parent269a53f589d5cfc591d8b5f34f66b67f275bdf99 (diff)
downloadpkgsrc-030eaeb26f7f4cf0035b2b54ec42e085b8db15ff.tar.gz
Make this work with external programs.
Diffstat (limited to 'games')
-rw-r--r--games/gnome-chess/distinfo3
-rw-r--r--games/gnome-chess/patches/patch-aa26
2 files changed, 28 insertions, 1 deletions
diff --git a/games/gnome-chess/distinfo b/games/gnome-chess/distinfo
index 71ce624d396..2ba5324ca09 100644
--- a/games/gnome-chess/distinfo
+++ b/games/gnome-chess/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.3 2001/10/07 13:25:35 rh Exp $
+$NetBSD: distinfo,v 1.4 2001/10/07 14:00:43 rh Exp $
SHA1 (gnome-chess-0.3.3.tar.gz) = a8af8cb2ad11b455547fb2b6712c554777c69fd3
Size (gnome-chess-0.3.3.tar.gz) = 342099 bytes
+SHA1 (patch-aa) = 51d5d8b4266cb2c97035344b13a6456a30ac1306
diff --git a/games/gnome-chess/patches/patch-aa b/games/gnome-chess/patches/patch-aa
new file mode 100644
index 00000000000..7224051f6d8
--- /dev/null
+++ b/games/gnome-chess/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1 2001/10/07 14:00:44 rh Exp $
+
+--- src/child.c.orig Mon May 28 21:32:36 2001
++++ src/child.c
+@@ -51,6 +51,8 @@
+
+ return *childpid;
+ } else /* Child */ {
++ char *argp[2];
++
+ close (pipe1[1]);
+ close (pipe2[0]);
+
+@@ -59,6 +61,12 @@
+
+ close (pipe1[0]);
+ close (pipe2[1]);
++
++ if (arg == NULL) {
++ argp[0] = cmd;
++ argp[1] = NULL;
++ arg = argp;
++ }
+
+ if (execvp (cmd, arg) < 0)
+ perror (cmd);