From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] busybox/syslogs: use update-alternatives for syslog selection
Date: Fri, 7 May 2010 16:58:50 +0200 [thread overview]
Message-ID: <20100507145850.GJ3204@jama> (raw)
In-Reply-To: <1273242036-7529-1-git-send-email-sledz@dresearch.de>
On Fri, May 07, 2010 at 04:20:36PM +0200, Steffen Sledz wrote:
> * u-a for init scripts of busybox-syslog, sysklogd, and rsyslog
> * syslog-ng needs to be integrated too!
>
> Signed-off-by: Steffen Sledz <sledz@dresearch.de>
> ---
> recipes/busybox/busybox.inc | 18 ++++++++++++++++--
> recipes/rsyslog/rsyslog.inc | 22 +++++++++++++---------
> recipes/sysklogd/sysklogd.inc | 19 +++++++++++++++----
> recipes/sysklogd/sysklogd_1.4.1.bb | 2 +-
> recipes/sysklogd/sysklogd_1.5.bb | 2 +-
> 5 files changed, 46 insertions(+), 17 deletions(-)
>
> diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc
> index 17d8d14..31651d6 100644
> --- a/recipes/busybox/busybox.inc
> +++ b/recipes/busybox/busybox.inc
> @@ -11,7 +11,7 @@ LICENSE = "GPLv2"
> SECTION = "base"
> PRIORITY = "required"
>
> -INC_PR = "r27"
> +INC_PR = "r28"
>
> SRC_URI = "\
> file://busybox-cron \
> @@ -46,7 +46,7 @@ RDEPENDS_${PN} += "${PN}-mountall"
> RRECOMMENDS_${PN} += "libgcc ${PN}-syslog"
>
> FILES_${PN}-httpd = "${sysconfdir}/init.d/busybox-httpd /srv/www"
> -FILES_${PN}-syslog = "${sysconfdir}/init.d/syslog ${sysconfdir}/syslog.conf"
> +FILES_${PN}-syslog = "${sysconfdir}/init.d/syslog.${PN} ${sysconfdir}/syslog.conf"
> FILES_${PN}-udhcpd = "${sysconfdir}/init.d/busybox-udhcpd"
>
> FILES_${PN} += "${datadir}/udhcpc"
> @@ -154,6 +154,20 @@ pkg_prerm_${PN}-mountall () {
> update-alternatives --remove default_mountall mountall.${PN}
> }
>
> +pkg_preinst_${PN}-syslog () {
> + # this is needed to avoid sysmlink errors,
> + # because update-rc.d runs before pkg_postinst :(
> + touch {sysconfdir}/init.d/syslog
> +}
> +
> +pkg_postinst_${PN}-syslog () {
> + update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 50
> +}
> +
> +pkg_prerm_${PN}-syslog () {
> + update-alternatives --remove syslog-init syslog.${PN}
> +}
> +
> pkg_prerm_${PN} () {
> # This is so you can make busybox commit suicide - removing busybox with no other packages
> # providing its files, this will make update-alternatives work, but the update-rc.d part
One more issue with this part, partialy explaining what went wrong in
that log. You're not creating syslog.busybox, so real /etc/init.d/syslog
is not packaged and after u-a /etc/init.d/syslog points to non-existing
/etc/init.d/syslog.busybox and that's why update-rc.d says it doesn't
exist.
Regards,
next prev parent reply other threads:[~2010-05-07 15:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 6:04 All the syslogs Steffen Sledz
2010-05-06 6:13 ` Koen Kooi
2010-05-07 7:46 ` Steffen Sledz
2010-05-07 10:59 ` Steffen Sledz
2010-05-07 11:09 ` Martin Jansa
2010-05-07 13:02 ` Steffen Sledz
2010-05-07 13:08 ` Martin Jansa
2010-05-07 14:04 ` Steffen Sledz
2010-05-07 14:20 ` [PATCH] busybox/syslogs: use update-alternatives for syslog selection Steffen Sledz
2010-05-07 14:49 ` Martin Jansa
2010-05-07 15:04 ` Steffen Sledz
2010-05-10 8:30 ` Martin Jansa
2010-05-07 14:58 ` Martin Jansa [this message]
2010-05-07 15:08 ` Steffen Sledz
2010-05-07 15:34 ` [PATCH v2] " Steffen Sledz
2010-05-07 14:52 ` All the syslogs Martin Jansa
2010-05-12 12:10 ` [PATCH v3] busybox/syslogs: use update-alternatives for syslog selection Steffen Sledz
2010-05-12 12:21 ` Martin Jansa
2010-05-12 12:50 ` [PATCH v4] " Steffen Sledz
2010-05-13 18:55 ` Sledz, Steffen
2010-05-17 11:11 ` Martin Jansa
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=20100507145850.GJ3204@jama \
--to=martin.jansa@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.