diff options
author | gdt <gdt> | 2009-12-28 19:36:15 +0000 |
---|---|---|
committer | gdt <gdt> | 2009-12-28 19:36:15 +0000 |
commit | 659e69b74585c16e0436b6d3cacf3046bf69d781 (patch) | |
tree | 6c27f44cf821497dfd471b3307d4e1611014a683 /geography | |
parent | 7467efd557ddb834e8cc891b16005293c355a5fa (diff) | |
download | pkgsrc-659e69b74585c16e0436b6d3cacf3046bf69d781.tar.gz |
Add patch from upstream via debian that avoids using the
withdrawn-in-2.90 gpsd interface. Restore dependency on gpsd.
Diffstat (limited to 'geography')
-rw-r--r-- | geography/viking/Makefile | 13 | ||||
-rw-r--r-- | geography/viking/distinfo | 3 | ||||
-rw-r--r-- | geography/viking/patches/patch-ab | 16 |
3 files changed, 23 insertions, 9 deletions
diff --git a/geography/viking/Makefile b/geography/viking/Makefile index 6c1b6bdb281..b943db48bc1 100644 --- a/geography/viking/Makefile +++ b/geography/viking/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.7 2009/12/27 16:43:56 gdt Exp $ +# $NetBSD: Makefile,v 1.8 2009/12/28 19:36:15 gdt Exp $ # DISTNAME= viking-0.9.9 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= geography MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=viking/} @@ -14,8 +14,8 @@ PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes -# gpsd withdrew an interface viking still uses -CONFIGURE_ARGS+= --disable-realtime-gps-tracking +# Perhaps optionize use of gpsd (remove bl3, add this). +# CONFIGURE_ARGS+= --disable-realtime-gps-tracking DEPENDS+= gpsbabel-[0-9]*:../../geography/gpsbabel REPLACE_PERL= viking-remote @@ -24,10 +24,7 @@ USE_TOOLS+= gmake intltool msgfmt pkg-config .include "../../devel/gettext-lib/buildlink3.mk" -# viking uses an interface withdrawn in gpsd 2.90. Locally revert -# gpsd or fix viking upstream. gdt, 20091227 -# https://sourceforge.net/tracker/?func=detail&aid=2921899&group_id=83870&atid=570954 -#.include "../../geography/gpsd/buildlink3.mk" +.include "../../geography/gpsd/buildlink3.mk" .include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../lang/perl5/buildlink3.mk" .include "../../www/curl/buildlink3.mk" diff --git a/geography/viking/distinfo b/geography/viking/distinfo index a6e9a8ce75c..8b02ae8582a 100644 --- a/geography/viking/distinfo +++ b/geography/viking/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2009/10/16 16:02:01 jkunz Exp $ +$NetBSD: distinfo,v 1.3 2009/12/28 19:36:15 gdt Exp $ SHA1 (viking-0.9.9.tar.gz) = ce3d66ea117e3e179c98477f4fd5c9cf2828c73e RMD160 (viking-0.9.9.tar.gz) = 5829b909f74c78b5483ae787e6d420909ce4dba2 Size (viking-0.9.9.tar.gz) = 774111 bytes SHA1 (patch-aa) = 24dba675c4aeacef6541f474edd90b7457d98d02 +SHA1 (patch-ab) = e48a04ef8d9218b54ff467292d244a0602aeb74e diff --git a/geography/viking/patches/patch-ab b/geography/viking/patches/patch-ab new file mode 100644 index 00000000000..4848cbea6f7 --- /dev/null +++ b/geography/viking/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1 2009/12/28 19:36:15 gdt Exp $ + +# https://sourceforge.net/tracker/?func=detail&aid=2921899&group_id=83870&atid=570954 +# patch taken from debian at http://git.debian.org/?p=collab-maint/viking.git;a=blob;f=debian/patches/libgps-2.90-fix;h=e23540bf533043ff26c7e0efeea0ea0f1807166f;hb=5af131f5622da98d640ed9b9f699b0b7fa6b3b83 + +--- src/vikgpslayer.c.orig 2009-09-09 20:16:18.000000000 +0000 ++++ src/vikgpslayer.c +@@ -1317,7 +1317,7 @@ static gboolean rt_gpsd_try_connect(gpoi + vgl->realtime_io_channel = g_io_channel_unix_new(vgl->vgpsd->gpsd.gps_fd); + vgl->realtime_io_watch_id = g_io_add_watch( vgl->realtime_io_channel, + G_IO_IN | G_IO_ERR | G_IO_HUP, gpsd_data_available, vgl); +- gps_query(&vgl->vgpsd->gpsd, "w+x"); ++ gps_stream(&vgl->vgpsd->gpsd, WATCH_ENABLE, NULL); + return FALSE; /* no longer called by timeout */ + } + |