summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2016-05-18 19:54:32 +0200
committerDaniel Pielmeier <billie@gentoo.org>2016-05-18 19:54:32 +0200
commit4cf3735ecef4972862e5994ab7988a9aee8c703b (patch)
tree39f8ce0965dfa5ab577863898497fd44b47f9617 /app-admin/conky/files
parentdev-lang/go: apply patch for #581072 (diff)
downloadgentoo-4cf3735ecef4972862e5994ab7988a9aee8c703b.tar.gz
gentoo-4cf3735ecef4972862e5994ab7988a9aee8c703b.tar.bz2
gentoo-4cf3735ecef4972862e5994ab7988a9aee8c703b.zip
app-admin/conky: Fixes bug #562154. Fix building ncurses with USE=tinfo.
Thanks to Nicholas O'Connor for the report and Laurent Georget for the patch. Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/conky/files')
-rw-r--r--app-admin/conky/files/conky-1.10.1-ncurses-tinfo.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.10.1-ncurses-tinfo.patch b/app-admin/conky/files/conky-1.10.1-ncurses-tinfo.patch
new file mode 100644
index 000000000000..a603959af6da
--- /dev/null
+++ b/app-admin/conky/files/conky-1.10.1-ncurses-tinfo.patch
@@ -0,0 +1,35 @@
+From dbf26f0a42a7f46d363abb150192bfcd1ccb204b Mon Sep 17 00:00:00 2001
+From: Laurent Georget <laurent@lgeorget.eu>
+Date: Sat, 14 May 2016 19:38:55 +0200
+Subject: [PATCH] Fix the `symbol stdscr not found` compilation error (#254)
+
+The compilation fails when the symbols of terminfo are not present in
+the libncurses.so. This can happen when the terminfo library libtinfo.so
+is compiled separately. Using pkg_config is the correct approach to
+handle all cases.
+---
+ cmake/ConkyPlatformChecks.cmake | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake
+index 05d8bbd..f19ac24 100644
+--- a/cmake/ConkyPlatformChecks.cmake
++++ b/cmake/ConkyPlatformChecks.cmake
+@@ -119,12 +119,12 @@ if(BUILD_HTTP)
+ endif(BUILD_HTTP)
+
+ if(BUILD_NCURSES)
+- check_include_files(ncurses.h NCURSES_H)
+- find_library(NCURSES_LIB NAMES ncurses)
+- if(NOT NCURSES_H OR NOT NCURSES_LIB)
++ pkg_check_modules(NCURSES ncurses)
++ if(NOT NCURSES_FOUND)
+ message(FATAL_ERROR "Unable to find ncurses library")
+- endif(NOT NCURSES_H OR NOT NCURSES_LIB)
+- set(conky_libs ${conky_libs} ${NCURSES_LIB})
++ endif(NOT NCURSES_FOUND)
++ set(conky_libs ${conky_libs} ${NCURSES_LIBRARIES})
++ set(conky_includes ${conky_includes} ${NCURSES_INCLUDE_DIRS})
+ endif(BUILD_NCURSES)
+
+ if(BUILD_MYSQL)