All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/2] sysklogd: lower the ALTERNATIVE_PRIORITY in case of systemd
Date: Tue, 3 Sep 2013 10:06:55 +0800	[thread overview]
Message-ID: <5225443F.8060509@windriver.com> (raw)
In-Reply-To: <52247D78.4070406@pabigot.com>

On 09/02/2013 07:58 PM, Peter A. Bigot wrote:
> On 09/02/2013 06:40 AM, Qi.Chen@windriver.com wrote:
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> The sysklogd package hasn't got systemd support yet. So in case of
>> a systemd based system, the commands and corresponding configuration
>> files should have a lower priority than that of the busybox's syslogd
>> and klogd utilities. These two utilities from busybox have internal
>> systemd support if CONFIG_FEATURE_SYSTEMD is enabled. And that config
>> item is enabled by default.
>>
>> [YOCTO #5066]
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>>   meta/recipes-extended/sysklogd/sysklogd.inc |    9 ++++++++-
>>   1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc 
>> b/meta/recipes-extended/sysklogd/sysklogd.inc
>> index 1167328..30dac2d 100644
>> --- a/meta/recipes-extended/sysklogd/sysklogd.inc
>> +++ b/meta/recipes-extended/sysklogd/sysklogd.inc
>> @@ -38,7 +38,14 @@ do_install () {
>>       install -m 755 ${WORKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog
>>   }
>>   -ALTERNATIVE_PRIORITY = "100"
>> +python () {
>> +    # sysklogd package has no internal systemd support, so we weigh 
>> busybox's
>> +    # sysklogd utility over it in case of systemd
>> +    if 'systemd' in d.getVar("DISTRO_FEATURES", True).split():
>> +        d.setVar("ALTERNATIVE_PRIORITY", "10")
>> +    else:
>> +        d.setVar("ALTERNATIVE_PRIORITY", "100")
>> +}
>
> Is there a reason an anonymous python block is better for this purpose 
> than:
>
> ALTERNATIVE_PRIORITY = 
> "${@base_contains('DISTRO_FEATURES','systemd','10','100',d)}"
>
> ?
>
Thanks. I'll send out a V2.

Best Regards,
Chen Qi

>>   ALTERNATIVE_${PN} = "syslogd klogd syslog-init syslog-conf"
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>



  reply	other threads:[~2013-09-03  2:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-02 11:40 [PATCH 0/2] busybox & sysklogd: weigh busybox's syslogd/klogd utilities over those from sysklogd in case of systemd Qi.Chen
2013-09-02 11:40 ` [PATCH 1/2] busybox-syslog: add configuration file /etc/syslog.conf Qi.Chen
2013-09-02 11:40 ` [PATCH 2/2] sysklogd: lower the ALTERNATIVE_PRIORITY in case of systemd Qi.Chen
2013-09-02 11:58   ` Peter A. Bigot
2013-09-03  2:06     ` ChenQi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-09-03  2:12 [PATCH 0/2] busybox & sysklogd: weigh busybox's syslogd/klogd utilities over those from sysklogd " Qi.Chen
2013-09-03  2:12 ` [PATCH 2/2] sysklogd: lower the ALTERNATIVE_PRIORITY " Qi.Chen

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=5225443F.8060509@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=openembedded-core@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.