From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YFmTF-0004FW-62 for ptxdist@pengutronix.de; Mon, 26 Jan 2015 17:25:02 +0100 Received: by mail-wg0-f52.google.com with SMTP id y19so9923273wgg.11 for ; Mon, 26 Jan 2015 08:24:55 -0800 (PST) MIME-Version: 1.0 Date: Mon, 26 Jan 2015 17:24:55 +0100 Message-ID: From: Guillermo Rodriguez Garcia Subject: [ptxdist] ptxdist: BUSYBOX_NTPD blocks NTP Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0699640515==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============0699640515== Content-Type: multipart/alternative; boundary=f46d044288c8247452050d9094fe --f46d044288c8247452050d9094fe Content-Type: text/plain; charset=UTF-8 Hello all, I am using the ntpd applet in busybox but also wanted to enable the ntpdate program (yes I know use of ntpdate is not recommended in general but this is for a very specific use case). However I see that ntpdate is part of the "ntp" package and that the ntp package is blocked by BUSYBOX_NTPD. From rules/ntp.in: menuconfig NTP tristate prompt "ntp " select OPENSSL if NTP_CRYPTO select ROOTFS_VAR_CACHE if NTP_NTPD select LIBC_M select LIBC_RT select GCCLIBS_GCC_S select LIBMD depends on !BUSYBOX_NTPD || ALLYES [...] config NTP_NTPDATE bool prompt "install ntpdate" depends on NTP Obviously one would not want to run two ntp services at the same time, but since busybox lacks an ntpdate command, there are cases where one would want to use ntpdate from the NTP package while still using Busybox's ntpd for everything else. My question is: Is there any reason why this wouldn't work? Was the "depends on !BUSYBOX_NTPD" line added just to avoid the possibility of the two ntp services running at the same time? Or is it there to guard from other possible problems/issues? Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --f46d044288c8247452050d9094fe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello all,

I am using the ntpd applet in busybox bu= t also wanted to enable the ntpdate program (yes I know use of ntpdate is n= ot recommended in general but this is for a very specific use case). Howeve= r I see that ntpdate is part of the "ntp" package and that the nt= p package is blocked by BUSYBOX_NTPD. From rules/= ntp.in:

menuconfig NTP
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tristate=C2=A0 =C2=A0 =C2=A0 =C2=A0 prompt "ntp =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 select OPENSSL =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0if NTP_CRYPTO
=C2=A0 =C2=A0 =C2=A0 =C2=A0 select ROOTFS_VAR_CACHE if = NTP_NTPD
=C2=A0 =C2=A0 =C2=A0 =C2=A0 select LIBC_M
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 select LIBC_RT
=C2=A0 =C2=A0 =C2=A0 =C2=A0 select GCCLIBS_GCC= _S
=C2=A0 =C2=A0 =C2=A0 =C2=A0 select LIBMD
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 depends on !BUSYBOX_NTPD || ALLYES

[...]
config NTP_NTPDATE=C2=A0 =C2=A0 =C2=A0 =C2=A0 bool
=C2=A0 =C2=A0 =C2=A0 =C2=A0 prompt &q= uot;install ntpdate"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 depends on NTP
=

Obviously one would not want to run two ntp services at the same ti= me, but since busybox lacks an ntpdate command, there are cases where one w= ould want to use ntpdate from the NTP package while still using Busybox'= ;s ntpd for everything else.

My question is: Is there an= y reason why this wouldn't work? Was the "depends on !BUSYBOX_NTPD= " line added just to avoid the possibility of the two ntp services run= ning at the same time? Or is it there to guard from other possible problems= /issues?

Thank you,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
--f46d044288c8247452050d9094fe-- --===============0699640515== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0699640515==--