All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 4/5] gpsd: add optional support for KPPS interface
Date: Thu, 28 Aug 2014 18:25:30 +0200	[thread overview]
Message-ID: <20140828162530.GI16066@jama> (raw)
In-Reply-To: <53FF4F6B.9030203@pabigot.com>

[-- Attachment #1: Type: text/plain, Size: 4059 bytes --]

On Thu, Aug 28, 2014 at 10:48:59AM -0500, Peter A. Bigot wrote:
> On 08/28/2014 10:23 AM, Peter A. Bigot wrote:
> > On 08/28/2014 09:32 AM, Martin Jansa wrote:
> >> On Thu, Aug 28, 2014 at 08:05:54AM -0500, Peter A. Bigot wrote:
> >>> On 08/28/2014 07:53 AM, Burton, Ross wrote:
> >>>> On 28 August 2014 13:06, Peter A. Bigot <pab@pabigot.com> wrote:
> >>>>> +PACKAGECONFIG ??= ""
> >>>>> +PACKAGECONFIG[kpps] = ",,pps-tools"
> >>>> That's not actually deterministic - if pps-tools is installed but the
> >>>> packageconfig option is disabled then gpsd will still enable the
> >>>> support.
> >>> Yeah, I'm aware of that.  It's also not something that can be
> >>> controlled, since gpsd's author doesn't believe in configuration 
> >>> options
> >>> to enable features: every capability is enabled or disabled by
> >>> inspecting the environment at compile-time.
> >>>
> >>> Although ntp does support some explicit enable/disable flags, it too
> >>> fails to provide a way to say "Pay no attention to that PPS header, it
> >>> isn't really there."
> >> Then we need to patch their configure.
> >>
> >>> For this situation I don't think there's a big issue.  The 
> >>> PACKAGECONFIG
> >>> setting ensures that the header will be available if the feature is
> >>> desired.  If it happens to be present but PPS support isn't explicitly
> >>> requested, there's no failure in either build or runtime: it's still
> >>> gated by runtime checks for PPS sources and the option being enabled in
> >>> the Linux kernel.  (There are no runtime libraries that need to be
> >>> installed to use KPPS.)
> >>>
> >>> Is this going to be a problem with the patch being accepted?
> >> Yes
> >>
> >> people can be used to have KPPS support enabled by "accident" e.g.
> >> because they are building ntp with KPPS support and pps-tools is almost
> >> always built before gpsd..and then once it's built in different order 
> >> and end-user will be
> >> surprised by lost KPPS support from gpsd.
> >
> > The number of people who will use KPPS is incredibly small, and 
> > nobody's going to use it unintentionally as it requires on-target 
> > configuration.  Those who need it, though, have no recourse other than 
> > to build ntpd or gpsd outside of OE if patches like these aren't present.
> >
> > I understand the reasoning and agree in theory that absolute 
> > determinism would be ideal, but believe hacking the ntp and gpsd 
> > configuration infrastructure to explicitly disable use of a detected 
> > PPS header would present a bigger risk and long-term cost to stability 
> > and maintainability in OE than the possibility you've identified.  So 
> > that solution isn't something I'm going to take on.
> >
> > An alternative is to add kpps to the default PACKAGECONFIG, so the 
> > required header is normally available.  The cost of the feature's 
> > presence in the packages is nearly zero (a slight increase in daemon 
> > code size, and an extra check when the process starts.) Would that be 
> > acceptable?
> >
> > If we can't come to an agreement, then the only patch that's really 
> > important is the first one which restores the ability to diagnose 
> > misconfigured NTP systems.  Please let me know whether I should mark 
> > the others as withdrawn in patchwork.
> 
> If it matters, note that withdrawing the patches won't change the status 
> quo: ntpd and gpsd are feature-sensitive to the presence of 
> sys/timepps.h in the build environment, e.g. if pps-tools is added by 
> another layer.  The only difference is that without the patches there's 
> no clue in their recipes that this could happen and no way to provide 
> determinism in the want-kpps situation.

That's why I'm building world builds with many builds (to possibly
find as many issues like this as possible).

If it's in some private layer we cannot do much about it, but we can
prevent this happening in meta-oe itself by careful review :).

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2014-08-28 16:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 12:06 [meta-oe][PATCH 0/5] ntpd and gpsd updates for high-precision timing Peter A. Bigot
2014-08-28 12:06 ` [meta-oe][PATCH 1/5] ntp: re-enable server debugging and control by PACKAGECONFIG Peter A. Bigot
2014-08-28 12:06 ` [meta-oe][PATCH 2/5] gpsd: update to 3.10 Peter A. Bigot
2014-08-28 12:06 ` [meta-oe][PATCH 3/5] pps-tools: add recipe Peter A. Bigot
2014-08-28 12:06 ` [meta-oe][PATCH 4/5] gpsd: add optional support for KPPS interface Peter A. Bigot
2014-08-28 12:53   ` Burton, Ross
2014-08-28 13:05     ` Peter A. Bigot
2014-08-28 14:32       ` Martin Jansa
2014-08-28 15:23         ` Peter A. Bigot
2014-08-28 15:47           ` Martin Jansa
2014-08-28 15:51             ` Peter A. Bigot
2014-08-28 15:48           ` Peter A. Bigot
2014-08-28 16:25             ` Martin Jansa [this message]
2014-08-28 14:29   ` Martin Jansa
2014-08-28 17:42   ` [meta-oe][PATCH v2] gpsd: add deterministic " Peter A. Bigot
2014-08-28 12:06 ` [meta-oe][PATCH 5/5] ntp: add optional " Peter A. Bigot
2014-08-28 17:43   ` [meta-networking][PATCH v2] ntp: add deterministic " Peter A. Bigot
2014-09-29  7:50     ` Rongqing Li
2014-09-29 10:19       ` Peter A. Bigot

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=20140828162530.GI16066@jama \
    --to=martin.jansa@gmail.com \
    --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.