Skip to contentSkip to conversation

ntp : Add cap to default PACKAGECONFIG options.

PATCH Applied Philip Balister 2 participants 2 messages Apr 23, 2014 – Apr 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ntp : Add cap to default PACKAGECONFIG options.

If ntp is built without libcap, it refuses to start with the following message:

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>] ]...

By adding cap to the PACKAGECONFIG the default runs. In the future, someone could add an option for using clockctl.

---
 meta-networking/recipes-support/ntp/ntp.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/ntp/ntp.inc +1 -1
index 9c3e0d1..9861fd8 100644
@@ -36,7 +36,7 @@ USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \
                        --shell /bin/false --user-group ntp"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "cap"
 PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \
                           --with-openssl-incdir=${STAGING_INCDIR} \
                           --with-crypto, \
Signature · 1 line
1.9.0
#1 lore raw

Merged, thanks.
-J.

Quoted 32 lines · [[oe] [meta-networking][PATCHv2] ntp : Add cap to default PACKAGECONFIG…

If ntp is built without libcap, it refuses to start with the following message:

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>] ]...

By adding cap to the PACKAGECONFIG the default runs. In the future, someone could add an option for using clockctl.

---
 meta-networking/recipes-support/ntp/ntp.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/ntp/ntp.inc +1 -1
index 9c3e0d1..9861fd8 100644
@@ -36,7 +36,7 @@ USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \
                        --shell /bin/false --user-group ntp"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "cap"
 PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \
                           --with-openssl-incdir=${STAGING_INCDIR} \
                           --with-crypto, \
Signature · 1 line
1.9.0
Signature · 2 lines
-Joe MacDonald.
:wq