<?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>5795</bug_id>
          
          <creation_ts>2014-02-06 16:00:46 +0000</creation_ts>
          <short_desc>avahi-daemon does not work correctly with lsb_log_message script</short_desc>
          <delta_ts>2014-04-03 14:37:10 +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>connectivity</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>40209</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-02-06 16:00:46 +0000</bug_when>
    <thetext>During boot, there are errors found in /var/log/boot related to avahi-daemon:

Thu Feb  6 10:54:51 2014: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon/etc/core-lsb/lsb_log_message: line 26: begin: command not found

This was tested with qemux86-64 QEMU machine, using master with commit:
82f9c2bcff3e977beefde6048d2ba32d17acbbd0.

Full log below:

root@qemux86-64:~# cat /var/log/boot 
Thu Feb  6 10:54:35 2014: bootlogd.
Thu Feb  6 10:54:35 2014: Populating dev cache
Thu Feb  6 10:54:43 2014: ALSA: Restoring mixer settings...
Thu Feb  6 10:54:43 2014: /usr/sbin/alsactl: load_state:1729: No soundcards found...
Thu Feb  6 10:54:43 2014: net.ipv4.conf.default.rp_filter = 1
Thu Feb  6 10:54:43 2014: net.ipv4.conf.all.rp_filter = 1
Thu Feb  6 10:54:43 2014: Starting atd: OK
Thu Feb  6 10:54:43 2014: INIT: Entering runlevel: 5
Thu Feb  6 10:54:43 2014: Configuring network interfaces... done.
Thu Feb  6 10:54:44 2014: Starting system message bus: dbus.
Thu Feb  6 10:54:44 2014: Starting OpenBSD Secure Shell server: sshd
Thu Feb  6 10:54:44 2014:   generating ssh RSA key...
Thu Feb  6 10:54:45 2014:   generating ssh ECDSA key...
Thu Feb  6 10:54:45 2014:   generating ssh DSA key...
Thu Feb  6 10:54:47 2014: done.
Thu Feb  6 10:54:47 2014: Starting rpcbind daemon...done.
Thu Feb  6 10:54:47 2014: creating NFS state directory: done
Thu Feb  6 10:54:47 2014: starting statd: done
Thu Feb  6 10:54:48 2014: Starting Distributed Compiler Daemon: distcc.
Thu Feb  6 10:54:49 2014: starting 8 nfsd kernel threads: rpc.nfsd: Setting version failed: errno 22 (Invalid argument)
Thu Feb  6 10:54:49 2014: done
Thu Feb  6 10:54:49 2014: starting mountd: done
Thu Feb  6 10:54:49 2014: Starting system log daemon...0
Thu Feb  6 10:54:50 2014: Starting kernel log daemon...0
Thu Feb  6 10:54:51 2014: Starting internet superserver: xinetd.
Thu Feb  6 10:54:51 2014: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon/etc/core-lsb/lsb_log_message: line 26: begin: command not found
Thu Feb  6 10:54:51 2014: 
Thu Feb  6 10:54:52 2014: Starting Lighttpd Web Server: lighttpd.
Thu Feb  6 10:54:52 2014: cupsd: Child exited with status 1
Thu Feb  6 10:54:52 2014: cups: unable to start scheduler.
Thu Feb  6 10:54:53 2014: Starting crond: OK
Thu Feb  6 10:54:53 2014: Starting OProfileUI server
Thu Feb  6 10:54:53 2014: 
root@qemux86-64:~# uname -a
Linux qemux86-64 3.10.25-yocto-standard #5 SMP PREEMPT Thu Feb 6 11:29:14 EET 2014 x86_64 GNU/Linux
root@qemux86-64:~# rpm -qa | grep mdns
libnss-mdns-0.10-r7.core2_64
root@qemux86-64:~# rpm -qa | grep avahi
libavahi-common3-0.6.31-r7.1.core2_64
libavahi-core7-0.6.31-r7.1.core2_64
libavahi-client3-0.6.31-r7.1.core2_64
avahi-daemon-0.6.31-r7.1.core2_64
libavahi-glib1-0.6.31-r7.1.core2_64
avahi-locale-en-gb-0.6.31-r7.1.core2_64
root@qemux86-64:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40210</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-02-06 16:02:04 +0000</bug_when>
    <thetext>Investigated started.
Might be related to:
http://patches.openembedded.org/patch/60733/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41770</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-26 13:46:52 +0000</bug_when>
    <thetext>LSB lsb_log_message calls a begin() function that should be implemented in /etc/init.d/functions. The aforementioned script does not implement the begin() function, as such there is a small issue related to logging.

However, the confusion seems to stem from the fact that the LSB standard does not properly states who should implement such functions and where.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41771</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-26 13:49:09 +0000</bug_when>
    <thetext>Adding Ubuntu as an example, log_begin_msg is implemented directly in:
/lib/lsb/init-functions script:

# int log_begin_message (char *message)
log_begin_msg () {
    log_begin_msg_pre &quot;$@&quot;
    if [ -z &quot;${1:-}&quot; ]; then
        return 1
    fi
    echo -n &quot;$@&quot; || true
    log_begin_msg_post &quot;$@&quot;
}
 where:

# Pre&amp;Post empty function declaration, to be overriden from /lib/lsb/init-functions.d/*
log_begin_msg_pre () { :; }
log_begin_msg_post () { :; }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41809</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-27 07:16:02 +0000</bug_when>
    <thetext>Patch sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41837</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-03-27 13:07:11 +0000</bug_when>
    <thetext>Fixed with commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ebfd07544751611c7ac03e6b1e7a79676ffa0873</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42174</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-04-02 14:13:51 +0000</bug_when>
    <thetext>*** Bug 6103 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42232</commentid>
    <comment_count>7</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2014-04-03 14:37:10 +0000</bug_when>
    <thetext>Verified with poky master:3e528d3e4bc542ca2f654c54363c56af0fb9f61b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>