* [gentoo-commits] repo/gentoo:master commit in: games-puzzle/nudoku/files/
@ 2022-05-13 20:12 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-05-13 20:12 UTC (permalink / raw
To: gentoo-commits
commit: ff966cb209c335d24b84891d174c2f0dcaa5e863
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Mon May 9 20:32:40 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 13 20:12:42 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff966cb2
games-puzzle/nudoku: fix pkgconf
On some systems the Autotools could not find the path to pkgconf in
configure.ac due to a missing call to PKG_PROG_PKG_CONFIG.
Closes: https://bugs.gentoo.org/764497
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../nudoku/files/nudoku-2.1.0-ncurses-link.patch | 42 ++++++++++++----------
1 file changed, 23 insertions(+), 19 deletions(-)
diff --git a/games-puzzle/nudoku/files/nudoku-2.1.0-ncurses-link.patch b/games-puzzle/nudoku/files/nudoku-2.1.0-ncurses-link.patch
index 396dbccddccf..0a4b2a13a0c4 100644
--- a/games-puzzle/nudoku/files/nudoku-2.1.0-ncurses-link.patch
+++ b/games-puzzle/nudoku/files/nudoku-2.1.0-ncurses-link.patch
@@ -2,36 +2,40 @@ Ensure we link against the correct ncurses libraries.
https://bugs.gentoo.org/764470
--- a/src/Makefile.am
+++ b/src/Makefile.am
-@@ -1,11 +1,7 @@
- #AM_CFLAGS = --pedantic -Wall
+@@ -2,9 +2,9 @@
#-DDEBUG
--if HAVE_WIDE_NCURSES
+ if HAVE_WIDE_NCURSES
-nudoku_LDADD = -lncursesw
--else
++nudoku_LDADD = ${ncursesw_LIBS}
+ else
-nudoku_LDADD = -lncurses
--endif
+nudoku_LDADD = ${ncurses_LIBS}
+ endif
bin_PROGRAMS = nudoku
nudoku_SOURCES = main.c sudoku.c sudoku.h
-
+
--- a/configure.ac
+++ b/configure.ac
-@@ -34,15 +34,7 @@ the cairo development libraries, or compile without support (--disable-cairo)
+@@ -6,6 +6,9 @@ AC_INIT([nudoku], [2.1.0], [jubalh@iodoru.org])
+ AC_CONFIG_SRCDIR([src/main.c])
+ AM_INIT_AUTOMAKE([foreign])
++# Check for pkg-config
++PKG_PROG_PKG_CONFIG()
++
+ # Checks for programs.
+ AC_PROG_CC
+ # Use C99.
+@@ -35,9 +38,9 @@ the cairo development libraries, or compile without support (--disable-cairo)
fi
--have_wide_ncurses=no
+ have_wide_ncurses=no
-AC_CHECK_LIB(ncursesw, initscr, [have_wide_ncurses=yes])
--if test $have_wide_ncurses = no; then
++PKG_CHECK_MODULES([ncursesw], [ncursesw], [have_wide_ncurses=yes], [])
+ if test $have_wide_ncurses = no; then
- AC_CHECK_LIB(ncurses, initscr, [], [
-- echo "nudoku requires ncurses"
-- exit 1
-- ])
--fi
--AM_CONDITIONAL([HAVE_WIDE_NCURSES], [test $have_wide_ncurses = yes])
-+PKG_CHECK_MODULES([ncurses], [ncurses])
-
- # Checks for header files.
- AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
-
++ PKG_CHECK_MODULES([ncurses], [ncurses], [], [
+ echo "nudoku requires ncurses"
+ exit 1
+ ])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-13 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 20:12 [gentoo-commits] repo/gentoo:master commit in: games-puzzle/nudoku/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox