<?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>11089</bug_id>
          
          <creation_ts>2017-02-20 16:18:42 +0000</creation_ts>
          <short_desc>License manifest creation fails</short_desc>
          <delta_ts>2020-01-30 12:27:14 +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>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>70835</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-20 16:18:42 +0000</bug_when>
    <thetext>Building core-image-sato:

bitbake core-image-sato
NOTE: Unable to use interactive mode for this terminal, using fallback
Parsing recipes: 100% |#################################################################################################################################################| Time: 0:00:05
Parsing of 856 .bb files complete (0 cached, 856 parsed). 1322 targets, 53 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.33.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;opensuse-42.2&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2+snapshot-20170220&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;master:e436a6398684d2872cb541f1cfb0f67b3618d15a&quot;

fails showing the following error:


The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:license_create_manifest(d)
     0003:
File: &apos;/home/lsandov1/bug10884/poky/meta/classes/license.bbclass&apos;, lineno: 48, function: license_create_manifest
     0044:    pkg_dic = {}
     0045:    for pkg in sorted(image_list_installed_packages(d)):
     0046:        pkg_info = os.path.join(d.getVar(&apos;PKGDATA_DIR&apos;),
     0047:                                &apos;runtime-reverse&apos;, pkg)
 *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
     0049:
     0050:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
     0051:        if not &quot;LICENSE&quot; in pkg_dic[pkg_name].keys():
     0052:            pkg_lic_name = &quot;LICENSE_&quot; + pkg_name
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/home/lsandov1/bug10884/poky/build/tmp/pkgdata/qemux86/runtime-reverse/warning:&apos;

ERROR: core-image-sato-1.0-r0 do_rootfs: Function failed: license_create_manifest
ERROR: Logfile of failure stored in: /home/lsandov1/bug10884/poky/build/tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.23662
NOTE: recipe core-image-sato-1.0-r0: task do_rootfs: Failed
ERROR: Task (/home/lsandov1/bug10884/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 5742 tasks of which 5292 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/lsandov1/bug10884/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

This is happening on a opensuse box, with the following version

cat /etc/os-release
NAME=&quot;openSUSE Leap&quot;
VERSION=&quot;42.2&quot;
ID=opensuse
ID_LIKE=&quot;suse&quot;
VERSION_ID=&quot;42.2&quot;
PRETTY_NAME=&quot;openSUSE Leap 42.2&quot;
ANSI_COLOR=&quot;0;32&quot;
CPE_NAME=&quot;cpe:/o:opensuse:leap:42.2&quot;
BUG_REPORT_URL=&quot;https://bugs.opensuse.org&quot;
HOME_URL=&quot;https://www.opensuse.org/&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70908</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-02-23 15:55:08 +0000</bug_when>
    <thetext>I suspect this is a race, as I see it occasionally on Debian too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86177</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-01-30 12:27:14 +0000</bug_when>
    <thetext>I haven&apos;t seen this since the bug was filed, so I suspect the race has been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>