<?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>6072</bug_id>
          
          <creation_ts>2014-03-31 03:49:15 +0000</creation_ts>
          <short_desc>Can&apos;t install dbus-1-1.6.18-r0@i586: no package provides initscripts-functions</short_desc>
          <delta_ts>2014-06-06 18:28:48 +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>1.6</version>
          <rep_platform>All</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>major</bug_severity>
          <target_milestone>1.6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>rcalhoun-bugzilla</cc>
    
    <cc>richard.purdie</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>41926</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-03-31 03:49:15 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.21.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Arch-rolling&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20140331&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:8210928e847fda7dbc145a94372b0beaf653a4f9&quot;
meta-qt5          = &quot;master:1fa7f364f682e5cfaa9d6e565b7ae6b8ec2a90ff&quot;

1. git clone git://git.yoctoproject.org/poky
2. cd poky
3. git clone https://github.com/meta-qt5/meta-qt5.git
4. . oe-init-build-env
5. sed -i &apos;12i\  ${TOPDIR}/../meta-qt5 \&apos; conf/bblayers.conf
6. bitbake meta-toolchain-qt5


Results in the following errors in log.do_populate_sdk:
DEBUG: Executing python function do_populate_sdk
NOTE: Installing TARGET packages
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel qemux86 (35)
NOTE: Note: adding Smart channel i586 (30)
NOTE: Note: adding Smart channel all (25)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: Executing &apos;/home/net147/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/net147/git/poky/build/tmp/deploy/rpm/all&apos; ...
NOTE: Executing &apos;/home/net147/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/net147/git/poky/build/tmp/deploy/rpm/i586&apos; ...
NOTE: Executing &apos;/home/net147/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/net147/git/poky/build/tmp/deploy/rpm/qemux86&apos; ...
NOTE: Installing the following packages: packagegroup-core-standalone-sdk-target-dbg packagegroup-core-standalone-sdk-target packagegroup-qt5-toolchain-target
NOTE: to be installed: packagegroup-core-standalone-sdk-target-dbg@all packagegroup-core-standalone-sdk-target@all packagegroup-qt5-toolchain-target@all
NOTE: /home/net147/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/smart --data-dir=/home/net147/git/poky/build/tmp/work/i586-poky-linux/meta-toolchain-qt5/1.0-r0/sdk/image/opt/poky/1.5+snapshot/sysroots/i586-poky-linux/var/lib/smart install -y packagegroup-core-standalone-sdk-target-dbg@all packagegroup-core-standalone-sdk-target@all packagegroup-qt5-toolchain-target@all
ERROR: Unable to install packages. Command &apos;/home/net147/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/smart --data-dir=/home/net147/git/poky/build/tmp/work/i586-poky-linux/meta-toolchain-qt5/1.0-r0/sdk/image/opt/poky/1.5+snapshot/sysroots/i586-poky-linux/var/lib/smart install -y packagegroup-core-standalone-sdk-target-dbg@all packagegroup-core-standalone-sdk-target@all packagegroup-qt5-toolchain-target@all&apos; returned 1:
Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...error: Can&apos;t install dbus-1-1.6.18-r0@i586: no package provides initscripts-functions


DEBUG: Python function do_populate_sdk finished
ERROR: Function failed: do_populate_sdk



It seems the initscripts recipe isn&apos;t built so it can&apos;t find the initscripts-functions package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41927</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-03-31 04:04:39 +0000</bug_when>
    <thetext>There is an error in step 5, it should be:
sed -i &apos;12i\  ${TOPDIR}/../meta-qt5 \\&apos; conf/bblayers.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42064</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-04-01 19:25:42 +0000</bug_when>
    <thetext>Can you reproduce this without the meta-qt5?  Dbus appears to use the update-rc.d bbclass which pulls in the initscript-functions conditionally on the usage of /etc/init.d/fucnction, I tried to install dbus with a core-image-minimal and it correctly installed initscripts-functions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42093</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-04-02 04:16:17 +0000</bug_when>
    <thetext>It is reproducible without meta-qt5.

Instructions using new clone of poky:
1. git clone git://git.yoctoproject.org/poky
2. cd poky
3. . oe-init-build-env
4. echo &apos;TOOLCHAIN_TARGET_TASK_append_pn-meta-toolchain = &quot; dbus-wait&quot;&apos; &gt;&gt; conf/local.conf
5. bitbake meta-toolchain

Instructions using existing clone of poky:
1. echo &apos;TOOLCHAIN_TARGET_TASK_append_pn-meta-toolchain = &quot; dbus-wait&quot;&apos; &gt;&gt; conf/local.conf
2. bitbake -c cleansstate initscripts meta-toolchain
3. bitbake meta-toolchain</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42133</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-02 09:49:00 +0000</bug_when>
    <thetext>What&apos;s going on here is the usual for this type of error - there&apos;s no DEPENDS anywhere to force the initscripts recipe to be built and the RDEPENDS on initscrips-functions is added dynamically during packaging, which means nothing guarantees that the initscripts-functions package will be available.

We&apos;ll have to add an explicit RDEPENDS on initscripts-functions in at least one common place to get around this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42188</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-04-02 21:38:25 +0000</bug_when>
    <thetext>There are 2 possibly places to do this: sysvinit and systemd recipes since both 
of them actually rely on the init.d/function file, they are also common places 
for each of the 2 init systems that need those files.

Thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42827</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-22 17:52:52 +0000</bug_when>
    <thetext>I suspect we&apos;ll need to have it in both places, since you can have either one enabled and not the other. It seems to me though that the point of splitting this was to try to allow systemd-based configurations where you don&apos;t need to have initscripts installed, and presumably even not have initscripts-functions installed unless its needed. So whatever solution we come up with will have to take that into account.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42920</commentid>
    <comment_count>7</comment_count>
    <who name="Rob Calhoun">rcalhoun-bugzilla</who>
    <bug_when>2014-04-23 15:36:13 +0000</bug_when>
    <thetext>I got the same error yesterday (&quot;Computing transaction...error: Can&apos;t install dbus-1-1.6.18-r0@armv7a_vfp_neon: no package provides initscripts-function
s&quot;) when doing a clean build under daisy, DISTRO = &quot;poky&quot;. The clean operation was a scorched-earth one, trashing the sstate-cache and tmp directories in order to resolve some complaints about incompatible native tool versions.

Per this ticket the workaround was to do an independent &quot;bitbake initscripts&quot; then  bake the image.


Repro:

bitbake -c cleanall on {sysvinit, dbus, initscripts} then baking the image works.

bitbake -c cleanall on {sysvinit, dbus, initscripts,image recipe} then baking the image fails with initscripts dependency.

There is an explicit RDEPENDS on initscripts-functions in poky/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb  so anything that builds sysvinit should automatically build initscripts-functions.

Baking sysvinit after cleanall rebuilds initscripts as expected; image can then be baked successfully. Perhaps the issue not with initscripts directly but rather how the sysvinit package is tracked as a dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43397</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-05-16 21:48:19 +0000</bug_when>
    <thetext>Rob, which image where you working with and were you using systemd?  I think I 
need a little more information on your failure.  I have been working with this 
issue and looking at a patch adding initscripts as a DEPENDS in 
update-rc.d.bbclass, but that seems to have cause a different failure when 
buiding meta-toolchain, but not when building an actual image</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43466</commentid>
    <comment_count>9</comment_count>
    <who name="Rob Calhoun">rcalhoun-bugzilla</who>
    <bug_when>2014-05-21 20:07:46 +0000</bug_when>
    <thetext>Finally got around to trying to track this down. For the record I am working with daisy branch as of 98ad3cb2c0f5975a0df4cebc06775aaae657700d (1.6.1).

The &quot;no package provides initscript-functions&quot; doesn&apos;t occur when building core-image-minimal. The difference between that image and my own is that I don&apos;t include packagegroup-core-boot in IMAGE_INSTALL, and packagegroup-core-boot adds initscripts as an RDEPENDS.

The sysvinit recipe, meanwhile, has a RDEPENDS dependency on initscripts-functions, but perhaps since this is failing at image creation time, perhaps it should really be a DEPENDS instead (or in addition?)

Probably this is not worth fixing. I am running into this because of my aversion to using sysvinit (vs busybox init), and busybox init is not really supported by yocto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43484</commentid>
    <comment_count>10</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-05-22 07:47:08 +0000</bug_when>
    <thetext>I honestly do think this needs to be fixed. We introduced this initscripts-functions package, we should take measures to ensure it gets built so that this error doesn&apos;t occur.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43514</commentid>
    <comment_count>11</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-05-22 16:55:55 +0000</bug_when>
    <thetext>FYI, It&apos;s not necessarily intuitive and I had to test it because I wasn&apos;t sure, but thanks to recrdeptasks, just adding a DEPENDS on initscripts will cause initscripts-functions to be packaged. Thus, we should be able to add a DEPENDS on initscripts to both systemd and sysvinit and that will cause an initscripts-functions package to be built, but not force it to be installed unless a particular package requires it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43607</commentid>
    <comment_count>12</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-05-27 19:03:32 +0000</bug_when>
    <thetext>I attached a patch that I am working with to address this issue, can you please 
try it in your environment.  One important thing to confirm is that it does not 
bring in additional items that you do not want installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43608</commentid>
    <comment_count>13</comment_count>
      <attachid>1980</attachid>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-05-27 19:03:34 +0000</bug_when>
    <thetext>Created attachment 1980
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43815</commentid>
    <comment_count>14</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-06-06 18:28:48 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f39d8765b1233219a36331975a248b2cd008abdf

this will be backported to daisy</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1980</attachid>
            <date>2014-05-27 19:03:34 +0000</date>
            <delta_ts>2014-05-27 19:03:34 +0000</delta_ts>
            <desc>Patch</desc>
            <filename>0001-update-rc.d-useradd-Add-additional-dependecies.patch</filename>
            <type>text/x-diff</type>
            <size>1965</size>
            <attacher name="Saul Wold">sgw</attacher>
            
              <data encoding="base64">RnJvbSA4ODllNWZlYzkwNjYxMzFlMmI5ZGE0MTY2YmY5ODk3ZWQ5YTllODZkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBTYXVsIFdvbGQgPHNnd0BsaW51eC5pbnRlbC5jb20+CkRhdGU6
IFR1ZSwgMjcgTWF5IDIwMTQgMTI6MDI6MjMgLTA3MDAKU3ViamVjdDogW1BBVENIXSB1cGRhdGUt
cmMuZC91c2VyYWRkOiBBZGQgYWRkaXRpb25hbCBkZXBlbmRlY2llcwoKVGhlc2UgZGVwZW5kY2ll
cyBhcmUgbmVlZGVkIHRvIGVuc3VyZSB0aGF0IHRoaWVyIHBhY2thZ2VzIGFyZSBjcmVhdGVkCmNv
cnJlY3RseSBzaW5jZSB0aGVzZSBjbGFzc2VzIGhhdmUgcnVudGltZSBkZXBlbmRpZW5jZXMgaW4g
dGhlaXIgcGFja2FnZXMKYnV0IHRoZXkgYXJlIG5vdCBhY3R1YWxseSBjcmVhdGVkIHlldCBhdCBy
b290ZnMgdGltZS4KCltZT0NUTyAjNjA3Ml0KClNpZ25lZC1vZmYtYnk6IFNhdWwgV29sZCA8c2d3
QGxpbnV4LmludGVsLmNvbT4KLS0tCiBtZXRhL2NsYXNzZXMvdXBkYXRlLXJjLmQuYmJjbGFzcyB8
IDIgKysKIG1ldGEvY2xhc3Nlcy91c2V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