1 |
commit: 64dba3109dd18f5a239f63579b12a4d1b17a1c2e |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 31 02:23:50 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 03:25:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64dba310 |
7 |
|
8 |
app-misc/abook: fix linking order for ncurses |
9 |
|
10 |
Closes: https://bugs.gentoo.org/803155 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
...k-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch | 34 ++++++++++++++++++---- |
14 |
1 file changed, 29 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch b/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch |
17 |
index 00b8e444904..8d7a6cddd7c 100644 |
18 |
--- a/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch |
19 |
+++ b/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch |
20 |
@@ -1,11 +1,36 @@ |
21 |
+From 243d3c265289171f59de68f5da4de086afb58215 Mon Sep 17 00:00:00 2001 |
22 |
From: Sam James <sam@g.o> |
23 |
-Date: Wed, 21 Apr 2021 06:06:13 +0100 |
24 |
-Subject: Use PKG_CHECK_MODULES for ncurses |
25 |
+Date: Sat, 31 Jul 2021 03:21:28 +0100 |
26 |
+Subject: [PATCH] Use PKG_CHECK_MODULES for ncurses |
27 |
|
28 |
We don't _always_ have split tinfo, e.g. Prefix. |
29 |
+ |
30 |
+Signed-off-by: Sam James <sam@g.o> |
31 |
+--- |
32 |
+ Makefile.am | 4 ++-- |
33 |
+ configure.ac | 26 +------------------------- |
34 |
+ 2 files changed, 3 insertions(+), 27 deletions(-) |
35 |
+ |
36 |
+diff --git a/Makefile.am b/Makefile.am |
37 |
+index 8faaa11..18c6892 100644 |
38 |
+--- a/Makefile.am |
39 |
++++ b/Makefile.am |
40 |
+@@ -22,8 +22,8 @@ abook_SOURCES = abook.c abook_rl.c database.c edit.c \ |
41 |
+ EXTRA_DIST = config.rpath ANNOUNCE BUGS FAQ abook.1 abookrc.5 sample.abookrc \ |
42 |
+ abook.spec contrib doc/HOWTO.translating_abook RELEASE_NOTES |
43 |
+ |
44 |
+-abook_LDADD = @LIBINTL@ |
45 |
+- |
46 |
++abook_CFLAGS = $(ncurses_CFLAGS) |
47 |
++abook_LDADD = @LIBINTL@ $(ncurses_LIBS) |
48 |
+ |
49 |
+ install-data-local: |
50 |
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 |
51 |
+diff --git a/configure.ac b/configure.ac |
52 |
+index 5a9ae3b..73a7af0 100644 |
53 |
--- a/configure.ac |
54 |
+++ b/configure.ac |
55 |
-@@ -74,31 +74,9 @@ dnl ------------------- |
56 |
+@@ -74,31 +74,7 @@ dnl ------------------- |
57 |
dnl (n)curses detection |
58 |
dnl ------------------- |
59 |
|
60 |
@@ -35,10 +60,9 @@ We don't _always_ have split tinfo, e.g. Prefix. |
61 |
- [CF_CURSES_LIBS]) |
62 |
- ]) |
63 |
+PKG_CHECK_MODULES(ncurses, [ncursesw ncurses]) |
64 |
-+LDFLAGS="${ncurses_LIBS} $LDFLAGS" |
65 |
-+CPPFLAGS="${ncurses_CFLAGS} $CPPFLAGS" |
66 |
|
67 |
dnl -------------------------- |
68 |
dnl end of (n)curses detection |
69 |
-- |
70 |
+2.32.0 |