Skip to content

Commit

Permalink
app-antivirus/clamav: Fixed compilation with sys-libs/ncurses[tinfo]
Browse files Browse the repository at this point in the history
Fixed without excplicit permission due to maintainer timeout.

Thanks-to: Jeroen Roovers <[email protected]>
Bug: https://bugs.gentoo.org/670729
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Jul 31, 2019
1 parent 4e4d410 commit ca05c21
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-antivirus/clamav/clamav-0.101.2-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ DOCS=( docs/UserManual.md docs/UserManual )
HTML_DOCS=( docs/html )

PATCHES=(
"${FILESDIR}/clamav-0.101.2-libxml2_pkgconfig.patch" #661328
"${FILESDIR}/${PN}-0.101.2-libxml2_pkgconfig.patch" #661328
"${FILESDIR}/${PN}-0.101.2-tinfo.patch" #670729
)

pkg_setup() {
Expand Down
31 changes: 31 additions & 0 deletions app-antivirus/clamav/files/clamav-0.101.2-tinfo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
https://bugs.gentoo.org/670729

--- a/m4/reorganization/clamdtop.m4
+++ b/m4/reorganization/clamdtop.m4
@@ -4,12 +4,26 @@

if test "$enable_clamdtop" != "no"; then

+PKG_CHECK_MODULES([CURSES], [ncursesw],
+ [CURSES_INCLUDE="<ncurses.h>";
+ HAVE_LIBNCURSES=yes],
+ HAVE_LIBNCURSES=no])
+
+if test "X$HAVE_LIBNCURSES" != "Xyes"; then
+PKG_CHECK_MODULES([CURSES], [ncurses],
+ [CURSES_INCLUDE="<ncurses.h>";
+ HAVE_LIBNCURSES=yes],
+ HAVE_LIBNCURSES=no])
+fi
+
+if test "X$HAVE_LIBNCURSES" != "Xyes"; then
AC_LIB_FIND([ncurses], [ncurses/ncurses.h],
AC_LANG_PROGRAM([#include <ncurses/ncurses.h>],
[initscr(); KEY_RESIZE;]),
[CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES";
CURSES_INCLUDE="<ncurses/ncurses.h>"],
[])
+fi

if test "X$HAVE_LIBNCURSES" != "Xyes"; then
HAVE_LIBNCURSES=

0 comments on commit ca05c21

Please sign in to comment.