diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-10-14 09:09:19 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-10-14 09:09:19 +0200 |
commit | 5f6509fb03e9b7afd901bc7dd4d5ca30dcb35757 (patch) | |
tree | 5b1e3e3d28bd9c203f0f4e36624204e0c31a1dcb | |
parent | 946f091e3f7e4d959f9fba8f9aa955ff6bfc0b4d (diff) | |
download | nutyx-pakxe-5f6509fb03e9b7afd901bc7dd4d5ca30dcb35757.tar.gz nutyx-pakxe-5f6509fb03e9b7afd901bc7dd4d5ca30dcb35757.tar.bz2 nutyx-pakxe-5f6509fb03e9b7afd901bc7dd4d5ca30dcb35757.tar.xz nutyx-pakxe-5f6509fb03e9b7afd901bc7dd4d5ca30dcb35757.zip |
gnuchess, port nettoyé
-rw-r--r-- | extra/gnuchess/Pkgfile | 4 | ||||
-rw-r--r-- | extra/gnuchess/gcc4.patch | 10 | ||||
-rw-r--r-- | extra/gnuchess/gnuchess-gcc4.patch | 11 | ||||
-rw-r--r-- | extra/gnuchess/gnuchess-glibc210.patch | 39 |
4 files changed, 2 insertions, 62 deletions
diff --git a/extra/gnuchess/Pkgfile b/extra/gnuchess/Pkgfile index bf44d222a..c1099d09c 100644 --- a/extra/gnuchess/Pkgfile +++ b/extra/gnuchess/Pkgfile @@ -9,8 +9,8 @@ version=5.07 release=1 group=app source=(ftp://ftp.gnu.org/pub/gnu/chess/$name-$version.tar.gz - gnuchess-gcc4.patch - gnuchess-glibc210.patch) + http://nutyx.meticul.eu/files/patchs/$name/gnuchess-gcc4.patch + http://nutyx.meticul.eu/files/patchs/$name/gnuchess-glibc210.patch) build() { cd $name-$version diff --git a/extra/gnuchess/gcc4.patch b/extra/gnuchess/gcc4.patch deleted file mode 100644 index b5ce9230d..000000000 --- a/extra/gnuchess/gcc4.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- gnuchess-5.07/src/input.c.orig 2005-11-11 00:45:40.000000000 +0100 -+++ gnuchess-5.07/src/input.c 2005-11-11 00:45:51.000000000 +0100 -@@ -92,7 +92,7 @@ - fgets(inputstr, MAXSTR, stdin); - } - --static pthread_t input_thread; -+pthread_t input_thread; - - /* Mutex and condition variable for thread communication */ diff --git a/extra/gnuchess/gnuchess-gcc4.patch b/extra/gnuchess/gnuchess-gcc4.patch deleted file mode 100644 index 173f2fba8..000000000 --- a/extra/gnuchess/gnuchess-gcc4.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- gnuchess-5.07/src/input.c.orig 2005-11-11 00:45:40.000000000 +0100 -+++ gnuchess-5.07/src/input.c 2005-11-11 00:45:51.000000000 +0100 -@@ -92,7 +92,7 @@ - fgets(inputstr, MAXSTR, stdin); - } - --static pthread_t input_thread; -+pthread_t input_thread; - - /* Mutex and condition variable for thread communication */ - diff --git a/extra/gnuchess/gnuchess-glibc210.patch b/extra/gnuchess/gnuchess-glibc210.patch deleted file mode 100644 index 3c191eec9..000000000 --- a/extra/gnuchess/gnuchess-glibc210.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- src/common.h.old 2009-05-28 10:26:58.000000000 +0200 -+++ src/common.h 2009-05-28 11:03:31.000000000 +0200 -@@ -745,7 +745,7 @@ - * Input routine, initialized to one of the specific - * input routines. The given argument is the prompt. - */ --void (*getline) (char *); -+void (*mygetline) (char *); - - #define MAXSTR 128 - extern char inputstr[MAXSTR]; ---- src/input.c.old 2009-05-28 10:27:06.000000000 +0200 -+++ src/input.c 2009-05-28 11:04:38.000000000 +0200 -@@ -127,7 +127,7 @@ - (RealGameCnt+1)/2 + 1 ); - } - pthread_mutex_lock(&input_mutex); -- getline(prompt); -+ mygetline(prompt); - input_status = INPUT_AVAILABLE; - pthread_cond_signal(&input_cond); - pthread_mutex_unlock(&input_mutex); -@@ -173,13 +173,13 @@ - { - #ifdef HAVE_LIBREADLINE - if (isatty(STDIN_FILENO)) { -- getline = getline_readline; -+ mygetline = getline_readline; - using_history(); - } else { -- getline = getline_standard; -+ mygetline = getline_standard; - } - #else -- getline = getline_standard; -+ mygetline = getline_standard; - #endif - /* Start input thread */ - pthread_create(&input_thread, NULL, input_func, NULL); |