<?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>10890</bug_id>
          
          <creation_ts>2017-01-06 22:31:20 +0000</creation_ts>
          <short_desc>Selftest OePkgdataUtilTests fails on poky-tiny distro</short_desc>
          <delta_ts>2017-04-24 15:00:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>juan.m.cruz.alcaraz</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="oscar lopez arandas">oscarx.lopez.arandas</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>69600</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-06 22:31:20 +0000</bug_when>
    <thetext>If DISTRO is set to poky-tiny and oe-selftest --run-all is executed, the OePkgdataUtilTests test case fails because the distro uses musl instead of glibc target, the latter being used as a target in several places.

Some log obtained from local AB:

----snip----
======================================================================
ERROR [0.000s]: setUpClass (oeqa.selftest.pkgdata.OePkgdataUtilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/selftest/pkgdata.py&quot;, line 19, in setUpClass
    bitbake(&apos;glibc busybox zlib bash&apos;)
  File &quot;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py&quot;, line 143, in bitbake
    return runCmd(cmd, ignore_status, timeout, **options)
  File &quot;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/meta/lib/oeqa/utils/commands.py&quot;, line 121, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, result.output))
AssertionError: Command &apos;bitbake  glibc busybox zlib bash&apos; returned non-zero exit status 1:
NOTE: Started PRServer with DBfile: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-poky-tiny/build/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 36969, PID: 32313
Loading cache...done.
ERROR: Nothing PROVIDES &apos;glibc&apos;
ERROR: glibc was skipped: incompatible with host i586-poky-linux-musl (not in COMPATIBLE_HOST)
Loaded 1320 entries from dependency cache.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
----snip----</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71884</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-03-29 23:42:50 +0000</bug_when>
    <thetext>patch sent and tracked in  https://patchwork.openembedded.org/series/6064/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71931</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-03-30 21:16:19 +0000</bug_when>
    <thetext>v1 was rejected due to proposed logic. instead a new series was sent, this time replacing glibc for zlib as suggested by rburton. patch sent and tracked at

https://patchwork.openembedded.org/series/6093/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72025</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-04-03 13:34:19 +0000</bug_when>
    <thetext>Merged in OE-Core b77cf437e89a2ec21de6a69d5e34736925f1eeba.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72598</commentid>
    <comment_count>4</comment_count>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-04-18 16:03:23 +0000</bug_when>
    <thetext>If DISTRO is set to poky-tiny and oe-selftest --run-all is executed, the OePkgdataUtilTests test case fails 

testimage: core-image-sato-core2-32.wic
 
Build Configuration:
BB_VERSION        = &quot;1.33.3&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i686-poky-linux&quot;
MACHINE           = &quot;core2-32&quot;
DISTRO            = &quot;poky - tiny&quot;
DISTRO_VERSION    = &quot;2.2+snapshot-20170417&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
COMMIT: eff56e4f0d59b1d965a68e4f009b7f07717b7edd

    STEPS:
git clone git://git.yoctoproject.org/poky&quot;

b)In poky directory checkout on the desired commit:

$ git checkout &lt;commit-id&gt;

3. Source the environment, from poky directory

 $ cd ~/poky 

$ source oe-init-build-env

4. Edit local.conf. PATH
 5. In ~poky/build directory, in command line, type the following commands:

$ bitbake rpm psplash run-postinsts
$ bitbake package-index

NOTE: After finishing the tasks, copy the image manifest (core-image-sato-sdk-genericx86.manifest) and the testdata.json (core-image-sato-sdk-genericx86.testdata.json) from autobuilder at the following path: &quot;~poky/build/tmp/deploy/images/genericx86/&quot; ( if &quot;/tmp/deploy/images/genericx86&quot; does not exist create new directories with this path)

$ bitbake core-image-sato-sdk -c testimage

$ oe-selftest --run-all

EXPECTED OUTCOME:
the OePkgdataUtilTests test case fails 

ACTUAL OUTCOME:
the OePkgdataUtilTests test case successfully

RESULTS  IN  ATTACHMENT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72602</commentid>
    <comment_count>5</comment_count>
      <attachid>3733</attachid>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-04-18 16:12:32 +0000</bug_when>
    <thetext>Created attachment 3733
oe-selftest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72794</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-24 15:00:45 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; If DISTRO is set to poky-tiny and oe-selftest --run-all is executed, the
&gt; OePkgdataUtilTests test case fails 
&gt; 
&gt; testimage: core-image-sato-core2-32.wic
&gt;  
&gt; Build Configuration:
&gt; BB_VERSION        = &quot;1.33.3&quot;
&gt; BUILD_SYS         = &quot;x86_64-linux&quot;
&gt; NATIVELSBSTRING   = &quot;universal&quot;
&gt; TARGET_SYS        = &quot;i686-poky-linux&quot;
&gt; MACHINE           = &quot;core2-32&quot;
&gt; DISTRO            = &quot;poky - tiny&quot;
&gt; DISTRO_VERSION    = &quot;2.2+snapshot-20170417&quot;
&gt; TUNE_FEATURES     = &quot;m32 core2&quot;
&gt; COMMIT: eff56e4f0d59b1d965a68e4f009b7f07717b7edd
&gt; 
&gt;     STEPS:
&gt; git clone git://git.yoctoproject.org/poky&quot;
&gt; 
&gt; b)In poky directory checkout on the desired commit:
&gt; 
&gt; $ git checkout &lt;commit-id&gt;
&gt; 
&gt; 3. Source the environment, from poky directory
&gt; 
&gt;  $ cd ~/poky 
&gt; 
&gt; $ source oe-init-build-env
&gt; 
&gt; 4. Edit local.conf. PATH
&gt;  5. In ~poky/build directory, in command line, type the following commands:
&gt; 
&gt; $ bitbake rpm psplash run-postinsts
&gt; $ bitbake package-index
&gt; 
&gt; NOTE: After finishing the tasks, copy the image manifest
&gt; (core-image-sato-sdk-genericx86.manifest) and the testdata.json
&gt; (core-image-sato-sdk-genericx86.testdata.json) from autobuilder at the
&gt; following path: &quot;~poky/build/tmp/deploy/images/genericx86/&quot; ( if
&gt; &quot;/tmp/deploy/images/genericx86&quot; does not exist create new directories with
&gt; this path)
&gt; 
&gt; $ bitbake core-image-sato-sdk -c testimage
&gt; 
&gt; $ oe-selftest --run-all
&gt; 
&gt; EXPECTED OUTCOME:
&gt; the OePkgdataUtilTests test case fails 
&gt; 
&gt; ACTUAL OUTCOME:
&gt; the OePkgdataUtilTests test case successfully
&gt; 
&gt; RESULTS  IN  ATTACHMENT


Oscar, so we should reopen this one, right?

Can you please attached the whole log? The current attach has just all test PASSED so it does not help much.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3733</attachid>
            <date>2017-04-18 16:12:32 +0000</date>
            <delta_ts>2017-04-18 16:12:32 +0000</delta_ts>
            <desc>oe-selftest</desc>
            <filename>oe-selftest</filename>
            <type>application/octet-stream</type>
            <size>2120</size>
            <attacher name="oscar lopez arandas">oscarx.lopez.arandas</attacher>
            
              <data encoding="base64">MTY6MTE6MjQgLSBvZS1zZWxmdGVzdCAtIFJFU1VMVFMgLSBUZXN0Y2FzZSAxMzQ1OiBQQVNTRUQK
MTY6MTE6MzMgLSBvZS1zZWxmdGVzdCAtIFJFU1VMVFMgLSBUZXN0Y2FzZSAxMTk1OiBQQVNTRUQK
MTY6MTE6MzkgLSBvZS1zZWxmdGVzdCAtIFJFU1VMVFMgLSBUZXN0Y2FzZSA5NTogUEFTU0VECjE2
OjExOjQzIC0gb2Utc2VsZnRlc3QgLSBSRVNVTFRTIC0gVGVzdGNhc2UgOTM6IFBBU1NFRAoxNjox
MjoxMCAtIG9lLX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