From 18c7336d3a6a773b956f101de723e8584569febb Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Tue, 25 Apr 2017 12:06:39 -0700 Subject: [PATCH] utils/gpsd: Backport ncurses6 support from master Because gpsd FTBTS without this patch. Signed-off-by: Alexandru Gagniuc --- utils/gpsd/patches/0002-ncurses6_detection.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 utils/gpsd/patches/0002-ncurses6_detection.patch diff --git a/utils/gpsd/patches/0002-ncurses6_detection.patch b/utils/gpsd/patches/0002-ncurses6_detection.patch new file mode 100644 index 0000000000..7a1f409695 --- /dev/null +++ b/utils/gpsd/patches/0002-ncurses6_detection.patch @@ -0,0 +1,15 @@ +Index: gpsd-3.16/SConstruct +=================================================================== +--- gpsd-3.16.orig/SConstruct ++++ gpsd-3.16/SConstruct +@@ -543,6 +543,10 @@ else: + ncurseslibs = pkg_config('ncurses') + if config.CheckPKG('tinfo'): + ncurseslibs += pkg_config('tinfo') ++ elif WhereIs('ncurses6-config'): ++ ncurseslibs = ['!ncurses6-config --libs --cflags'] ++ elif WhereIs('ncursesw6-config'): ++ ncurseslibs = ['!ncursesw6-config --libs --cflags'] + elif WhereIs('ncurses5-config'): + ncurseslibs = ['!ncurses5-config --libs --cflags'] + elif WhereIs('ncursesw5-config'):