<?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>7732</bug_id>
          
          <creation_ts>2015-05-07 22:22:19 +0000</creation_ts>
          <short_desc>lsb start_daemon is broken</short_desc>
          <delta_ts>2015-10-07 01:09:50 +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>deployment</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>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tollerton">rich.tollerton</reporter>
          <assigned_to name="Alex Franco">alejandro.franco</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50871</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2015-05-07 22:22:19 +0000</bug_when>
    <thetext>If you install the lsb package into core-image-minimal then attempt to use the start_daemon facility as, e.g.,

. /lib/lsb/init-functions &amp;&amp; start_daemon syslogd

This will fail, because /etc/core-lsb/lsb_start_daemon in turn calls a &quot;daemon&quot; command, which does not exist.

This command appears to be present in the lsbinitscripts package, but installing that causes our target to segfault on bootup. That&apos;s a separate issue we need to investigate, but regardless, this ought to not be broken if I install only lsb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51592</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2015-06-09 20:33:05 +0000</bug_when>
    <thetext>Reproducing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51624</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2015-06-10 22:51:37 +0000</bug_when>
    <thetext>Building a base image such as core-image-minimal with lsb and then attempting to source /lib/lsb/init-functions, then using the start_daemon function (to start a daemon, such as syslogd) fails, since /lib/lsb/init-functions use functions (incl. &quot;daemon()&quot;) from file /etc/init.d/functions.lsbinitscripts, which is provided by package lsbinitscripts. Running daemon() then calls /usr/bin/mountpoint, a binary provided by util-linux. So, both of these dependencies have been added to: recipes-extended/lsb/lsb_4.1.bb

These changes did not lead to a segfault on boot in my test case.

Change now in contrib:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/?h=franco%2FYOCTO7732-lsb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51739</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2015-06-16 19:17:43 +0000</bug_when>
    <thetext>Patch sent to mailing list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54490</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2015-09-22 20:00:14 +0000</bug_when>
    <thetext>Still waiting review/integration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54498</commentid>
    <comment_count>5</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2015-09-22 22:16:00 +0000</bug_when>
    <thetext>Patch waiting for merge/review:

http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110295.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55009</commentid>
    <comment_count>6</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2015-10-07 01:09:50 +0000</bug_when>
    <thetext>Merged, see http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=249b810501f69390e8074368009a1114dbfcfaff

Closing this bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>