diff options
| -rw-r--r-- | meta-networking/recipes-support/ntp/files/ntp-disable-debugging.patch | 23 | ||||
| -rw-r--r-- | meta-networking/recipes-support/ntp/ntp.inc | 5 |
2 files changed, 3 insertions, 25 deletions
diff --git a/meta-networking/recipes-support/ntp/files/ntp-disable-debugging.patch b/meta-networking/recipes-support/ntp/files/ntp-disable-debugging.patch deleted file mode 100644 index 242276edb0..0000000000 --- a/meta-networking/recipes-support/ntp/files/ntp-disable-debugging.patch +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | set ntp_ok to no if ntp debugging is not enabled. | ||
| 2 | |||
| 3 | Upstream-status: Pending | ||
| 4 | |||
| 5 | There is a problem in configure.ac file that whether or not | ||
| 6 | '--enable-debugging' is specified in configure cmdline, debugging | ||
| 7 | is always enabled. | ||
| 8 | We should disable ntp debugging by default. | ||
| 9 | |||
| 10 | Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com> | ||
| 11 | |||
| 12 | --- | ||
| 13 | --- a/configure.ac | ||
| 14 | +++ b/configure.ac | ||
| 15 | @@ -2458,7 +2458,7 @@ | ||
| 16 | [+ include ntpd debugging code] | ||
| 17 | )], | ||
| 18 | [ntp_ok=$enableval], | ||
| 19 | - [ntp_ok=yes] | ||
| 20 | + [ntp_ok=no] | ||
| 21 | ) | ||
| 22 | case "$ntp_ok" in | ||
| 23 | yes) | ||
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc index b63f202fe5..55926e064a 100644 --- a/meta-networking/recipes-support/ntp/ntp.inc +++ b/meta-networking/recipes-support/ntp/ntp.inc | |||
| @@ -23,7 +23,6 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g | |||
| 23 | file://sntp.service \ | 23 | file://sntp.service \ |
| 24 | file://sntp \ | 24 | file://sntp \ |
| 25 | file://ntpd.list \ | 25 | file://ntpd.list \ |
| 26 | file://ntp-disable-debugging.patch \ | ||
| 27 | file://CVE-2013-5211.patch \ | 26 | file://CVE-2013-5211.patch \ |
| 28 | " | 27 | " |
| 29 | 28 | ||
| @@ -38,7 +37,8 @@ USERADD_PACKAGES = "${PN}" | |||
| 38 | USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \ | 37 | USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \ |
| 39 | --shell /bin/false --user-group ntp" | 38 | --shell /bin/false --user-group ntp" |
| 40 | 39 | ||
| 41 | PACKAGECONFIG ??= "cap" | 40 | # NB: debug is default-enabled by NTP; keep it default-enabled here. |
| 41 | PACKAGECONFIG ??= "cap debug" | ||
| 42 | PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \ | 42 | PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \ |
| 43 | --with-openssl-incdir=${STAGING_INCDIR} \ | 43 | --with-openssl-incdir=${STAGING_INCDIR} \ |
| 44 | --with-crypto, \ | 44 | --with-crypto, \ |
| @@ -46,6 +46,7 @@ PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \ | |||
| 46 | openssl" | 46 | openssl" |
| 47 | PACKAGECONFIG[cap] = "--enable-linuxcaps,--disable-linuxcaps,libcap" | 47 | PACKAGECONFIG[cap] = "--enable-linuxcaps,--disable-linuxcaps,libcap" |
| 48 | PACKAGECONFIG[readline] = "--with-lineeditlibs,--without-lineeditlibs,readline" | 48 | PACKAGECONFIG[readline] = "--with-lineeditlibs,--without-lineeditlibs,readline" |
| 49 | PACKAGECONFIG[debug] = "--enable-debugging,--disable-debugging" | ||
| 49 | 50 | ||
| 50 | do_install_append() { | 51 | do_install_append() { |
| 51 | install -d ${D}${sysconfdir}/init.d | 52 | install -d ${D}${sysconfdir}/init.d |
