lp:gpsd

Created by VCS imports on 2010-10-17 and last modified on 2019-03-22
Get this branch:
bzr branch lp:gpsd

Related bugs

Related blueprints

Branch information

Owner:
VCS imports
Project:
Gpsd
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.savannah.nongnu.org/gpsd.git.

The next import is scheduled to run in 1 hour.

Last successful import was 4 hours ago.

Import started 4 hours ago on izar and finished 4 hours ago taking 20 seconds — see the log
Import started 10 hours ago on alnitak and finished 10 hours ago taking 25 seconds — see the log
Import started 16 hours ago on izar and finished 16 hours ago taking 20 seconds — see the log
Import started 22 hours ago on alnitak and finished 22 hours ago taking 20 seconds — see the log
Import started on 2019-03-22 on izar and finished on 2019-03-22 taking 20 seconds — see the log
Import started on 2019-03-21 on izar and finished on 2019-03-21 taking 20 seconds — see the log
Import started on 2019-03-21 on alnitak and finished on 2019-03-21 taking 30 seconds — see the log
Import started on 2019-03-21 on alnitak and finished on 2019-03-21 taking 25 seconds — see the log
Import started on 2019-03-21 on alnitak and finished on 2019-03-21 taking 25 seconds — see the log
Import started on 2019-03-20 on alnitak and finished on 2019-03-20 taking 25 seconds — see the log

Recent revisions

13500. By Fred Wright <email address hidden> on 2019-03-22

os_compat: OSX daemon() warning fix.

OSX considers the daemon() call deprecated. This is mainly because
real OSX daemons are expected to run as launchd children, but since
some programs here daemonize for convenience, and since
self-daemonization is sometimes useful for testing, we can't really
get rid of it. Previous work consolidated daemon() calls into
os_compat, reducing the number of warnings, and this change gets rid
of them altogether.

There doesn't seem to be any easy way to avoid the warnings except
by avoiding the normal declaration of daemon(), which is what we
do here by duplicating it locally.

If daemon() ever actually disappears, it could be reintroduced
via the usual double-fork approach.

TESTED:
Ran "build-all check" as well as testing daemonization on a Mac Pro
10.9 and 10.14, MacBook Pro 10.9, PowerBook 10.5, and VMs for OSX
10.5-10.13, Ubuntu 14.04, CentOS 7, Fedora 25, FreeBSD 10.3, OpenBSD
5.6 (64- and 32-bit), and NetBSD 6.1.5.

13499. By Fred Wright <email address hidden> on 2019-03-22

os_compat: Fix some comments.

13498. By Fred Wright <email address hidden> on 2019-03-22

time-regress: Add test for NaN case.

This was punted when fixing the NaN case, due to the failure to notice
that a NaN constant was available with unexpected capitalization. Now
the test exists.

TESTED:
The new test fails with an intentionally incorrect expected value, and
passes with the correct expectation.

13497. By Gary E. Miller <email address hidden> on 2019-03-21

pseudonmea: remove bad sats from $GPGSV output.

13496. By Gary E. Miller <email address hidden> on 2019-03-21

libgps_json.c: Add missing epe. This was breaking cgps.

microjson still aborts on unknown attributes...

13495. By Fred Wright <email address hidden> on 2019-03-20

gegps: Fix typos

The manpage text referred to 'gpsd' where it meant 'gegps'.

The program's stopped message said 'gegpsd'.

TESTED:
Manpage and stopped message text are now correct.

13494. By Fred Wright <email address hidden> on 2019-03-20

lcdgps: Fix typo in -V.

TESTED:
Now shows correct program name in -V output.

13493. By Fred Wright <email address hidden> on 2019-03-20

gpsrinex: Fix some compiler warnings.

There were two issues here:

1) The initializer for the obs_cnt array needs two levels of brace,
since it's an array of structs.

2) The obs_cnts array was incorrectly typed as having obs_codes enums
as its *values*, when they're actually only used for its index. This
resulted in a warning about the apparently pointless comparison
against 99999.

TESTED:
Ran "build-all check" on OSX 10.9, 10.13, and 10.5 (PPC), as well as
Ubuntu 14.04.

13492. By Fred Wright <email address hidden> on 2019-03-20

Fix shared library installs on OSX.

Shared libraries on OSX need to have their IDs set to their full paths
in order to get the proper paths into executables. Ideally, SCons
would take care of this, but doesn't. It's necessary to use the OSX
install_name_tool on an installed library to fix that.

This adds code to do that, verifying that install_name_tool actually
exists, and falling back to installing without it (the former
behavior) otherwise. However, the CheckProg function didn't exist in
some old versions of SCons, so if it's missing (on OSX), the code just
assumes that the tool is present and hopes for the best. The version
of SCons provided by MacPorts is known to have CheckProg.

TESTED:
Ran installs on OSX 10.9, 10.13, and 10.5 (PPC), as well as Ubuntu
14.04. Verified that the tool is used and has the intended effect
when present on OSX. Verified that the install works without using it
on OSX without it, as well as Linux without it, including when a dummy
version is present on Linux. Did *not* test with an old SCons.

13491. By Fred Wright <email address hidden> on 2019-03-20

Fix fencepost errors in GPS epoch (mainly comments).

The definition of GPS_EPOCH in gpsd.h is correct, but the comment
specified the incorrect corresponding date, which is 06-Jan-1980, not
06-Jan-1981, which isn't even a Sunday.

The century hack in driver_nmea0183.c establishes a 100-year window
for interpreting two-digit years. For now, the range 1980-2079 is
reasonable, given that the GPS epoch is 06-Jan-1980, and the mention
of wrapping "at" 2080 is consistent with this, but the comment
incorrectly placed the GPS epoch in 1981 (perhaps due to believing the
wrong comment in gpsd.h), and the code was written to wrap *after*
2080, rather than *at* 2080. This would place the window at
1981-2080, which would screw up 1980 (admittedly an unlikely case).

This is mostly about not misleading people reading the code than
actual real-life trouble.

TESTED:
Existing tests pass. A test case for a year of "80" would be needed
to actually verify the fix, though.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.