<?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>13612</bug_id>
          
          <creation_ts>2019-10-29 14:19:45 +0000</creation_ts>
          <short_desc>meta-skeleton  fails yocto-check-layer</short_desc>
          <delta_ts>2021-06-28 00:36:29 +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>3.0</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>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Scott Weaver">weaverjs</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>weaverjs</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85468</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-29 14:19:45 +0000</bug_when>
    <thetext>INFO: Detected layers:
INFO: meta-skeleton: LayerType.SOFTWARE, /home/akuster/oss/maint/poky/meta-skeleton
INFO: 
INFO: Setting up for meta-skeleton(LayerType.SOFTWARE), /home/akuster/oss/maint/poky/meta-skeleton
INFO: Getting initial bitbake variables ...
INFO: Getting initial signatures ...
INFO: Adding layer meta-skeleton
INFO: Starting to analyze: meta-skeleton
INFO: ----------------------------------------------------------------------
INFO: skipped &quot;BSPCheckLayer: Layer meta-skeleton isn&apos;t BSP one.&quot;
INFO: test_layerseries_compat (common.CommonCheckLayer)
INFO:  ... ok
INFO: test_parse (common.CommonCheckLayer)
INFO:  ... ok
INFO: test_readme (common.CommonCheckLayer)
INFO:  ... FAIL
INFO: Traceback (most recent call last):
  File &quot;/home/akuster/oss/maint/poky/scripts/lib/checklayer/cases/common.py&quot;, line 17, in test_readme
    msg=&quot;Layer doesn&apos;t contains README file.&quot;)
AssertionError: False is not true : Layer doesn&apos;t contains README file.

INFO: test_show_environment (common.CommonCheckLayer)
INFO:  ... ok
INFO: test_signatures (common.CommonCheckLayer)
INFO:  ... FAIL

Stdout:
Loading cache...done.
Loaded 1303 entries from dependency cache.
INFO: Traceback (most recent call last):
  File &quot;/home/akuster/oss/maint/poky/scripts/lib/checklayer/cases/common.py&quot;, line 55, in test_signatures
    self.fail(&apos;Adding layer %s changed signatures.\n%s&apos; % (self.tc.layer[&apos;name&apos;], msg))
AssertionError: Adding layer meta-skeleton changed signatures.
41 signatures changed, initial differences (first hash before, second after):
   busybox:do_fetch: be88f59ada8e67e2136390928338f9843618f4f29d7af5468d1b8a812983d8f8 -&gt; 4fdb5e02282e9b6079382b4a9c0418f750feeb69fac744577b6373cb955d3710
      bitbake-diffsigs --task busybox do_fetch --signature be88f59ada8e67e2136390928338f9843618f4f29d7af5468d1b8a812983d8f8 4fdb5e02282e9b6079382b4a9c0418f750feeb69fac744577b6373cb955d3710
      NOTE: Starting bitbake server...
      basehash changed from d55a26ea0f2bfb2dbbc3cc151208d41ba07872c7a3467af917cedbe703250579 to 668cb50fa6b8186eea92d214bad4c9393872018d55e4f891072b8774cf0a557e
      Variable SRC_URI value changed:
      &quot;http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball            file://busybox-udhcpc-no_deconfig.patch            file://find-touchscreen.sh            file://busybox-cron            file://busybox-httpd            file://busybox-udhcpd            file://default.script            file://simple.script            file://hwclock.sh            file://syslog            file://syslog-startup.conf            file://syslog.conf            file://busybox-syslog.default            file://mdev            file://mdev.conf            file://mdev-mount.sh            file://defconfig            file://busybox-syslog.service.in            file://busybox-klogd.service.in            file://fail_on_no_media.patch            file://run-ptest            file://inetd.conf            file://inetd            file://login-utilities.cfg            file://recognize_connmand.patch            file://busybox-cross-menuconfig.patch            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch            file://mount-via-label.cfg            file://sha1sum.cfg            file://sha256sum.cfg            file://getopts.cfg            file://resize.cfg            ${@[&quot;&quot;, &quot;file://init.cfg&quot;][(d.getVar(&apos;VIRTUAL-RUNTIME_init_manager&apos;) == &apos;busybox&apos;)]}            ${@[&quot;&quot;, &quot;file://mdev.cfg&quot;][(d.getVar(&apos;VIRTUAL-RUNTIME_dev_manager&apos;) == &apos;busybox-mdev&apos;)]}            file://syslog.cfg            file://unicode.cfg            file://rcS            file://rcK            file://makefile-libbb-race.patch            file://0001-testsuite-check-uudecode-before-using-it.patch            file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch            file://0001-du-l-works-fix-to-use-145-instead-of-144.patch  {+ 	    file://no_rfkill.cfg            +}&quot;
      Dependency on checksum of file no_rfkill.cfg was added


Stdout:
Loading cache...done.
Loaded 1303 entries from dependency cache.

INFO: test_world (common.CommonCheckLayer)
INFO:  ... ok
INFO: skipped &quot;DistroCheckLayer: Layer meta-skeleton isn&apos;t Distro one.&quot;
INFO: ======================================================================
INFO: FAIL: test_readme (common.CommonCheckLayer)
INFO: ----------------------------------------------------------------------
INFO: Traceback (most recent call last):
  File &quot;/home/akuster/oss/maint/poky/scripts/lib/checklayer/cases/common.py&quot;, line 17, in test_readme
    msg=&quot;Layer doesn&apos;t contains README file.&quot;)
AssertionError: False is not true : Layer doesn&apos;t contains README file.

INFO: ======================================================================
INFO: FAIL: test_signatures (common.CommonCheckLayer)
INFO: ----------------------------------------------------------------------
INFO: Traceback (most recent call last):
  File &quot;/home/akuster/oss/maint/poky/scripts/lib/checklayer/cases/common.py&quot;, line 55, in test_signatures
    self.fail(&apos;Adding layer %s changed signatures.\n%s&apos; % (self.tc.layer[&apos;name&apos;], msg))
AssertionError: Adding layer meta-skeleton changed signatures.
41 signatures changed, initial differences (first hash before, second after):
   busybox:do_fetch: be88f59ada8e67e2136390928338f9843618f4f29d7af5468d1b8a812983d8f8 -&gt; 4fdb5e02282e9b6079382b4a9c0418f750feeb69fac744577b6373cb955d3710
      bitbake-diffsigs --task busybox do_fetch --signature be88f59ada8e67e2136390928338f9843618f4f29d7af5468d1b8a812983d8f8 4fdb5e02282e9b6079382b4a9c0418f750feeb69fac744577b6373cb955d3710
      NOTE: Starting bitbake server...
      basehash changed from d55a26ea0f2bfb2dbbc3cc151208d41ba07872c7a3467af917cedbe703250579 to 668cb50fa6b8186eea92d214bad4c9393872018d55e4f891072b8774cf0a557e
      Variable SRC_URI value changed:
      &quot;http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball            file://busybox-udhcpc-no_deconfig.patch            file://find-touchscreen.sh            file://busybox-cron            file://busybox-httpd            file://busybox-udhcpd            file://default.script            file://simple.script            file://hwclock.sh            file://syslog            file://syslog-startup.conf            file://syslog.conf            file://busybox-syslog.default            file://mdev            file://mdev.conf            file://mdev-mount.sh            file://defconfig            file://busybox-syslog.service.in            file://busybox-klogd.service.in            file://fail_on_no_media.patch            file://run-ptest            file://inetd.conf            file://inetd            file://login-utilities.cfg            file://recognize_connmand.patch            file://busybox-cross-menuconfig.patch            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch            file://mount-via-label.cfg            file://sha1sum.cfg            file://sha256sum.cfg            file://getopts.cfg            file://resize.cfg            ${@[&quot;&quot;, &quot;file://init.cfg&quot;][(d.getVar(&apos;VIRTUAL-RUNTIME_init_manager&apos;) == &apos;busybox&apos;)]}            ${@[&quot;&quot;, &quot;file://mdev.cfg&quot;][(d.getVar(&apos;VIRTUAL-RUNTIME_dev_manager&apos;) == &apos;busybox-mdev&apos;)]}            file://syslog.cfg            file://unicode.cfg            file://rcS            file://rcK            file://makefile-libbb-race.patch            file://0001-testsuite-check-uudecode-before-using-it.patch            file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch            file://0001-du-l-works-fix-to-use-145-instead-of-144.patch  {+ 	    file://no_rfkill.cfg            +}&quot;
      Dependency on checksum of file no_rfkill.cfg was added


Stdout:
Loading cache...done.
Loaded 1303 entries from dependency cache.
----------------------------------------------------------------------
INFO: Ran 6 tests in 173.501s
INFO: FAILED
INFO:  (failures=2, skipped=2)
INFO: 
INFO: Summary of results:
INFO: 
INFO: meta-skeleton ... FAIL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85471</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-10-31 15:42:15 +0000</bug_when>
    <thetext>The README is a good point.  To be honest I&apos;d like to see what the point of meta-skeleton is.

Is the fix to make the busybox bbappend use a distro override, such as _poky?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88023</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-08-24 08:59:55 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The README is a good point.  To be honest I&apos;d like to see what the point of
&gt; meta-skeleton is.
&gt; 
&gt; Is the fix to make the busybox bbappend use a distro override, such as _poky?

distro override is not working.. I am very confused ( but that&apos;s not unusually)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90297</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-06 15:27:07 +0000</bug_when>
    <thetext>The README is an easy fix. Ask for help if needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90584</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-06-05 19:03:05 +0000</bug_when>
    <thetext>The issue here appears to be related to the definition of a SOFTWARE layer (as opposed to a MACHINE or DISTRO layer) and whether it is allowed to modify signatures. The yocto-check-layer tool provides a flag to disable signature checks but it is enabled by default and because this layer contains a bbappend that modifies the fetch task signature, the signature test will fail.

I found this discussion regarding this subject:
https://lists.openembedded.org/g/openembedded-core/topic/72336757#99420

It appears from this post that a “Yocto Compatible” SOFTWARE layer shall not modify signatures. Therefore, the bbappend recipe in meta-skeleton should be removed or the SRC_URI append deleted from the bbappend file. If it’s more valuable as an example to keep this file than having meta-skeleton demonstrate a “Yocto Compatible” layer then the check should be run using the ‘--without-software-layer-signature-check’.

I don’t know the full history or the current requirements for a Yocto compatible layer (other than it pass the yocto-check-layer test) but I suggest fixing the missing readme file which could include a note explaining that this layer is not meant to be a compatible layer and to run the check using the ‘--without-software-layer-signature-check’ flag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90699</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-06-17 22:37:27 +0000</bug_when>
    <thetext>This patch was submitted to close this issue.
https://lists.openembedded.org/g/openembedded-core/message/152791</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90768</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Weaver">weaverjs</who>
    <bug_when>2021-06-27 18:37:46 +0000</bug_when>
    <thetext>This is v2 of the patch to satisfy the readme and the signature tests which uses a dummy distro append to the busybox bbappend.

https://git.openembedded.org/openembedded-core/commit/?id=b2419bfaf28903d52dd88a3db7985c71e8ed814a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90769</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-06-28 00:36:29 +0000</bug_when>
    <thetext>Thanks Scott!

If you ever want to help out some more, take a look at the bugzilla, perhaps at 
  https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs
or
  https://wiki.yoctoproject.org/wiki/Bug_Triage#Medium.2B_3.4_Unassigned_Enhancements.2FBugs

../Randy</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>