summaryrefslogtreecommitdiff
path: root/games-board
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
commit68f980204de6c2d69eed8748edc90282879326a6 (patch)
treeeb74f0bcca207f547c8ababe0f82e65e16b30ce1 /games-board
parentc8273339188289fe8571e5a8cb9e00e59a46aaaf (diff)
gentoo auto-resync : 02:02:2023 - 09:07:02
Diffstat (limited to 'games-board')
-rw-r--r--games-board/Manifest.gzbin9879 -> 9879 bytes
-rw-r--r--games-board/gnuchess/Manifest4
-rw-r--r--games-board/gnuchess/files/gnuchess-6.2.9-c++17.patch140
-rw-r--r--games-board/gnuchess/files/gnuchess-6.2.9-configure-quoting.patch33
-rw-r--r--games-board/gnuchess/gnuchess-6.2.9-r1.ebuild (renamed from games-board/gnuchess/gnuchess-6.2.9.ebuild)18
5 files changed, 191 insertions, 4 deletions
diff --git a/games-board/Manifest.gz b/games-board/Manifest.gz
index 94f3d40e0852..c8f2ecf229d5 100644
--- a/games-board/Manifest.gz
+++ b/games-board/Manifest.gz
Binary files differ
diff --git a/games-board/gnuchess/Manifest b/games-board/gnuchess/Manifest
index e9fadade159c..2aafb9ac4d41 100644
--- a/games-board/gnuchess/Manifest
+++ b/games-board/gnuchess/Manifest
@@ -1,3 +1,5 @@
+AUX gnuchess-6.2.9-c++17.patch 4020 BLAKE2B 3b206248e92a644f137b1f7b4944efbc1435a2c6f669063a9adc790ce3bc0fbd9be04e2c625010b6f5cf01af1742fee4dd99d6c1bd392b52e82b816cab382139 SHA512 f2b2ab89e63aa74afe86c1f725adb81d750881225933ed731d205bc67a9881e5fc0cac1460cb3d9eb504a954e4acb4329320f4a97c2b6e147d97c6b9df03c3f7
+AUX gnuchess-6.2.9-configure-quoting.patch 1073 BLAKE2B 19ec3270677afc9ea260888d0e7d585814fe96a008c916a8cc865f565e7053c84c36d16a3f1ff6746979e333eab745be31588d9cc08ff491a143dca6e2085bcb SHA512 ea49ef06f5a9793cd6dde03b965772956bcff33fb0b4e5d509e3718c33e8d6d02bba459c830ab55f9542a780621a0eda0963e3792249295b94c37b3450f008f4
DIST gnuchess-6.2.9.tar.gz 802697 BLAKE2B e450e1d77f3158f2a063a7fc80985ad6d59f26a17a86aa9d18d86f32ee1c01fba100e59b02ea65276a1ee480ed050fbafd68635d40bae75205763fd34bfd608a SHA512 7e2ec9e14ab331ffaab2dd60da81b64b5c5a07cf14f9139d67c77886038512d15511939b8e683675ea6611e24ff2c38212a7f288540448c9225c263435f71963
-EBUILD gnuchess-6.2.9.ebuild 454 BLAKE2B 6ae9a6ccffaef7193588399d6b95fef82b5a88fa01ea7329b7fe44fba01c2a9b05e820e1ff7b511a7706f6f16007db0b9cd63305014529270e811ab126bd9f0c SHA512 ee6b3349f67374dc97c7aef6d7504c668fc4d02ca378776ff9a19f4b3c5e087b4e4f5f727e2c02319b6cbc30c96c48aad543bc56477f4ab003fc0f15a28655a2
+EBUILD gnuchess-6.2.9-r1.ebuild 648 BLAKE2B 5e9089d30a6830d12e73d106aa308ddabc78f01aab99edc14cb8d2ca948ea64ad07fb9b0ba76ffe556b4c6066ab2c2a1fe471a62d48ab11c1706523f5c537c79 SHA512 3d0b22c7208e5154502aba7710a63f7d79d2991856189f0d5c1338817e4bec5ec7bcf6abcadda559fc60227a2c342832804576246cd83a8a9ac126f0b9690a62
MISC metadata.xml 250 BLAKE2B 8d44bd4c6e7d6491273e2015e36ddac74af7b94a124fd240ff030e16430f5c85e53ab812f0e3e94bb2e6d138f39b512bbe01ff98b0081cacc21a02d648ec7643 SHA512 80ac07a3cac10ad2e72e9989a130b7d2073934fe92914a9db2af4d0e769d4bf537770f8faba0654bbd64a7e85ee38cf1f9d03b4b9cd322864b1b2bb35087d610
diff --git a/games-board/gnuchess/files/gnuchess-6.2.9-c++17.patch b/games-board/gnuchess/files/gnuchess-6.2.9-c++17.patch
new file mode 100644
index 000000000000..211efdc71eaa
--- /dev/null
+++ b/games-board/gnuchess/files/gnuchess-6.2.9-c++17.patch
@@ -0,0 +1,140 @@
+https://lists.gnu.org/archive/html/bug-gnu-chess/2023-01/msg00000.html
+
+From 321eb9b1ca1b230063259dc43be8a2ab2f3bfee9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 17 Jan 2023 22:16:36 -0800
+Subject: [PATCH] Remove 'register' storage class classifier
+
+This is gone with c++17
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/frontend/atak.cc
++++ b/src/frontend/atak.cc
+@@ -37,7 +37,7 @@ short SqAtakd (short sq, short side)
+ *
+ **************************************************************************/
+ {
+- register BitBoard *a, b, *c, d, blocker;
++ BitBoard *a, b, *c, d, blocker;
+ int t;
+
+ a = board.b[side];
+@@ -89,7 +89,7 @@ BitBoard AttackTo (int sq, int side)
+ *
+ ***************************************************************************/
+ {
+- register BitBoard *a, b, *c, e, blocker;
++ BitBoard *a, b, *c, e, blocker;
+ int t;
+
+ a = board.b[side];
+--- a/src/frontend/lexpgn.cc
++++ b/src/frontend/lexpgn.cc
+@@ -2431,9 +2431,9 @@ extern int yylex (void);
+ */
+ YY_DECL
+ {
+- register yy_state_type yy_current_state;
+- register char *yy_cp, *yy_bp;
+- register int yy_act;
++ yy_state_type yy_current_state;
++ char *yy_cp, *yy_bp;
++ int yy_act;
+
+ #line 153 "lexpgn.ll"
+
+@@ -3118,9 +3118,9 @@ case YY_STATE_EOF(RAV):
+ */
+ static int yy_get_next_buffer (void)
+ {
+- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+- register char *source = (yytext_ptr);
+- register int number_to_move, i;
++ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
++ char *source = (yytext_ptr);
++ int number_to_move, i;
+ int ret_val;
+
+ if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
+@@ -3252,8 +3252,8 @@ static int yy_get_next_buffer (void)
+
+ static yy_state_type yy_get_previous_state (void)
+ {
+- register yy_state_type yy_current_state;
+- register char *yy_cp;
++ yy_state_type yy_current_state;
++ char *yy_cp;
+
+ yy_current_state = (yy_start);
+ yy_current_state += YY_AT_BOL();
+@@ -3278,8 +3278,8 @@ static int yy_get_next_buffer (void)
+ */
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
+ {
+- register int yy_is_jam;
+- register char *yy_cp = (yy_c_buf_p);
++ int yy_is_jam;
++ char *yy_cp = (yy_c_buf_p);
+
+ yy_current_state = yy_nxt[yy_current_state][1];
+ yy_is_jam = (yy_current_state <= 0);
+@@ -3296,9 +3296,9 @@ static int yy_get_next_buffer (void)
+ return yy_is_jam ? 0 : yy_current_state;
+ }
+
+- static void yyunput (int c, register char * yy_bp )
++ static void yyunput (int c, char * yy_bp )
+ {
+- register char *yy_cp;
++ char *yy_cp;
+
+ yy_cp = (yy_c_buf_p);
+
+@@ -3308,10 +3308,10 @@ static int yy_get_next_buffer (void)
+ if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+- register yy_size_t number_to_move = (yy_n_chars) + 2;
+- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
++ yy_size_t number_to_move = (yy_n_chars) + 2;
++ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
+- register char *source =
++ char *source =
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
+
+ while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
+@@ -3925,7 +3925,7 @@ int yylex_destroy (void)
+ #ifndef yytext_ptr
+ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+ {
+- register int i;
++ int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
+@@ -3934,7 +3934,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+ #ifdef YY_NEED_STRLEN
+ static int yy_flex_strlen (yyconst char * s )
+ {
+- register int n;
++ int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+--- a/src/frontend/util.cc
++++ b/src/frontend/util.cc
+@@ -75,7 +75,7 @@ void UpdateFriends (void)
+ *
+ ***************************************************************************/
+ {
+- register BitBoard *w, *b;
++ BitBoard *w, *b;
+
+ w = board.b[white];
+ b = board.b[black];
+--
+2.39.1
+
+
diff --git a/games-board/gnuchess/files/gnuchess-6.2.9-configure-quoting.patch b/games-board/gnuchess/files/gnuchess-6.2.9-configure-quoting.patch
new file mode 100644
index 000000000000..5db87b7e56b3
--- /dev/null
+++ b/games-board/gnuchess/files/gnuchess-6.2.9-configure-quoting.patch
@@ -0,0 +1,33 @@
+From 1081b76df1f5d89a312db5bb16bc0da33f50f6fa Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Thu, 2 Feb 2023 06:21:31 +0000
+Subject: [PATCH] configure.ac: Fix autoconf quoting breaking AC_FUNC_MEMCMP
+
+See the linked autoconf bug for details, but the gist is that AC_FUNC_MEMCMP
+ends up lacking the needed includes for string.h if a raw 'if' is used as
+opposed to AS_IF.
+
+Quote properly with AS_IF to allow proper generation of the AC_FUNC_MEMCMP
+test and avoid -Wimplicit-function-declaration (which will be fatal in some
+compilers soon, like Clang 16) in its test.
+
+Bug: https://savannah.gnu.org/support/?110530
+--- a/configure.ac
++++ b/configure.ac
+@@ -35,11 +35,11 @@ AC_ARG_WITH(readline,
+ ac_cv_use_readline=yes)
+
+ dnl Check for readline library _and_ headers
+-if test x"$ac_cv_use_readline" = "xyes"; then
++AS_IF([test x"$ac_cv_use_readline" = "xyes"], [
+ AC_CHECK_LIB(ncurses, tputs)
+ AC_CHECK_LIB(readline, readline)
+ AC_CHECK_HEADERS(readline/readline.h readline/history.h)
+-fi
++])
+
+ dnl Checks for header files.
+ AC_HEADER_STDC
+--
+2.39.1
+
diff --git a/games-board/gnuchess/gnuchess-6.2.9.ebuild b/games-board/gnuchess/gnuchess-6.2.9-r1.ebuild
index 85c25649da82..c49bebcca0bd 100644
--- a/games-board/gnuchess/gnuchess-6.2.9.ebuild
+++ b/games-board/gnuchess/gnuchess-6.2.9-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit flag-o-matic
+inherit autotools flag-o-matic
DESCRIPTION="Console based chess interface"
HOMEPAGE="https://www.gnu.org/software/chess/chess.html"
@@ -13,6 +13,18 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ppc64 ~riscv x86"
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.2.9-c++17.patch
+ "${FILESDIR}"/${PN}-6.2.9-configure-quoting.patch
+)
+
+src_prepare() {
+ default
+
+ # Needed for clang 16 patch (quoting)
+ eautoreconf
+}
+
src_configure() {
# -Wodr warnings, bug #858611
filter-lto