<?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>13876</bug_id>
          
          <creation_ts>2020-04-16 10:03:44 +0000</creation_ts>
          <short_desc>update-rc.d INITSCRIPT_PACKAGES misses its goal</short_desc>
          <delta_ts>2020-04-23 07:38:40 +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>3.0.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Louis Rannou">louis.rannou</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>louis.rannou</cc>
    
    <cc>steve</cc>
          
          <qa_contact name="Richard Purdie">richard.purdie</qa_contact>
          <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>87047</commentid>
    <comment_count>0</comment_count>
    <who name="Louis Rannou">louis.rannou</who>
    <bug_when>2020-04-16 10:03:44 +0000</bug_when>
    <thetext>Using the following recipe, there won&apos;t be any S61child in rc
It seems that added packages are checking INITSCRIPT_NAME which is the parent.


SUMMARY = &quot;Test INITSCRIPT_PACKAGES&quot;
LICENSE = &quot;CLOSED&quot;

do_install() {
    install -d ${D}${sysconfdir}/init.d
    echo -e &quot;#!/bin/sh\n\necho FATHER&quot; &gt; ${WORKDIR}/father
    echo -e &quot;#!/bin/sh\n\necho CHILD&quot; &gt; ${WORKDIR}/child

    install -m 0755 ${WORKDIR}/father ${D}${sysconfdir}/init.d/
    install -m 0755 ${WORKDIR}/child ${D}${sysconfdir}/init.d/
}

inherit update-rc.d

INITSCRIPT_PACKAGES = &quot;${PN} ${PN}-child&quot;
INITSCRIPT_NAME = &quot;father&quot;
INITSCRIPT_PARAMS = &quot;defaults 60&quot;
INITSCRIPT_NAME-child = &quot;child&quot;
INITSCRIPT_PARAMS-child = &quot;defaults 61&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87067</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-04-23 07:38:40 +0000</bug_when>
    <thetext>Should be:

INITSCRIPT_NAME_${PN}-child
INITSCRIPT_PARAMS_${PN}-child = &quot;defaults 61&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>