All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembeded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: ntpd fails to start if libcap not installed
Date: Sat, 29 Mar 2014 17:07:30 -0700	[thread overview]
Message-ID: <CAMKF1sqgL7ZH+c8JLdw6MjQCj0CiRVV3hNqOxx4of5Jota4Lgg@mail.gmail.com> (raw)
In-Reply-To: <1487041.bBRm1EH4qA@localhost.localdomain>

On Fri, Mar 28, 2014 at 11:04 AM, Diego <diego.ml@zoho.com> wrote:
> In data venerdì 28 marzo 2014 10:55:28, Philip Balister ha scritto:
>> On 03/28/2014 06:40 AM, Diego wrote:
>> > Hi openembedders!
>> >
>> > I've noticed that if ntp is built without libcap, ntpd fails to start from
>> > the initscript:
>> > /etc/init.d/ntpd
>> >
>> > giving the error:
>> > Starting ntpd: /usr/sbin/ntpd: The ``user'' option has been disabled --
>> > built without --enable-clockctl or --enable-linuxcaps
>> > ntpd - NTP daemon program - Ver. 4.2.6p5
>> > USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
>> >
>> > That is caused by the line:
>> > start-stop-daemon --start -x /usr/sbin/ntpd -- -u ntp:ntp -p
>> > /var/run/ntp.pid "$@"
>> >
>> > and in particular by the option "-u ntp:ntp" which is not supported which
>> > is not supported if ntp is build without --enable-clockctl.
>> >
>> > Is anybody else experiencing this problem?
>>
>> Oddly enough, I was about to report the symptom today also :)
>>
>> Any ntp experts know what the proper solution is? I'd be glad to propose
>> a patch.
>>
>
> Hi Philip,
>
> I'd like to rephrase better my statement, as I put two errors in it:
> The problem is caused by the option "-u ntp:ntp" which is not supported if ntp
> is build without "--enable-linuxcaps".
>
> As far as the manual goes, the "--enable-clockctl" is a build option for
> NetBSD:
> http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html
>
> Removing the "-u ntp:ntp" makes the initscript work, but I don't know if
> shipping different ntpd initscripts based on pkgconfig is the correct thing to
> do. Any expert opinion?
>

remove the cap PKGCONFIG its redundant and everything in recipe wants
it enabled, it was  added just for having consistent builds otherwise
it was autodetected by autotools and if you had libpcap staged then it
was enabled automatically otherwisie not.

so you can either change PACKAGECONFIG ??= "" to PACKAGECONFIG_append = " cap"

or remove this completely and add the dependencies on libcap unconditionally.


  reply	other threads:[~2014-03-30  0:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28 13:40 ntpd fails to start if libcap not installed Diego
2014-03-28 17:43 ` USB wifi configuration MONDON Daniel
2014-03-31  7:58   ` MONDON Daniel
2014-04-01 13:51     ` MONDON Daniel
2014-04-01 15:47       ` Stephen Arnold
2014-03-28 17:55 ` ntpd fails to start if libcap not installed Philip Balister
2014-03-28 18:04   ` Diego
2014-03-30  0:07     ` Khem Raj [this message]
2014-04-01 16:05       ` Stephen Arnold

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=CAMKF1sqgL7ZH+c8JLdw6MjQCj0CiRVV3hNqOxx4of5Jota4Lgg@mail.gmail.com \
    --to=raj.khem@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.