* [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
@ 2012-10-25 18:58 Martin Ertsaas
2012-10-26 7:14 ` Koen Kooi
2012-10-30 12:32 ` Anders Darander
0 siblings, 2 replies; 7+ messages in thread
From: Martin Ertsaas @ 2012-10-25 18:58 UTC (permalink / raw)
To: openembedded-devel
Change version of ntp to match that in meta-networking. Also change ntpdate to ntp-date to
match the names used in meta-networking.
Signed-off-by: Martin Ertsaas <martiert@gmail.com>
---
.../recipes-support/ntp/ntp_4.2.6p3.bbappend | 20 --------------------
.../recipes-support/ntp/ntp_4.2.6p5.bbappend | 20 ++++++++++++++++++++
2 files changed, 20 insertions(+), 20 deletions(-)
delete mode 100644 meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
create mode 100644 meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
diff --git a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
deleted file mode 100644
index c6cd031..0000000
--- a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bbappend
+++ /dev/null
@@ -1,20 +0,0 @@
-inherit systemd
-
-PRINC := "${@int(PRINC) + 1}"
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SYSTEMD_PACKAGES = "${PN}-systemd ntpdate-systemd"
-SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
-SYSTEMD_SERVICE_ntpdate-systemd = "ntpdate.service"
-
-SRC_URI += " \
- file://ntpdate.service \
- file://ntpd.service \
-"
-
-do_install_append() {
- install -d ${D}${systemd_unitdir}/system
- install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
- install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
-}
diff --git a/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
new file mode 100644
index 0000000..bc2b2dd
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-support/ntp/ntp_4.2.6p5.bbappend
@@ -0,0 +1,20 @@
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SYSTEMD_PACKAGES = "${PN}-systemd ${PN}-date-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "ntpd.service"
+SYSTEMD_SERVICE_${PN}-date-systemd = "ntpdate.service"
+
+SRC_URI += " \
+ file://ntpdate.service \
+ file://ntpd.service \
+"
+
+do_install_append() {
+ install -d ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
+}
--
1.7.8.6
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-25 18:58 [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking Martin Ertsaas
@ 2012-10-26 7:14 ` Koen Kooi
2012-10-26 7:26 ` Martin Ertsås
2012-10-26 8:01 ` Martin Jansa
2012-10-30 12:32 ` Anders Darander
1 sibling, 2 replies; 7+ messages in thread
From: Koen Kooi @ 2012-10-26 7:14 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 25-10-12 20:58, Martin Ertsaas schreef:
> Change version of ntp to match that in meta-networking. Also change
> ntpdate to ntp-date to match the names used in meta-networking.
While you are there, can you also disable the autoactivating for the unit?
It's broken and I'm gettig tired of doing 'systemctl disable' on it for
every system.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFQijhjMkyGM64RGpERAkBaAJ97niM1IfjERLUg3dOlFXMKLx/TogCgqXv6
X63nMniUZKcmw41+u4BEFKE=
=J9a5
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-26 7:14 ` Koen Kooi
@ 2012-10-26 7:26 ` Martin Ertsås
2012-10-26 8:01 ` Martin Jansa
1 sibling, 0 replies; 7+ messages in thread
From: Martin Ertsås @ 2012-10-26 7:26 UTC (permalink / raw)
To: openembedded-devel
On 10/26/12 09:14, Koen Kooi wrote:
> Op 25-10-12 20:58, Martin Ertsaas schreef:
> > Change version of ntp to match that in meta-networking. Also change
> > ntpdate to ntp-date to match the names used in meta-networking.
>
> While you are there, can you also disable the autoactivating for the unit?
> It's broken and I'm gettig tired of doing 'systemctl disable' on it for
> every system.
>
To disable the autoactivating, were you thinking linking
ntpd(ate).service to /dev/null, or something more sophisticated.
- Martin
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-26 7:14 ` Koen Kooi
2012-10-26 7:26 ` Martin Ertsås
@ 2012-10-26 8:01 ` Martin Jansa
2012-10-26 7:57 ` Martin Ertsås
1 sibling, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2012-10-26 8:01 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 958 bytes --]
On Fri, Oct 26, 2012 at 09:14:43AM +0200, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 25-10-12 20:58, Martin Ertsaas schreef:
> > Change version of ntp to match that in meta-networking. Also change
> > ntpdate to ntp-date to match the names used in meta-networking.
>
> While you are there, can you also disable the autoactivating for the unit?
> It's broken and I'm gettig tired of doing 'systemctl disable' on it for
> every system.
Cannot we fix it? Last time I've noticed it was using wrong binary (not
installed by ntpdate package) from .service file.
SHR root@qemux86-64 ~ $ opkg files ntpdate
Package ntpdate (4.2.6p3-r7) is installed on root and has the following
files:
/etc/network/if-up.d/ntpdate
/usr/bin/ntpdate
SHR root@qemux86-64 ~ $ grep Exec /lib/systemd/system/ntpdate.service
ExecStart=/usr/bin/ntpd -q -g -x
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-26 8:01 ` Martin Jansa
@ 2012-10-26 7:57 ` Martin Ertsås
2012-10-26 8:32 ` Martin Jansa
0 siblings, 1 reply; 7+ messages in thread
From: Martin Ertsås @ 2012-10-26 7:57 UTC (permalink / raw)
To: openembedded-devel
On 10/26/12 10:01, Martin Jansa wrote:
> On Fri, Oct 26, 2012 at 09:14:43AM +0200, Koen Kooi wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Op 25-10-12 20:58, Martin Ertsaas schreef:
>>> Change version of ntp to match that in meta-networking. Also change
>>> ntpdate to ntp-date to match the names used in meta-networking.
>> While you are there, can you also disable the autoactivating for the unit?
>> It's broken and I'm gettig tired of doing 'systemctl disable' on it for
>> every system.
> Cannot we fix it? Last time I've noticed it was using wrong binary (not
> installed by ntpdate package) from .service file.
>
> SHR root@qemux86-64 ~ $ opkg files ntpdate
> Package ntpdate (4.2.6p3-r7) is installed on root and has the following
> files:
> /etc/network/if-up.d/ntpdate
> /usr/bin/ntpdate
> SHR root@qemux86-64 ~ $ grep Exec /lib/systemd/system/ntpdate.service
> ExecStart=/usr/bin/ntpd -q -g -x
>
> Cheers,
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
So what is happening is that if you just install ntpdate, it still tries
to use ntpd, which doesn't exist? Sorry for the questions now, but I
don't have anywhere to test this right now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-26 7:57 ` Martin Ertsås
@ 2012-10-26 8:32 ` Martin Jansa
0 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2012-10-26 8:32 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]
On Fri, Oct 26, 2012 at 09:57:31AM +0200, Martin Ertsås wrote:
> On 10/26/12 10:01, Martin Jansa wrote:
> > On Fri, Oct 26, 2012 at 09:14:43AM +0200, Koen Kooi wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Op 25-10-12 20:58, Martin Ertsaas schreef:
> >>> Change version of ntp to match that in meta-networking. Also change
> >>> ntpdate to ntp-date to match the names used in meta-networking.
> >> While you are there, can you also disable the autoactivating for the unit?
> >> It's broken and I'm gettig tired of doing 'systemctl disable' on it for
> >> every system.
> > Cannot we fix it? Last time I've noticed it was using wrong binary (not
> > installed by ntpdate package) from .service file.
> >
> > SHR root@qemux86-64 ~ $ opkg files ntpdate
> > Package ntpdate (4.2.6p3-r7) is installed on root and has the following
> > files:
> > /etc/network/if-up.d/ntpdate
> > /usr/bin/ntpdate
> > SHR root@qemux86-64 ~ $ grep Exec /lib/systemd/system/ntpdate.service
> > ExecStart=/usr/bin/ntpd -q -g -x
> >
> > Cheers,
> >
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> So what is happening is that if you just install ntpdate, it still tries
> to use ntpd, which doesn't exist? Sorry for the questions now, but I
> don't have anywhere to test this right now.
Yes, exactly.
ExecStart needs to be changed to use ntpdate in ntpdate.service.
-ExecStart=/usr/bin/ntpd -q -g -x
+ExecStart=/usr/bin/ntpdate pool.ntp.org
Maybe we should also add something like
Requires=network.target
because right now there is only
Before=ntpd.service
to prevent already used socket (ntpdate[545]: the NTP socket is in use, exiting)
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking.
2012-10-25 18:58 [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking Martin Ertsaas
2012-10-26 7:14 ` Koen Kooi
@ 2012-10-30 12:32 ` Anders Darander
1 sibling, 0 replies; 7+ messages in thread
From: Anders Darander @ 2012-10-30 12:32 UTC (permalink / raw)
To: openembedded-devel
* Martin Ertsaas <martiert@gmail.com> [121025 20:59]:
> Change version of ntp to match that in meta-networking. Also change ntpdate to ntp-date to
> match the names used in meta-networking.
Ping?
The versions is meta-networking and meta-systemd needs to be put in
sync...
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-30 12:46 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25 18:58 [meta-systemd][PATCH] meta-systemd: ntp: Change version to what is used in meta-networking Martin Ertsaas
2012-10-26 7:14 ` Koen Kooi
2012-10-26 7:26 ` Martin Ertsås
2012-10-26 8:01 ` Martin Jansa
2012-10-26 7:57 ` Martin Ertsås
2012-10-26 8:32 ` Martin Jansa
2012-10-30 12:32 ` Anders Darander
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.