Commit Graph

38 Commits

Author SHA1 Message Date
Fabrice Fontaine 1b1c28c9a0 utils/gpsd: fix PKG_CPE_ID
gpsd_project:gpsd is a better CPE ID than berlios:gps_daemon as this CPE
ID has the latest CVEs (whereas berlios:gps_daemon only has one CVE from
2004):
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3🅰️gpsd_project:gpsd

Fixes: 299e5b0a9b (treewide: add PKG_CPE_ID for better cvescanner coverage)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-02-04 16:04:07 -08:00
Nick Hainke 234b435725 gpsd: update to 3.25
Release Information:
https://gitlab.com/gpsd/gpsd/-/blob/release-3.25/NEWS?ref_type=tags

Remove the backport that is now contained in the release:
- 003_sconscript-cross-platform-build-support.patch

Latest olsrd version needs this bump.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-06-12 16:01:53 +02:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Sergey V. Lobanov 5a2178a344 gpsd: fix build on macos
gpsd build fails on macos due to using sys.platform in build logic.

This patch allows to redefine target platform to fix the issue.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-25 16:27:13 -08:00
Nick Hainke efaa971914 gpsd: update to 3.23.1
3.23.1: 2021-09-21
  Improve ubx cycle detection.
  Add quirks for Jackson Labs nonstandard NMEA
  Change STATUS_NO_FIX to STATUS_UNK to avoid confusion with fix mode.
  Change STATUS_FIX to STATUS_GPS to avoid confusion with fix mode.
  Change STATUS_DGPS_FIX to STATUS_DGPS to avoid confusion with fix mode.
  Split SOURCE_ACM from SOURCE_USB.  ACM has no speeds.
  Add speeds 1 mbps, 1.152 mbps, 1.5 mbps, and higher.  When libc supports them.
  Improve autobaud.
  Add new u-blox M10 messages.
  Fix u-blox M6, M7 initialization issues.
  Various ubxtool and gpxlogger updates.
  Add mtk3301_speed_switcher()
  No API changes, except for STATUS_* as above.
  No ABI changes.
  Fallback to "python3" if "python" not found.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-10-27 23:16:09 -07:00
Sebastian Kemper ad96acd158 gpsd: bump to 3.23
Contains fix for time jumping back 1024 weeks after 23-October-2021.

Changes:

- Between current version and 3.23 the ABI version changed from 27 to
  29. Add ABI_VERSION variable to package as the jumps occur often.
- 0001-no-distutils-import.patch: removed because current patch doesn't
  work with new release and host python3-distutils is a build
  requirement anyway.
- 0002-ncurses6_detection.patch: fixed the patch. Currently the first
  "elif" checks for "ncurses6-config". But this is only provided by
  ncurses/host package, so the CFLAGS then contain includes that point
  into $(STAGING_DIR_HOSTPKG). The ncurses target package only installs
  "ncursesw6-config" into the staging area. So this is the only tool of
  interest. Also, the hunk moved from SConstruct to SConscript.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-08-23 21:08:37 +02:00
Nick Hainke e5e6aa421d gpsd: use $(AUTORELEASE)
The version is often incremented. Switch to $(AUTORELEASE).

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-06-08 17:21:01 +02:00
Nick Hainke 35b18ddfc4 gpsd: fix compilation with x86 glibc
The sysroot has to point to the toolchain directory. The directory
includes libraries like libm. However, the STAGING_DIR needs to be
added to the CFLAGS.

Fixes #15773

[As suggested by jow]

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-06-04 18:21:43 +02:00
ekathva advaita a86c3666f3 gpsd: Add a new package gpsd-utils to add gpsdctl
gpsd-utils include management tools for GPS daemon - and this commmit
particularly introduces gpsdctl to add/remove device from the GPS
daemon's device list over control socket.

Signed-off-by: ekathva advaita <ekathva@hotmail.com>
2021-05-26 11:59:25 +02:00
Rosen Penev 0162cc3469
gpsd: fix compilation under some setups
Some commit in base broke compilation. Adding sysroot fixes it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-11-30 17:48:22 -08:00
Rosen Penev d916233928
gpsd: update to 3.21
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-23 18:18:36 -07:00
Jeffery To a29905c42b gpsd: Update to 3.20, add/refresh patches
New patches (both for SConstruct):

* Do not import from distutils. Since Python support/modules are not
  built, there is no need to import from distutils. (Importing from
  distutils may prevent the package from being built on systems without
  a full distutils module, e.g. Debian with python3-minimal.)

  I have added back the import in places where it may be helpful to
  have, if scons is run manually.

  Fixes #10993.

* Do not check the size of time_t. The way this is done is to compile
  and run a test program; this fails when cross-compiling[1].

  This doesn't appear to affect any functionality (other than missing a
  compile-time warning that things will fail in 2038 if time_t is too
  small).

[1]: https://gitlab.com/gpsd/gpsd/issues/48

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-17 04:42:46 +08:00
Rosen Penev 92258da65a
gpsd: Fix pkgconfig file for libgps
This ensures it can be found properly by any package that uses pkgconfig
to find libgps.

Nothing in the tree currently does.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-17 15:42:53 -07:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Petr Štetiar c3bacb6631 iotivity,smartsnmpd,gpsd: use scons from feed
commit 0c090fde68b2 ("scons: move host build tool to a proper place")
has moved scons into the packages feeds, so switch to that package
include and adjust build dependency to a new scons home.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-13 07:14:08 +02:00
Russell Senior 90d81afaed gpsd: update to v3.19
From gpsd NEWS:

3.19: 2019-07-01
  Rearrange rawdata_t.  Bump the API because gps_data_t changed.
  Report sequence-ID fields in type 7 and 13 AIS messages.
  Preliminary support for SiRFstar V
  Improve error modeling.
  Update pseudo NMEA to v3.0, with fractional time.
  Improve cycle detection, mostly for NMEA.
  Move epe from gps_data_t to be near its friends in gps_fix_t.
  Preliminary u-blox 9 support.
  Add qErr in gps_data_t to store PPS quantization error.
  Add Android (AOSP) support
  Improved multi gnss and multi signal support.
  NMEA 4.10 multi gnss multi signal support.
  The arguments to "ubxtool -p P" have been expanded and changed.
  New options, -g, -x, -z, added to ubxtool for u-blox 9 support.

3.18.1: 2018-10-19 (Gary E. Miller <gem@rellim.com>)
  Fix some installation issues.
  A few minor updates to ubxtool and driver_ubx.
  Add contrib/skyview2svg

3.18: 2018-10-02 (Gary E. Miller <gem@rellim.com>)
  Add ECEF support to ievermore, italk,Skytraq, SiRF, U-blox drivers.
  Add ECEF support to JSON, cgps and xgps.
  Add GREIS (Javad) driver from Virgin Orbit.
  Add CLI tools zerk and ubxtool to manage JAVAD and u-blox GPS.
  Add gnssid:svid to satellite_t, cgps and xgps.  PRN will die.
  Add gnssid:svid to JSON, cgps and xgps.
  Add stricter version checking (more to todo).
  More and better regression tests.
  Better Python dependency checking, at build time and runtime.
  Fix several buffer issues.
  New polar plots, and improved statistice, in gpsprof.
  gpsd master/slave mode works, first time ever.
  All isnan() changed to !isfinite(), fixing many bugs.
  Client-side Python libraries may automatically reconnect
  Too many other bug fixes and improvements to mention.
  Over 1,000 commits from 46 different commiters.

Signed-off-by: Russell Senior <russell@personaltelco.net>
2019-07-30 00:01:54 -07:00
Rosen Penev c21b34e2cb gpsd: Add missing define
musl needs _BSD_SOURCE defined for strlcat/cpy

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-06 16:42:44 -07:00
Jeffery To bd5a6155b1 gpsd: Update init script
This replaces the use of uci_validate_section() with
uci_load_validate(), which removes the need to declare local variables
for every config option.

This also adds a service_triggers() function and removes some
unnecessary curly brackets.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-02-11 22:17:06 +08:00
Paul Wassi 2eb973c573 utils/gpsd: Update to 3.17
Update to upstream release 3.17 and refresh patch.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2018-04-02 10:28:24 +02:00
Matthias Schiffer 00fce347a5
treewide: fix incorrect *_BUILD_DEPENDS
Build depends refer to source package names, not binary package names.

In many cases, PKG_BUILD_DEPENDS simply duplicated runtime dependencies of
a source package's binary packages; as the corresponding source packages
are implicitly added as bulid dependencies, PKG_BUILD_DEPENDS can simply be
dropped in these cases. In the other cases, *_BUILD_DEPENDS is fixed to
refer to the correct source package name.

Dependency of mysql-server is adjusted from libncursesw to libncurses
(as libncursesw is a virtual package provided by libncurses), so the build
dependency on ncurses is emitted unconditionally.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-09 16:36:02 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
David Thornley 21ee053468 utils/gpsd: Set manbuild=no for build (disable building help/html documentation)
This removes unnecessary dependancy on xmlto which can be problematic on macOS build environment.

Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
2017-05-02 10:38:31 +10:00
p-wassi 4a752d7f6f utils/gpsd: fix init script
Add missing character in init script to match config file

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-03-04 12:06:22 +01:00
Pushpal Sidhu 56870f42ec utils/gpsd: refresh 0002-ncurses6_detection to 3.16
Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
2017-01-22 23:07:33 -08:00
Hannu Nyman 9efeb29155 Merge pull request #3888 from RussellSenior/fix-gpsd-ncurses-detection
gpsd: add ncurses6 support
2017-01-23 08:45:39 +02:00
p-wassi 89036708b5 utils/gpsd: move package to 'Utilities'
Move package 'gpsd' and 'gpsd-clients' to menuconfig's 'Utilities'

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-01-21 10:07:22 +01:00
p-wassi be6f00b269 utils/gpsd: fix dependencies
Remove unneccessary dependencies in gpsd/gpsd-clients/libgps.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-01-21 10:07:22 +01:00
p-wassi 933d93c68a utils/gpsd: switch to procd
Rewrite init script for procd support

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2017-01-21 10:07:16 +01:00
Russell Senior 418d5390b9 gpsd: add ncurses6 support
Signed-off-by: Russell Senior <russell@personaltelco.net>
2017-01-20 10:16:32 -08:00
p-wassi 6aaca067d2 utils/gpsd: remove hotplug script
Remove a hotplug script, which starts/stops gpsd with
attaching/detaching a PL2302 USB-UART device.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2016-12-07 22:00:50 +01:00
p-wassi 5099e731b3 utils/gpsd: (cosmetic) update config
Make the default config look like usual,
i.e.: indentation using tabs, single quotes, booleans 0/1

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2016-12-07 21:58:05 +01:00
p-wassi b06eac5382 utils/gpsd: Update to 3.16
Update gpsd to upstream release 3.16
The local patch is already included upstream, therefore
removed here.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
2016-12-07 21:52:58 +01:00
Pushpal Sidhu 092f108b46 gpsd: Update Maintainer Email
Signed-off-by: Pushpal Sidhu <psidhu.devel@gmail.com>
2016-09-26 08:28:16 -07:00
David Thornley 4ed704b4b4 gpsd: fix cross platform compilation
In SConstruct the set of executables in the devenv variable should be adjusted to use the cross compile toolchain (as opposed to host's executables).
Achieved by setting target option to the toolchain prefix which corrects compilation on macOS.

Note, TARGET_CROSS has to have the hyphen stripped as SConstruct uses the target variable with an implied hyphen (env['target'] + '-' + toolname)

Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
2016-09-26 09:48:46 +10:00
Pushpal Sidhu 0c8cc4aee0 gpsd: don't enable by default
Because this selects ttyUSB0 (bad choice) by default, turn off enabling gps
by default until the user set's the tty manually and will stop gpsd from
stomping on another device's tty.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
2016-04-21 12:03:50 -07:00
Alexander Ryzhov ea3cdae6d2 gpsd: respect LDFLAGS
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-12-29 01:50:27 -05:00
Hauke Mehrtens 127e1c4856 gpsd: do not strip gpsd
The not strip command is not strip=no, but it is nostrip=yes.
This fixes building this gpsd.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-11-19 22:16:25 +01:00
Pushpal Sidhu 8da4be4843 gpsd: initial add to packages
This package is currently in oldpackages. Add here to keep support for gpsd.

From oldpackages, this was bumped from 3.10 -> 3.15 and includes an upstream
patch to allow building with musl.

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
2015-10-19 17:23:46 -07:00