<?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>8439</bug_id>
          
          <creation_ts>2015-10-05 11:42:22 +0000</creation_ts>
          <short_desc>image build with image-swab in USER_CLASSES fails due to dependency on strace</short_desc>
          <delta_ts>2015-10-07 13:55:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Swabber</product>
          <component>swabber</component>
          <version>1.9</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>06 Oct 2015: IN PROGRESS REVIEW</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxin B. John">maxin.john</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>srifenbark</cc>
    
    <cc>yp.swabber.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54957</commentid>
    <comment_count>0</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-05 11:42:22 +0000</bug_when>
    <thetext>Including &quot;image-swab&quot; in USER_CLASSES causes the build to fail as it depends on &quot;strace&quot; to be present in the build machine.

How to re-create it:

$ git clone git://git.yoctoproject.org/poky
$ cd poky
$ source oe-init-build-env

Update &quot;conf/local.conf&quot; file in build directory and include &quot;image-swab&quot; in USER_CLASSES.
ie:

USER_CLASSES ?= &quot;buildstats image-mklibs image-prelink image-swab&quot;

$ bitbake core-image-minimal
Parsing recipes: 100% |#####################################################################################################################################################################################################################################################################################| Time: 00:00:15
Parsing of 898 .bb files complete (0 cached, 898 parsed). 1328 targets, 39 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-22&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:eac61f37e36099f74485dab398b57f3812826d17&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL ftp://invisible-island.net/ncurses/current/ncurses-5.9-20150329.tgz, attempting MIRRORS if available
ERROR: Function failed: imageswab_attachstrace (log file is located at /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834)
ERROR: Logfile of failure stored in: /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function imageswab_attachstrace
| which: no strace in (/home/maxin/poky/scripts:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/maxin/poky/build/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/usr/bin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/sbin:/home/maxin/poky/build/tmp/sysroots/x86_64-linux/bin:/home/maxin/poky/scripts:/home/maxin/poky/bitbake/bin:/usr/lib64/ccache:/usr/libexec/icecc/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/maxin/.local/bin:/home/maxin/bin)
| WARNING: /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/run.imageswab_attachstrace.3834:1 exit 1 from
|   STRACE=`which strace`
| ERROR: Function failed: imageswab_attachstrace (log file is located at /home/maxin/poky/build/tmp/work/qemux86_64-poky-linux/base-files/3.0.14-r89/temp/log.do_configure.3834)
ERROR: Task 756 (/home/maxin/poky/meta/recipes-core/base-files/base-files_3.0.14.bb, do_configure) failed with exit code &apos;1&apos;

Second Keyboard Interrupt, stopping...


Summary: 1 task failed:
  /home/maxin/poky/meta/recipes-core/base-files/base-files_3.0.14.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
NOTE: Sending SIGTERM to remaining 21 tasks


Once solution is to document the &quot;strace&quot; dependency for image-swab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54959</commentid>
    <comment_count>1</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-05 12:50:56 +0000</bug_when>
    <thetext>http://lists.openembedded.org/pipermail/openembedded-core/2015-October/111287.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54998</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-06 16:05:47 +0000</bug_when>
    <thetext>John, 

See http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-classes-image-swab for the new note.  I did a bit of rewording.  On your approval I will update the bug to RESOLVED/FIXED and reset the Doc flag to &quot;Done.&quot;

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55010</commentid>
    <comment_count>3</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-07 07:05:17 +0000</bug_when>
    <thetext>Hi Scott,

(In reply to comment #2)
&gt; John, 
&gt; 
&gt; See
&gt; http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#ref-classes-
&gt; image-swab for the new note.  I did a bit of rewording.  On your approval I
&gt; will update the bug to RESOLVED/FIXED and reset the Doc flag to &quot;Done.&quot;

The new line looks nice. Please update the bug RESOLVED/FIXED.
 
&gt; Thanks,
&gt; Scott

Regards,
Maxin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55031</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-07 13:55:57 +0000</bug_when>
    <thetext>Thanks for the review.  Done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>