From 310305ffd11dbc4e362dd889c8cc41947ab85ae4 Mon Sep 17 00:00:00 2001 From: uriahheep Date: Tue, 12 Jan 2016 02:41:29 -0500 Subject: [PATCH] gpsd: updated to 3.16 --- srcpkgs/gpsd/patches/musl-gpsmon-ctrl-l.patch | 38 ------------------- srcpkgs/gpsd/patches/ncurses-pkgconfig.patch | 4 +- srcpkgs/gpsd/template | 8 ++-- 3 files changed, 6 insertions(+), 44 deletions(-) delete mode 100644 srcpkgs/gpsd/patches/musl-gpsmon-ctrl-l.patch diff --git a/srcpkgs/gpsd/patches/musl-gpsmon-ctrl-l.patch b/srcpkgs/gpsd/patches/musl-gpsmon-ctrl-l.patch deleted file mode 100644 index 43b15e6c9eb..00000000000 --- a/srcpkgs/gpsd/patches/musl-gpsmon-ctrl-l.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 95c99f69e026e8c57aecba545e51c97f3b284e75 Mon Sep 17 00:00:00 2001 -From: Gary E. Miller -Date: Tue, 23 Jun 2015 21:36:26 +0000 -Subject: Remove a BSD-ism. - -CTRL('L') is a BSD-ism. CTRL() is defined in sys/ttydefaults.h -which does not always exist. Instead of adding scons tests for -needing CTRL() and its include files just replace with a simple -constant. - -Needed for musl and found by Baruch Siach ---- -diff --git a/gpsmon.c b/gpsmon.c -index c3001c8..58c8300 100644 ---- a/gpsmon.c -+++ b/gpsmon.c -@@ -583,6 +583,9 @@ static void select_packet_monitor(struct gps_device_t *device) - (void)wnoutrefresh(devicewin); - } - -+/* Control-L character */ -+#define CTRL_L 0x0C -+ - static char *curses_get_command(void) - /* char-by-char nonblocking input, return accumulated command line on \n */ - { -@@ -591,7 +594,8 @@ static char *curses_get_command(void) - int c; - - c = wgetch(cmdwin); -- if (c == CTRL('L')) { -+ if (CTRL_L == c) { -+ /* ^L is to repaint the screen */ - (void)clearok(stdscr, true); - if (active != NULL && (*active)->initialize != NULL) - (void)(*active)->initialize(); --- -cgit v0.9.0.2 diff --git a/srcpkgs/gpsd/patches/ncurses-pkgconfig.patch b/srcpkgs/gpsd/patches/ncurses-pkgconfig.patch index 7bbba0aff0e..88fba4ebaf1 100644 --- a/srcpkgs/gpsd/patches/ncurses-pkgconfig.patch +++ b/srcpkgs/gpsd/patches/ncurses-pkgconfig.patch @@ -9,6 +9,6 @@ diff -urN gpsd-3.15-old/SConstruct gpsd-3.15-new/SConstruct - ncurseslibs = pkg_config('ncurses') + if config.CheckPKG('ncursesw'): + ncurseslibs = pkg_config('ncursesw') + if config.CheckPKG('tinfo'): + ncurseslibs += pkg_config('tinfo') elif WhereIs('ncurses5-config'): - ncurseslibs = ['!ncurses5-config --libs --cflags'] - elif WhereIs('ncursesw5-config'): diff --git a/srcpkgs/gpsd/template b/srcpkgs/gpsd/template index 5db15c1f25d..4baefe7242a 100644 --- a/srcpkgs/gpsd/template +++ b/srcpkgs/gpsd/template @@ -1,7 +1,7 @@ # Template file for 'gpsd' pkgname=gpsd -version=3.15 -revision=2 +version=3.16 +revision=1 build_style=scons patch_args=-p1 make_build_args="dbus_export=0 gpsd_user=gpsd gpsd_group=gpsd sbindir=/usr/bin udevdir=/usr/lib/udev CC=${CC}" @@ -12,10 +12,10 @@ maintainer="uriahheep " license="BSD" homepage="http://www.catb.org/gpsd/" distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}.tar.gz" -checksum="81c89e271ae112313e68655ab30d227bc38fe7841ffbff0f1860b12a9d7696ea" +checksum="03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029" system_accounts="gpsd" -hostmakedepends="scons pkg-config bc python libxslt xmlto asciidoc" +hostmakedepends="scons pkg-config bc python libxslt xmlto asciidoc ncurses" makedepends="libudev-devel ntp libusb-devel ncurses-devel pps-tools-devel libcap-devel libbluetooth-devel" subpackages="gpsd-devel"