utils/gpsd: Backport ncurses6 support from master 4300/head
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Tue, 25 Apr 2017 19:06:39 +0000 (12:06 -0700)
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>
Tue, 25 Apr 2017 19:07:04 +0000 (12:07 -0700)
Because gpsd FTBTS without this patch.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
utils/gpsd/patches/0002-ncurses6_detection.patch [new file with mode: 0644]

diff --git a/utils/gpsd/patches/0002-ncurses6_detection.patch b/utils/gpsd/patches/0002-ncurses6_detection.patch
new file mode 100644 (file)
index 0000000..7a1f409
--- /dev/null
@@ -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'):