<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5302</bug_id>
          
          <creation_ts>2013-10-02 11:04:14 +0000</creation_ts>
          <short_desc>busybox does not support no CONFIG_SYSLOGD properly</short_desc>
          <delta_ts>2014-07-02 06:24:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jack Mitchell">jack</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37465</commentid>
    <comment_count>0</comment_count>
    <who name="Jack Mitchell">jack</who>
    <bug_when>2013-10-02 11:04:14 +0000</bug_when>
    <thetext>Using the config fragment support in the busybox recipe to remove the syslog feature leads to these warnings:

WARNING: busybox: alternative target (/etc/syslog.conf or /etc/syslog.conf.busybox) does not exist, skipping...
WARNING: busybox: NOT adding alternative provide /etc/syslog.conf: /etc/syslog.conf.busybox does not exist
WARNING: busybox: NOT adding alternative provide /etc/init.d/syslog: /etc/init.d/syslog.busybox does not exist
WARNING: busybox: NOT adding alternative provide /etc/syslog-startup.conf: /etc/syslog-startup.conf.busybox does not exist
WARNING: alt_link == alt_target: /etc/syslog.conf == /etc/syslog.conf

Within the busybox recipe it&apos;self there are checks for CONFIG_SYSLOGD

if grep -q &quot;CONFIG_SYSLOGD=y&quot; ${B}/.config; then
                install -m 0755 ${WORKDIR}/syslog ${D}${sysconfdir}/init.d/syslog.${BPN}
                install -m 644 ${WORKDIR}/syslog-startup.conf ${D}${sysconfdir}/syslog-startup.conf.${BPN}
                install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf.${BPN}
fi

This leads me to believe that once upon a time it was properly supported, but it had now regressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37730</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-10-08 07:19:33 +0000</bug_when>
    <thetext>We didn&apos;t met this problem because we had never disabled syslogd in busybox.

The problem appeared for update-alternatives, but similar problems could appear for update-rc.d and systemd.

Busybox is a little special compared to other recipes, as what components get installed are determined by the configuration files. This would lead to problems when it inherits update-rc.d.bbclass, update-alternatives.bbclass and systemd.bbclass.

Actually, problem exists for CONFFILES as the config file may not get installed. For example, the /etc/syslog-startup.conf file may not get installed if syslogd is disabled.

For the bug, I&apos;m gonna ignore the CONFFILES problem. Because it will be solved in bug#5200 (Improve the handling of CONFFILES).

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43886</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-06-12 08:06:29 +0000</bug_when>
    <thetext>On one hand, the busybox recipe should deal with CONFIG_SYSLOGD properly. That is, we should not install syslogd related files if CONFIG_SYSLGOD is disabled.
This is the part that needs to be fixed in OE.

On the other hand, while setting the ALTERNATIVE_busybox-syslog variable, it&apos;s impossible to check whether or not CONFIG_SYSLGOD is enabled from the .config file. So we need to set it in our own bbappend file.

As an example, if we know that CONFIG_SYSLOGD is disabled in XXX distro, then we could write in the bbappend file:

python () {
    distrooverrides = (d.getVar(&apos;DISTROOVERRIDES&apos;, True) or &apos;&apos;).split(&apos;:&apos;)
    if &apos;XXX&apos; in distrooverrides:
        d.setVar(&apos;ALTERNATIVE_%s-syslog&apos; % (d.getVar(&apos;PN&apos;, True)), &apos;&apos;)
}

I&apos;ll send out a patch to fix the OE core part of this problem. But we really need to do something in our own bbappend file to make things work.

Best Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44283</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-07-02 06:24:29 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: b44e291a87539fbb8e6da1a16c56f425a417e7bd
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=b44e291a87539fbb8e6da1a16c56f425a417e7bd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>