summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/goaccess/files/fix_libtinfo_linking.patch')
-rw-r--r--net-analyzer/goaccess/files/fix_libtinfo_linking.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-analyzer/goaccess/files/fix_libtinfo_linking.patch b/net-analyzer/goaccess/files/fix_libtinfo_linking.patch
new file mode 100644
index 0000000..8b1db60
--- /dev/null
+++ b/net-analyzer/goaccess/files/fix_libtinfo_linking.patch
@@ -0,0 +1,32 @@
+From 6dc27f8815ebbcdc1ab3dd191e9f04b71535c5b5 Mon Sep 17 00:00:00 2001
+From: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
+Date: Fri, 1 Jan 2016 17:40:45 +0200
+Subject: [PATCH] Correctly link against libtinfo
+
+---
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 894e2b4..6a722dd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -67,6 +67,7 @@ AC_ARG_ENABLE(utf8, [ --enable-utf8 Enable ncurses library that handles wide
+ if test "$utf8" = "yes"; then
+ AC_CHECK_LIB([ncursesw], [mvaddwstr], [],
+ [AC_MSG_ERROR([*** Missing development libraries for ncursesw])])
++ AC_SEARCH_LIBS([stdscr], [tinfow], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
+
+ have_ncurses="yes"
+ AC_CHECK_HEADERS([ncursesw/ncurses.h],[have_ncurses=yes], [], [
+@@ -87,6 +88,7 @@ if test "$utf8" = "yes"; then
+ else
+ AC_CHECK_LIB([ncurses], [refresh], [],
+ [AC_MSG_ERROR([*** Missing development libraries for ncurses])])
++ AC_SEARCH_LIBS([stdscr], [tinfo], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
+
+ have_ncurses="yes"
+ AC_CHECK_HEADERS([ncurses/ncurses.h],[have_ncurses=yes], [], [
+--
+2.7.0
+