Index: head/astro/foxtrotgps/Makefile =================================================================== --- head/astro/foxtrotgps/Makefile (revision 528218) +++ head/astro/foxtrotgps/Makefile (revision 528219) @@ -1,41 +1,41 @@ # Created by: crwhipp@gmail.com # $FreeBSD$ PORTNAME= foxtrotgps PORTVERSION= 1.2.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= astro geography MASTER_SITES= http://www.foxtrotgps.org/releases/ MAINTAINER= crwhipp@gmail.com COMMENT= Lightweight opensource gps moving map application LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl \ libexif.so:graphics/libexif \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libsoup-2.4.so:devel/libsoup \ libgps.so:astro/gpsd INFO= foxtrotgps GNU_CONFIGURE= yes CONFIGURE_ENV= DATADIRNAME=share CONFIGURE_ARGS= --disable-schemas-install USES= compiler:c++11-lang gettext gmake gnome pkgconfig python \ shebangfix sqlite:3 SHEBANG_FILES= contrib/convert2gpx \ contrib/convert2osm \ contrib/georss2foxtrotgps-poi\ contrib/gpx2osm \ contrib/poi2osm \ contrib/osb2foxtrot \ USE_GNOME= gtk20 gconf2 libxml2 intltool libglade2 INSTALLS_ICONS= yes GCONF_SCHEMAS= apps_foxtrotgps.schemas .include Index: head/astro/foxtrotgps/files/patch-src_gps__functions.c =================================================================== --- head/astro/foxtrotgps/files/patch-src_gps__functions.c (nonexistent) +++ head/astro/foxtrotgps/files/patch-src_gps__functions.c (revision 528219) @@ -0,0 +1,32 @@ +--- src/gps_functions.c.orig 2020-03-05 17:21:38 UTC ++++ src/gps_functions.c +@@ -735,6 +735,11 @@ cb_gpsd_io_error(GIOChannel *src, GIOCondition conditi + } + + ++static double ++timespec_to_double(struct timespec ts) ++{ ++ return ((double)(ts.tv_sec) + ((double)(ts.tv_nsec) / 1e9)); ++} + + static gboolean + cb_gpsd_data(GIOChannel *src, GIOCondition condition, gpointer data) +@@ -744,7 +749,7 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, + if (!libgps_initialized) + return FALSE; + +- ret = gps_read(&libgps_gpsdata); ++ ret = gps_read(&libgps_gpsdata, NULL, 0); + /* Note that gps_read() will never actually return 0 + (zero-length reads are converted internally to a -1 return, + since they mean that the connection to the daemon has closed), +@@ -755,7 +760,7 @@ cb_gpsd_data(GIOChannel *src, GIOCondition condition, + { + gpsdata->satellites_used = libgps_gpsdata.satellites_used; + gpsdata->hdop = libgps_gpsdata.dop.hdop; +- gpsdata->fix.time = libgps_gpsdata.fix.time; ++ gpsdata->fix.time = timespec_to_double(libgps_gpsdata.fix.time); + if (isnan(gpsdata->fix.time)) + { + gpsdata->fix.time = (time_t) 0; Property changes on: head/astro/foxtrotgps/files/patch-src_gps__functions.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/astro/gpsd/Makefile =================================================================== --- head/astro/gpsd/Makefile (revision 528218) +++ head/astro/gpsd/Makefile (revision 528219) @@ -1,155 +1,157 @@ # Created by: Anton Karpov # $FreeBSD$ PORTNAME= gpsd -PORTVERSION= 3.17 -PORTREVISION= 1 +PORTVERSION= 3.20 CATEGORIES= astro geography MASTER_SITES= SAVANNAH MAINTAINER= z7dr6ut7gs@snkmail.com COMMENT= Daemon that monitors one or more GPSes attached to a host computer LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -USES= cpe pathfix pkgconfig python:2.7 scons shebangfix +USES= cpe pathfix pkgconfig python:3.7 scons shebangfix CPE_VENDOR= gpsd_project USE_PYTHON= flavors +USE_LDCONFIG= yes USE_RC_SUBR= gpsd SHEBANG_FILES= *.py gps/*.py gegps xgps gpscat xgpsspeed gpsprof \ - gpsfake + gpsfake ubxtool zerk MAKE_ARGS= prefix="${PREFIX}" mandir="man" pkgconfig="libdata/pkgconfig" \ manbuild=no target_python="${PYTHON_CMD}" qt=no MAKE_ENV= DESTDIR="${STAGEDIR}" PLIST_SUB= PYTHON_EGGINFO=gps-${PORTVERSION}.egg-info OPTIONS_DEFINE= AIVDM ASHTECH CPPBIND DBUS EARTHMATE EVERMORE FURY FV18 GARMIN \ GARMINTXT GEOSTAR GPSCLOCK IPV6 ITRAX MTK NAVCOM NCURSES \ NETFEED NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE \ PASSTHROUGH PPS PROFILING RECONFIGURE RTCM104V2 RTCM104V3 \ SHMEXPORT SIRF SOCKEXPORT SUPERSTARII TIMING TNT TRIPMATE \ TSIP UBLOX USB X11 -OPTIONS_DEFAULT= AIVDM ASHTECH CPPBIND EARTHMATE EVERMORE FURY FV18 GARMIN \ - GARMINTXT GEOSTAR GPSCLOCK ITRAX NAVCOM NCURSES NETFEED \ - NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE PASSTHROUGH \ - RECONFIGURE RTCM104V2 RTCM104V3 SHMEXPORT SIRF SOCKEXPORT \ - SUPERSTARII TIMING TNT TRIPMATE TSIP UBLOX USB X11 +OPTIONS_DEFAULT= AIVDM ASHTECH CPPBIND EARTHMATE EVERMORE FURY FV18 GARMIN \ + GARMINTXT GEOSTAR GPSCLOCK ITRAX NAVCOM NCURSES NETFEED \ + NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE PASSTHROUGH \ + RECONFIGURE RTCM104V2 RTCM104V3 SHMEXPORT SIRF SOCKEXPORT \ + SUPERSTARII TIMING TNT TRIPMATE TSIP UBLOX USB X11 OPTIONS_SUB= yes AIVDM_DESC= Aivdm support ASHTECH_DESC= Ashtech support CPPBIND_DESC= Build C++ bindings EARTHMATE_DESC= DeLorme EarthMate Zodiac support EVERMORE_DESC= Evermore binary support FURY_DESC= Jackson Labs Fury and Firefly support FV18_DESC= San Jose Navigation FV-18 support GARMIN_DESC= Garmin kernel driver support GARMINTXT_DESC= Garmin Simple Text support GEOSTAR_DESC= Geostar Protocol support GPSCLOCK_DESC= GPSclock support ITRAX_DESC= iTrax support MTK_DESC= MTK-3301 support NAVCOM_DESC= Navcom support NCURSES_DESC= Build with ncurses NETFEED_DESC= Build support for handling TCP/IP data sources NMEA0183_DESC= NMEA0183 support NTP_DESC= NTP time hinting support NTPSHM_DESC= NTP time hinting support via shared memory NTRIP_DESC= NTRIP support OCEANSERVER_DESC= Oceanserver support ONCORE_DESC= Motorola OnCore chipset support PASSTHROUGH_DESC= Build support for passing through JSON PPS_DESC= PPS time syncing support PROFILING_DESC= Profiling support RECONFIGURE_DESC= Allow gpsd to change device settings RTCM104V2_DESC= rtcm104v2 support RTCM104V3_DESC= rtcm104v3 support SHMEXPORT_DESC= Enable export via shared memory SIRF_DESC= SiRF chipset support SOCKEXPORT_DESC= Enable export over sockets SUPERSTARII_DESC= SuperStarII support TIMING_DESC= Build latency timing support TNT_DESC= True North Technologies support TRIPMATE_DESC= DeLorme TripMate support TSIP_DESC= Trimble TSIP support UBLOX_DESC= u-blox protocol support USB_DESC= libusb support for USB devices # Options related to GPS protocols NMEA0183_MAKE_ARGS_OFF= nmea0183=no ASHTECH_MAKE_ARGS_OFF= ashtech=no EARTHMATE_MAKE_ARGS_OFF= earthmate=no EVERMORE_MAKE_ARGS_OFF= evermore=no FURY_MAKE_ARGS_OFF= fury=no FV18_MAKE_ARGS_OFF= fv18=no GARMIN_MAKE_ARGS_OFF= garmin=no GARMINTXT_MAKE_ARGS_OFF= garmintxt=no GEOSTAR_MAKE_ARGS_OFF= geostar=no ITRAX_MAKE_ARGS_OFF= itrax=no MTK_MAKE_ARGS_OFF= mtk3301=no NAVCOM_MAKE_ARGS_OFF= navcom=no ONCORE_MAKE_ARGS_OFF= oncore=no SIRF_MAKE_ARGS_OFF= sirf=no SUPERSTARII_MAKE_ARGS_OFF= superstar2=no TNT_MAKE_ARGS_OFF= tnt=no TRIPMATE_MAKE_ARGS_OFF= tripmate=no TSIP_MAKE_ARGS_OFF= tsip=no UBLOX_MAKE_ARGS_OFF= ublox=no # Options related to Non-GPS protocols AIVDM_MAKE_ARGS_OFF= aivdm=no GPSCLOCK_MAKE_ARGS_OFF= gpsclock=no NTRIP_MAKE_ARGS_OFF= ntrip=no OCEANSERVER_MAKE_ARGS_OFF= oceanserver=no RTCM104V2_MAKE_ARGS_OFF= rtcm104v2=no RTCM104V3_MAKE_ARGS_OFF= rtcm104v3=no # Time service NTP_MAKE_ARGS_OFF= ntp=no NTPSHM_MAKE_ARGS_OFF= ntpshm=no PPS_MAKE_ARGS_OFF= pps=no PPS_IMPLIES= NTPSHM # Export methods SOCKEXPORT_MAKE_ARGS_OFF= socket_export=no DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus DBUS_MAKE_ARGS= dbus_export=yes DBUS_MAKE_ARGS_OFF= dbus_export=no SHMEXPORT_MAKE_ARGS_OFF= shm_export=no # Communication USB_MAKE_ARGS_OFF= usb=no IPV6_MAKE_ARGS_OFF= ipv6=no NETFEED_MAKE_ARGS_OFF= netfeed=no PASSTHROUGH_MAKE_ARGS_OFF= passthrough=no # Other daemon options TIMING_MAKE_ARGS_OFF= timing=no # Client-side options NCURSES_MAKE_ARGS_OFF= ncurses=no NCURSES_USES= ncurses RECONFIGURE_MAKE_ARGS_OFF= reconfigure=no CPPBIND_MAKE_ARGS_OFF= libgpsmm=no X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR} -#X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}serial>=0:comms/py-serial@${PY_FLAVOR} X11_USES= gnome X11_USE= GNOME=gtk30 +X11_MAKE_ARGS_OFF= xgps=no # Build control PROFILING_MAKE_ARGS= profiling=yes # generates .py[co] files for installed modules # if that's not done, ${PYTHON_SITELIBDIR}/gps will be polluted # with these files when module is imported from root user post-install: (cd ${STAGEDIR}${PREFIX} && \ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) + ${RM} -r ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gps/__pycache__ .include Index: head/astro/gpsd/distinfo =================================================================== --- head/astro/gpsd/distinfo (revision 528218) +++ head/astro/gpsd/distinfo (revision 528219) @@ -1,3 +1,3 @@ -TIMESTAMP = 1516146278 -SHA256 (gpsd-3.17.tar.gz) = 68e0dbecfb5831997f8b3d6ba48aed812eb465d8c0089420ab68f9ce4d85e77a -SIZE (gpsd-3.17.tar.gz) = 8755304 +TIMESTAMP = 1581144632 +SHA256 (gpsd-3.20.tar.gz) = 172a7805068eacb815a3c5225436fcb0be46e7e49a5001a94034eac43df85e50 +SIZE (gpsd-3.20.tar.gz) = 3600835 Index: head/astro/gpsd/files/patch-SConstruct =================================================================== --- head/astro/gpsd/files/patch-SConstruct (nonexistent) +++ head/astro/gpsd/files/patch-SConstruct (revision 528219) @@ -0,0 +1,56 @@ +--- SConstruct.orig 2020-02-08 06:51:40 UTC ++++ SConstruct +@@ -1267,32 +1267,32 @@ else: + config.env['aiogps'] = True + + # check for pyserial +- try: +- imp.find_module('serial') +- announce("Python module serial (pyserial) found.") +- except ImportError: +- # no pycairo, don't build xgps, xgpsspeed +- announce("WARNING: Python module serial (pyserial) not found.") +- config.env['xgps'] = False ++ #try: ++ # imp.find_module('serial') ++ # announce("Python module serial (pyserial) found.") ++ #except ImportError: ++ # # no pycairo, don't build xgps, xgpsspeed ++ # announce("WARNING: Python module serial (pyserial) not found.") ++ # config.env['xgps'] = False + + if config.env['xgps']: + # check for pycairo +- try: +- imp.find_module('cairo') +- announce("Python module cairo (pycairo) found.") +- except ImportError: +- # no pycairo, don't build xgps, xgpsspeed +- announce("WARNING: Python module cairo (pycairo) not found.") +- config.env['xgps'] = False ++ #try: ++ # imp.find_module('cairo') ++ # announce("Python module cairo (pycairo) found.") ++ #except ImportError: ++ # # no pycairo, don't build xgps, xgpsspeed ++ # announce("WARNING: Python module cairo (pycairo) not found.") ++ # config.env['xgps'] = False + + # check for pygobject +- try: +- imp.find_module('gi') +- announce("Python module gi (pygobject) found.") +- except ImportError: +- # no pygobject, don't build xgps, xgpsspeed +- announce("WARNING: Python module gi (pygobject) not found.") +- config.env['xgps'] = False ++ #try: ++ # imp.find_module('gi') ++ # announce("Python module gi (pygobject) found.") ++ #except ImportError: ++ # # no pygobject, don't build xgps, xgpsspeed ++ # announce("WARNING: Python module gi (pygobject) not found.") ++ # config.env['xgps'] = False + + if not config.CheckPKG('gtk+-3.0'): + config.env['xgps'] = False Property changes on: head/astro/gpsd/files/patch-SConstruct ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/astro/gpsd/pkg-plist =================================================================== --- head/astro/gpsd/pkg-plist (revision 528218) +++ head/astro/gpsd/pkg-plist (revision 528219) @@ -1,65 +1,62 @@ %%NCURSES%%bin/cgps bin/gegps bin/gps2udp bin/gpscat bin/gpsctl bin/gpsdecode bin/gpsfake %%NCURSES%%bin/gpsmon bin/gpspipe bin/gpsprof +bin/gpsrinex bin/gpxlogger bin/lcdgps %%PPS%%bin/ntpshmmon +bin/ubxtool %%X11%%bin/xgps %%X11%%bin/xgpsspeed +bin/zerk include/gps.h include/libgpsmm.h lib/libgps.so -lib/libgps.so.23 -lib/libgps.so.23.0.0 +lib/libgps.so.25 +lib/libgps.so.25.0.0 man/man1/cgps.1.gz man/man1/gegps.1.gz man/man1/gps.1.gz man/man1/gps2udp.1.gz man/man1/gpscat.1.gz man/man1/gpsctl.1.gz man/man1/gpsdecode.1.gz man/man1/gpsfake.1.gz man/man1/gpsmon.1.gz man/man1/gpspipe.1.gz man/man1/gpsprof.1.gz +man/man1/gpsrinex.1.gz man/man1/gpxlogger.1.gz man/man1/lcdgps.1.gz man/man1/ntpshmmon.1.gz +man/man1/ubxtool.1.gz +man/man1/zerk.1.gz %%X11%%man/man1/xgps.1.gz %%X11%%man/man1/xgpsspeed.1.gz man/man3/libQgpsmm.3.gz man/man3/libgps.3.gz man/man3/libgpsmm.3.gz man/man5/gpsd_json.5.gz man/man5/srec.5.gz man/man8/gpsd.8.gz man/man8/gpsdctl.8.gz man/man8/gpsinit.8.gz %%PYTHON_SITELIBDIR%%/%%PYTHON_EGGINFO%% %%PYTHON_SITELIBDIR%%/gps/__init__.py -%%PYTHON_SITELIBDIR%%/gps/__init__.pyc -%%PYTHON_SITELIBDIR%%/gps/__init__.pyo %%PYTHON_SITELIBDIR%%/gps/client.py -%%PYTHON_SITELIBDIR%%/gps/client.pyc -%%PYTHON_SITELIBDIR%%/gps/client.pyo -%%PYTHON_SITELIBDIR%%/gps/clienthelpers.so +%%PYTHON_SITELIBDIR%%/gps/clienthelpers.py %%PYTHON_SITELIBDIR%%/gps/fake.py -%%PYTHON_SITELIBDIR%%/gps/fake.pyc -%%PYTHON_SITELIBDIR%%/gps/fake.pyo %%PYTHON_SITELIBDIR%%/gps/gps.py -%%PYTHON_SITELIBDIR%%/gps/gps.pyc -%%PYTHON_SITELIBDIR%%/gps/gps.pyo %%PYTHON_SITELIBDIR%%/gps/misc.py -%%PYTHON_SITELIBDIR%%/gps/misc.pyc -%%PYTHON_SITELIBDIR%%/gps/misc.pyo %%PYTHON_SITELIBDIR%%/gps/packet.so +%%PYTHON_SITELIBDIR%%/gps/watch_options.py libdata/pkgconfig/libgps.pc sbin/gpsd sbin/gpsdctl Index: head/astro/gpxloggerd/Makefile =================================================================== --- head/astro/gpxloggerd/Makefile (revision 528218) +++ head/astro/gpxloggerd/Makefile (revision 528219) @@ -1,26 +1,27 @@ # Created by: Gleb Smirnoff # $FreeBSD$ PORTNAME= gpxloggerd PORTVERSION= 0.2.3 +PORTREVISION= 1 CATEGORIES= astro USE_GITHUB= yes GH_ACCOUNT= glebius MAINTAINER= glebius@FreeBSD.org COMMENT= Daemon that connects to the GPSD daemon and logs GPS traces LIB_DEPENDS= libgps.so:astro/gpsd USE_RC_SUBR= ${PORTNAME} PLIST_FILES= sbin/${PORTNAME} \ man/man8/${PORTNAME}.8.gz LDFLAGS+= -lm MAKE_ARGS= NO_WERROR=yes do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8/ .include Index: head/astro/gpxloggerd/files/patch-gpxloggerd.c =================================================================== --- head/astro/gpxloggerd/files/patch-gpxloggerd.c (nonexistent) +++ head/astro/gpxloggerd/files/patch-gpxloggerd.c (revision 528219) @@ -0,0 +1,48 @@ +--- gpxloggerd.c.orig 2020-03-05 17:50:39 UTC ++++ gpxloggerd.c +@@ -114,7 +114,9 @@ print_fix(struct gps_data_t *gpsdata) + fix->latitude, fix->longitude); + if (!isnan(fix->altitude)) + fprintf(logfile, " %.f\n", fix->altitude); +- fprintf(logfile, " \n", unix_to_iso8601(fix->time, ++// See https://gitlab.com/gpsd/gpsd/-/blob/master/gps.h#L70 ++// Replaced by now_to_iso8601 ++ fprintf(logfile, " \n", now_to_iso8601( + tbuf, sizeof(tbuf))); + if (verbose) { + switch (fix->mode) { +@@ -171,6 +173,11 @@ opennewfile(char *template) + print_gpx_header(); + } + ++static double timespec_to_double(struct timespec ts) ++{ ++ return ((double)(ts.tv_sec) + ((double)(ts.tv_nsec) / 1e9)); ++} ++ + static void + process(struct gps_data_t *gpsdata) + { +@@ -189,10 +196,10 @@ process(struct gps_data_t *gpsdata) + return; + + move = 0; /* stupid old gcc */ +- t = (time_t )floor(fix->time); +- ot = (time_t )floor(ofix.time); ++ t = (time_t )floor(timespec_to_double(fix->time)); ++ ot = (time_t )floor(timespec_to_double(ofix.time)); + if (minbearing) +- pt = (time_t )floor(pfix.time); ++ pt = (time_t )floor(timespec_to_double(pfix.time)); + else + pt = ot; + +@@ -521,7 +528,7 @@ reopen: + if (FD_ISSET(signal_fd[0], &fds)) + process_signal(); + if (FD_ISSET(gpsdata.gps_fd, &fds)) { +- n = gps_read(&gpsdata); ++ n = gps_read(&gpsdata, NULL, 0); + if (n < 0) { + syslog(LOG_ERR, "gps_read(): %m, reopening"); + gps_close(&gpsdata); Property changes on: head/astro/gpxloggerd/files/patch-gpxloggerd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/direwolf/Makefile =================================================================== --- head/comms/direwolf/Makefile (revision 528218) +++ head/comms/direwolf/Makefile (revision 528219) @@ -1,36 +1,37 @@ # $FreeBSD$ PORTNAME= direwolf DISTVERSION= 1.5 +PORTREVISION= 1 CATEGORIES= comms hamradio MAINTAINER= hamradio@FreeBSD.org COMMENT= Software "soundcard" modem/TNC and APRS encoder/decoder LICENSE= GPLv2 LIB_DEPENDS= libasound.so:audio/alsa-lib\ libhamlib.so:comms/hamlib \ libgps.so:astro/gpsd USES= gmake python shebangfix USE_GITHUB= yes GH_ACCOUNT= wb2osz GH_TAGNAME= 1.5 SHEBANG_FILES= telemetry-toolkit/telem-bits.pl telemetry-toolkit/telem-parm.pl\ telemetry-toolkit/telem-eqns.pl dwespeak.sh \ telemetry-toolkit/telem-volts.py telemetry-toolkit/telem-data.pl \ telemetry-toolkit/telem-data91.pl \ telemetry-toolkit/telem-unit.pl telemetry-toolkit/telem-balloon.pl\ dw-start.sh OPTIONS_DEFINE= DOCS EXAMPLES MAKEFILE= Makefile.linux post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|'\ -e 's|/var/tmp|/var/log|' ${WRKSRC}/dw-start.sh .include Index: head/comms/direwolf/files/patch-dwgpsd.c =================================================================== --- head/comms/direwolf/files/patch-dwgpsd.c (nonexistent) +++ head/comms/direwolf/files/patch-dwgpsd.c (revision 528219) @@ -0,0 +1,34 @@ +--- dwgpsd.c.orig 2020-03-05 16:59:08 UTC ++++ dwgpsd.c +@@ -57,7 +57,10 @@ + // Debian bug report: direwolf (1.2-1) FTBFS with libgps22 as part of the gpsd transition (#803605): + // dwgps.c claims to only support GPSD_API_MAJOR_VERSION 5, but also builds successfully with + // GPSD_API_MAJOR_VERSION 6 provided by libgps22 when the attached patch is applied. +-#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 6 ++ ++// Also compatible with API 9 with conditional compilation later. ++ ++#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 9 + #error libgps API version might be incompatible. + #endif + +@@ -257,7 +260,19 @@ static void * read_gpsd_thread (void *arg) + /* Fall thru to read which should get error and bail out. */ + } + ++// https://github.com/wb2osz/direwolf/issues/196 ++// https://bugzilla.redhat.com/show_bug.cgi?id=1674812 ++ ++// gps_read has two new parameters in API version 7. ++// It looks like this could be used to obtain the JSON message from the daemon. ++// Specify NULL, instead of message buffer space, if this is not desired. ++// Why couldn't they add a new function instead of introducing incompatibility? ++ ++#if GPSD_API_MAJOR_VERSION >= 7 ++ if (gps_read (&gpsdata, NULL, 0) == -1) { ++#else + if (gps_read (&gpsdata) == -1) { ++#endif + text_color_set(DW_COLOR_ERROR); + + dw_printf ("------------------------------------------\n"); Property changes on: head/comms/direwolf/files/patch-dwgpsd.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property