Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Issue 6025011: Simplify gpsd ebuild and use the latest available version. (Closed)

Created:
9 years, 11 months ago by vb
Modified:
9 years, 6 months ago
Reviewers:
anush, rochberg
CC:
chromium-os-reviews_chromium.org, msb+crosoverlay_chromium.org, adlr+crosoverlay_chromium.org, Elly Fong-Jones, zel, joth, Ryan, anush
Visibility:
Public.

Description

Simplify gpsd ebuild and use the latest available version. This change modifies gpsd ebuild inherited from gentoo to match the ChromeOS environment. The link is being renamed from gpsd-2.38-r1.ebuild to gpsd-2.95-r2.ebuild to ensure that the latest available version is downloaded. All various GPS sensor protocols compiled in by default are being disabled, the only protocol left in is "Generic NMEA" which is what the Mario hardware complies with. The ebuild src_unpack() function is modifying the setup.py script to eliminate the run time python dependency. The startup file gpsd.conf is modified to comply with the upstart init daemon requirements and to wait for the GPS device to be created and to enable the GPS before starting gpsd. Change-Id: Ie946c850ac7df14a92f6838e65aa7e05ec4119b4 BUG=chromium-os:467 TEST=manual 1. build and install the new image 2. reboot the ChromeOS device 3. being close to open sky run `cgps' from the command line 4. observe dynamic output showing current GPS satellite data and results of the fix. (the data should be flowing resulting in constant table updates, at least four satellites should be visible and the fix should be acquired within a few minutes or much less depending on previous GPS device activity. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=3bd687b

Patch Set 1 : Simplify gpsd ebuild and use the latest available version. #

Total comments: 13

Patch Set 2 : Address review comments. #

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -208 lines) Patch
M profiles/targets/chromeos/package.keywords View 1 1 chunk +1 line, -1 line 0 comments Download
M sci-geosciences/gpsd/files/gpsd.conf View 1 1 chunk +25 lines, -21 lines 0 comments Download
M sci-geosciences/gpsd/gpsd-2.38.ebuild View 1 2 1 chunk +0 lines, -185 lines 0 comments Download
D sci-geosciences/gpsd/gpsd-2.38-r1.ebuild View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A sci-geosciences/gpsd/gpsd-2.95.ebuild View 1 2 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
vb
David, guys, please have a look. This is the first cut, admittedly rough around the ...
9 years, 11 months ago (2011-01-07 00:35:54 UTC) #1
rochberg
I'm fine with the gpsd changes modulo my comments, but I really don't know enough ...
9 years, 11 months ago (2011-01-07 18:45:24 UTC) #2
vb
While it's being rebuilt for retesting, I will try to get some build guy to ...
9 years, 11 months ago (2011-01-07 21:39:11 UTC) #3
anush
LGTM w/nit. You can remove the symlink. The symlinks are usually dependency only ebuild (like ...
9 years, 11 months ago (2011-01-08 00:14:31 UTC) #4
vb
On 2011/01/08 00:14:31, anush wrote: > LGTM w/nit. > > You can remove the symlink. ...
9 years, 11 months ago (2011-01-11 20:50:09 UTC) #5
rochberg
I think we should consider naming the ebuild differently because we've changed it so much, ...
9 years, 11 months ago (2011-01-12 00:44:53 UTC) #6
vb
9 years, 11 months ago (2011-01-12 01:00:04 UTC) #7
On 2011/01/12 00:44:53, rochberg wrote:
> I think we should consider naming the ebuild differently because we've changed
> it so much, but that can be another CL
>

It kind of has to be called gpsd-2.95, as the name of the source
archive is derived from ebuild file name.

Maybe portage allows to override this default association, but I
wouldn't worry too much, especially since we are not planning to push
this back to gentoo.

> LGTM, but please consider the logger change
>

I am kind of reluctant to do it for yet another reason: if the init
script does not run due to any problem, there would be no /tmp/gpsd.log file
created, which gives a clear indication that the 
init script did not run. If the file is kept in /var - it becomes more
difficult to tell if the contents of the file are relevant to the most
recent startup.

I'll leave it as is for now, I can see more changes to this file
coming soon, we can revisit this issue later.


>
http://codereview.chromium.org/6025011/diff/24002/sci-geosciences/gpsd/files/...
> File sci-geosciences/gpsd/files/gpsd.conf (right):
> 
>
http://codereview.chromium.org/6025011/diff/24002/sci-geosciences/gpsd/files/...
> sci-geosciences/gpsd/files/gpsd.conf:11: GPSD_LOG='/tmp/gpsd.log'
> On 2011/01/07 21:39:11, vb wrote:
> > On 2011/01/07 18:45:24, rochberg wrote:
> > > If you put this in /var/log, then the log-capture scripts will pick it up.
> > 
> > The only thing which goes into this file are errors reported when the
startup
> > script is running (if any), this is more a means of debugging in case
> something
> > changes than a good source of day-to-day debug information, I think /tmp is
a
> > better place for it.
> 
> Ahhh--I understand.   Please consider using logger instead, but if that
doesn't
> make sense, that's fine

Powered by Google App Engine
This is Rietveld 408576698