commit:     3628e45fed8f446c61d595c575293759c97e8cc3
Author:     Michael Vetter <jubalh <AT> iodoru <DOT> org>
AuthorDate: Thu Feb 23 10:41:37 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Feb 23 17:40:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3628e45f

games-puzzle/nudoku: add patch to include locale.h

Closes: https://bugs.gentoo.org/895990

Signed-off-by: Michael Vetter <jubalh <AT> iodoru.org>
Closes: https://github.com/gentoo/gentoo/pull/29743
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../nudoku/files/nudoku-2.1.0-include-locale.patch | 22 ++++++++++++++++++++++
 games-puzzle/nudoku/nudoku-2.1.0.ebuild            |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/games-puzzle/nudoku/files/nudoku-2.1.0-include-locale.patch 
b/games-puzzle/nudoku/files/nudoku-2.1.0-include-locale.patch
new file mode 100644
index 000000000000..d4d1c89bd104
--- /dev/null
+++ b/games-puzzle/nudoku/files/nudoku-2.1.0-include-locale.patch
@@ -0,0 +1,22 @@
+From ffe61c8cb6dcf6032960fa75ac2b66b5f1906e37 Mon Sep 17 00:00:00 2001
+From: Michael Vetter <jub...@iodoru.org>
+Date: Thu, 23 Feb 2023 10:58:43 +0100
+Subject: [PATCH] Include locale.h
+
+See https://bugs.gentoo.org/895990
+---
+ src/main.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/main.c b/src/main.c
+index 74d6a0e..77a0a03 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -25,6 +25,7 @@ along with this program. If not, see 
<http://www.gnu.org/licenses/>.
+ #include <ncurses.h>                  /* ncurses */
+ #include <time.h>                             /* time */
+ #include <string.h>                           /* strcmp, strlen */
++#include <locale.h>                           /* setlocale */
+ #include "sudoku.h"                           /* sudoku functions */
+ #ifdef ENABLE_CAIRO
+ #include "outp.h"                             /* output functions */

diff --git a/games-puzzle/nudoku/nudoku-2.1.0.ebuild 
b/games-puzzle/nudoku/nudoku-2.1.0.ebuild
index 9bd564dfc76a..f4a69b9fc4c7 100644
--- a/games-puzzle/nudoku/nudoku-2.1.0.ebuild
+++ b/games-puzzle/nudoku/nudoku-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -25,6 +25,7 @@ RDEPEND="${DEPEND}"
 
 PATCHES=(
        "${FILESDIR}/${PN}-2.1.0-ncurses-link.patch"
+       "${FILESDIR}/${PN}-2.1.0-include-locale.patch"
 )
 
 src_prepare() {

Reply via email to