<?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>10977</bug_id>
          
          <creation_ts>2017-01-26 20:31:18 +0000</creation_ts>
          <short_desc>quilt missing in recipe-sysroot-native for build with slightly older bitbake revision</short_desc>
          <delta_ts>2017-01-27 12:04:15 +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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</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>70201</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2017-01-26 20:31:18 +0000</bug_when>
    <thetext>Long story short:

And the root cause of this is slightly older revision of bitbake (both oe-core and bitbake are from master branch).

So I belive that bitbake version should be bumped and oe-core should require this newer bitbake to prevent random errors like this.

Bitbake revision where it was failing like this:
518b901 cookerdata: Convert multiconfig to use BB_CURRENT_MC

Long version:
Latest bitbake world build on jenkins failed for all recipes which have some .patch files in SRC_URI with error like this:

NOTE: Applying patch &apos;0001-PATCH-Disable-the-test-to-convert-euc-jp.patch&apos; (openembedded-core/meta/recipes-core/gettext/gettext-minimal-0.19.8.1/0001-PATCH-Disable-the-test-to-convert-euc-jp.patch)
ERROR: Command Error: &apos;quilt --quiltrc /home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/etc/quiltrc push&apos; exited with 0  Output:
/bin/sh: 1: quilt: not found
DEBUG: Python function patch_do_patch finished

The quilt-native was correctly built before gettext-minimal-native do_patch was started and it&apos;s staged in sysroot-components:

OE qemux86@ ~/oe/world/shr-core $ find tmp-glibc/ -name quilt
tmp-glibc/sysroots-components/x86_64/quilt-native/etc/bash_completion.d/quilt
tmp-glibc/sysroots-components/x86_64/quilt-native/usr/bin/quilt
tmp-glibc/sysroots-components/x86_64/quilt-native/usr/share/quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/usr/share/quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/usr/bin/quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/etc/bash_completion.d/quilt

But recipe-sysroot and recipe-sysroot-native are empty in gettext-minimal-native:

OE qemux86@ ~/oe/world/shr-core $ find /home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot*
/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot
/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native
/home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/installeddeps

quilt-native is also shown correctly in bitbake -e gettext-minimal-native:
#
# $PATCHDEPENDENCY
#   set /home/jenkins/oe/world/shr-core/openembedded-core/meta/classes/patch.bbclass:6
#     &quot;${PATCHTOOL}-native:do_populate_sysroot&quot;
PATCHDEPENDENCY=&quot;quilt-native:do_populate_sysroot&quot;


/oe/world/shr-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/temp/log.do_prepare_recipe_sysroot shows only this:
DEBUG: Executing python function do_prepare_recipe_sysroot
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are []
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Python function do_prepare_recipe_sysroot finished

And in the build where this works fine I see:
OE qemux86@ ~/build/oe-core $ find tmp-glibc/ -name quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/OE/build/oe-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/usr/share/quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/OE/build/oe-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/usr/bin/quilt
tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/sysroot-destdir/OE/build/oe-core/tmp-glibc/work/x86_64-linux/quilt-native/0.65-r0/recipe-sysroot-native/etc/bash_completion.d/quilt
tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/etc/bash_completion.d/quilt
tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/usr/bin/quilt
tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/usr/share/quilt
tmp-glibc/work/sysroots-components/x86_64/quilt-native/etc/bash_completion.d/quilt
tmp-glibc/work/sysroots-components/x86_64/quilt-native/usr/bin/quilt
tmp-glibc/work/sysroots-components/x86_64/quilt-native/usr/share/quilt

There is no temp/log.do_prepare_recipe_sysroot, but at the begining of temp/log.do_patch I see:
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are [&apos;/OE/build/oe-core/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot&apos;]
NOTE: sed -e &apos;s:^[^/]*/:/OE/build/oe-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native/:g&apos; /OE/build/oe-core/tmp-glibc/sysroots-components/x86_64/quilt-native/fixmepath | xargs sed -i -e &apos;s:FIXMESTAGINGDIRTARGET:/OE/build/oe-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/OE/build/oe-core/tmp-glibc/work/x86_64-linux/gettext-minimal-native/0.19.8.1-r0/recipe-sysroot-native:g&apos; -e &apos;s:FIXME_PKGDATA_DIR:/OE/build/oe-core/tmp-glibc/pkgdata/qemux86:g&apos;
DEBUG: Python function extend_recipe_sysroot finished</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70206</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2017-01-26 21:13:58 +0000</bug_when>
    <thetext>The required bitbake commit is:
4dcd0e5 event/ast: Add RecipeTaskPreProcess event before task finalisation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70214</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-26 22:19:25 +0000</bug_when>
    <thetext>Richard, can we get a bump of bitbake version so we can require it in oe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70225</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-27 12:04:15 +0000</bug_when>
    <thetext>Version bumped (bitbake 2a309cd20cddf3d2258bd00ad06b26452e6cc043) and dependency added (oe-core 3a617a4c66941cecbdccb6f410e1b0d8bfde9845).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>