Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/clamav/files/, app-antivirus/clamav/
Date: Wed, 31 Jul 2019 12:47:49
Message-Id: 1564577259.ca05c21a3ab3e69ff60da41cb10cba2de84ed614.polynomial-c@gentoo
1 commit: ca05c21a3ab3e69ff60da41cb10cba2de84ed614
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 31 12:47:12 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 31 12:47:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca05c21a
7
8 app-antivirus/clamav: Fixed compilation with sys-libs/ncurses[tinfo]
9
10 Fixed without excplicit permission due to maintainer timeout.
11
12 Thanks-to: Jeroen Roovers <jer <AT> gentoo.org>
13 Bug: https://bugs.gentoo.org/670729
14 Package-Manager: Portage-2.3.69, Repoman-2.3.16
15 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
16
17 app-antivirus/clamav/clamav-0.101.2-r1.ebuild | 3 ++-
18 .../clamav/files/clamav-0.101.2-tinfo.patch | 31 ++++++++++++++++++++++
19 2 files changed, 33 insertions(+), 1 deletion(-)
20
21 diff --git a/app-antivirus/clamav/clamav-0.101.2-r1.ebuild b/app-antivirus/clamav/clamav-0.101.2-r1.ebuild
22 index 986cc1711ae..372a1c6336b 100644
23 --- a/app-antivirus/clamav/clamav-0.101.2-r1.ebuild
24 +++ b/app-antivirus/clamav/clamav-0.101.2-r1.ebuild
25 @@ -41,7 +41,8 @@ DOCS=( docs/UserManual.md docs/UserManual )
26 HTML_DOCS=( docs/html )
27
28 PATCHES=(
29 - "${FILESDIR}/clamav-0.101.2-libxml2_pkgconfig.patch" #661328
30 + "${FILESDIR}/${PN}-0.101.2-libxml2_pkgconfig.patch" #661328
31 + "${FILESDIR}/${PN}-0.101.2-tinfo.patch" #670729
32 )
33
34 pkg_setup() {
35
36 diff --git a/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch b/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch
37 new file mode 100644
38 index 00000000000..66130be4188
39 --- /dev/null
40 +++ b/app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch
41 @@ -0,0 +1,31 @@
42 +https://bugs.gentoo.org/670729
43 +
44 +--- a/m4/reorganization/clamdtop.m4
45 ++++ b/m4/reorganization/clamdtop.m4
46 +@@ -4,12 +4,26 @@
47 +
48 + if test "$enable_clamdtop" != "no"; then
49 +
50 ++PKG_CHECK_MODULES([CURSES], [ncursesw],
51 ++ [CURSES_INCLUDE="<ncurses.h>";
52 ++ HAVE_LIBNCURSES=yes],
53 ++ HAVE_LIBNCURSES=no])
54 ++
55 ++if test "X$HAVE_LIBNCURSES" != "Xyes"; then
56 ++PKG_CHECK_MODULES([CURSES], [ncurses],
57 ++ [CURSES_INCLUDE="<ncurses.h>";
58 ++ HAVE_LIBNCURSES=yes],
59 ++ HAVE_LIBNCURSES=no])
60 ++fi
61 ++
62 ++if test "X$HAVE_LIBNCURSES" != "Xyes"; then
63 + AC_LIB_FIND([ncurses], [ncurses/ncurses.h],
64 + AC_LANG_PROGRAM([#include <ncurses/ncurses.h>],
65 + [initscr(); KEY_RESIZE;]),
66 + [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES";
67 + CURSES_INCLUDE="<ncurses/ncurses.h>"],
68 + [])
69 ++fi
70 +
71 + if test "X$HAVE_LIBNCURSES" != "Xyes"; then
72 + HAVE_LIBNCURSES=