All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Sokolovsky <pmiscml@gmail.com>
To: Matthias Hentges <oe@hentges.net>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [oe-commits] org.oe.dev gpsd: Provide working default configuration and init-script for fic-gta01. This makes gpsd device-specific for gta01, please check the feeds.
Date: Tue, 1 Jan 2008 22:48:03 +0200	[thread overview]
Message-ID: <911770997.20080101224803@gmail.com> (raw)
In-Reply-To: <1199218165.8062.77.camel@localhost.localdomain>

Hello Matthias,

Tuesday, January 1, 2008, 10:09:25 PM, you wrote:

[]

>>   The issue here that /etc/init.d/gpsd tries to init both gpsd and
>> gps hardware. Why not separate them. Say, have /etc/init.d/gllin with
>> that snippet. 

> Difficult. /e/i/gllin should, if at all, be provided by the gllin
> package. It is a hand-crafted ipkg containing a binary-only driver. It
> will be an interesting task to find someone at OM willing to change it.
> Maybe if I annoy mickey enough... ;)

  Well, I don't call to create a real package for gllin, it would
still contain just that notice - "go url, clickthru, download". Well,
that clickthru license and download could be moved into such package,
but that still rather be done by core OM people, keeping a connection
with FIC's legal dept ;-).

>> But wait, there're different GPS hardware exists, why
>> don't we make it polymorphic? So, we'd have /etc/init.d/gps-hardware,
>> and that's for should would be device-specific. Then, /etc/init.d/gpsd
>> could do sth like:
>> 
>> [ -x /etc/init.d/gps-hardware ] && /etc/init.d/gps-hardware start
>> 
>> to make sure that it ups entire GPS system.
>> 
>>   How does that sound?

> That sounds like a very good idea, I like the generic approach better
> than a hard-coded init-script. I will try to get the gllin ipk changed,
> but that may take a few days.

  Great! I think, we should do similar for BT. Note that there's
currently no flexible way to deal with BT *hardware* in OE. blue-probe
just records static external properties of BT hardware. But how that
HW is inited? The current way us to have BT drivers kernel-builtin, or
auto-loaded per machine config. That has its issues - memory is taken
regardless if BT is actually used, plus for some devices that may
course BT HW to be always active, draining power.

> What do you think about installing /etc/default/gpsd via
> update-alternatives so a driver could install proper defaults w/o
> resorting to a -conf at all?

> Not that many drivers are going to do this. Neo1973 is probably a very
> special case in this regard.

  Well, there're other devices with GPS builtin (few HTC phones),
that's why I raised the question. Plus, we could have gpsd-conf-usb
and gpsd-conf-bt. Taking the above, update-alternatives management
would be quite helpful. But how they are structured package wise is up to
different alternatives, e.g.:

1. One big package with few conf's inside, managed by update-alt.
2. pkg and pkf-conf, with the latter containing confs, managed by
update-alt.
3. Bunch of conf packages, managed by update-alt.

   I'd err on fine-grained packaging, but I understand that it makes
no sense to put every 20-byte file into own package. I'd still prefer
2, as with it, updating configs does *not* require: 1) devels to
rebuild whole source; 2) release managers to upload more bytes to
feeds; 3) users download those bytes, times many.

  Anyway, I don't have strong opinion here. All 3 choices are valid, as
called by specific case. As long as we agree on the general plan to
deal with this, it can be changed to another method if practical need
arises.



-- 
Best regards,
 Paul                            mailto:pmiscml@gmail.com




  reply	other threads:[~2008-01-01 20:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1J9k05-00006v-OV@linuxtogo.org>
2008-01-01 17:03 ` [oe-commits] org.oe.dev gpsd: Provide working default configuration and init-script for fic-gta01. This makes gpsd device-specific for gta01, please check the feeds Paul Sokolovsky
2008-01-01 18:49   ` Matthias Hentges
2008-01-01 19:42     ` Paul Sokolovsky
2008-01-01 20:09       ` Matthias Hentges
2008-01-01 20:48         ` Paul Sokolovsky [this message]
2008-01-01 17:12 ` Koen Kooi
2008-01-01 18:47   ` Matthias Hentges
2008-01-01 20:23     ` Koen Kooi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=911770997.20080101224803@gmail.com \
    --to=pmiscml@gmail.com \
    --cc=oe@hentges.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.