<?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>12905</bug_id>
          
          <creation_ts>2018-08-30 04:05:19 +0000</creation_ts>
          <short_desc>core-image-lsb-sdk failed with opkg backend</short_desc>
          <delta_ts>2018-09-06 14:29:39 +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.6</version>
          <rep_platform>All</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>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          <cc>christophevr</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>openatv</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>81453</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2018-08-30 04:05:19 +0000</bug_when>
    <thetext>After the below change for locale optimizations

http://git.openembedded.org/openembedded-core/commit/?id=8ffd93bdb09b0a4a84b27dafcd684c6abba392ed

opkg backend has started to fail, rpm backend ( poky default ) is working ok

to reproduce set in local.conf

PACKAGE_CLASSES = &quot;package_ipk&quot;

then 

bitbake core-image-lsb-sdk

It will fail in do_rootfs task

Here is sequence of events

Installing binary locale
=========================
Installing glibc-binary-localedata-en-bw.iso-8859-1 (2.28) on root
Downloading file:/mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/oe-rootfs-repo/riscv64/glibc-binary-localedata-en-bw.iso-8859-1_2.28-r0.2_riscv64.ipk.

configuring it
===============
Configuring glibc-binary-localedata-en-bw.iso-8859-1.

uninstalling binary locale
==========================
/mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/opkg.conf -t /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/temp/ipktemp/ -o /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   --force-depends remove ....


Here it runs into issues

Removing glibc-binary-localedataCollected errors:
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-en-bw.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-br-fr.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-ar-jo.iso-8859-6.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-de-de.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-de-at.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-so-ke.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-bs-ba.iso-8859-2.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-ko-kr.euc-kr.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-es-sv.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-zh-cn.gb18030.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-tl-ph.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-ar-kw.iso-8859-6.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-sl-si.iso-8859-2.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-sv-se.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-ar-om.iso-8859-6.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-is-is.iso-8859-1.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-ar-ly.iso-8859-6.list: No such file or directory.
 * pkg_get_installed_files: Failed to open /mnt/a/oe/build/tmp/work/qemuriscv64-bec-linux/core-image-lsb-sdk/1.0-r0/rootfs///var/lib/opkg/info/glibc-binary-localedata-zu-za.iso-8859-1.list: No such file or directory.

As can be seen, all the failing packages are having a dot(.) appear in their names. Other glibc-binary-localedata-* packages gets removed without errors.

I wonder if this is a limitation/bug in opkg, in any case this will break many such builds with opkg backend, which is general default in OE-Core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81499</commentid>
    <comment_count>1</comment_count>
    <who name="ChristopheCvr">christophevr</who>
    <bug_when>2018-09-05 08:26:52 +0000</bug_when>
    <thetext>yes that is the commit who start to fail the do_rootfs phase not only by 
core-image-lsb-sdk

In general the whole package-manager.py and rootfs.py fails.

this bug has same origin as bug report :

https://bugzilla.yoctoproject.org/show_bug.cgi?id=12900</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81506</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-09-05 17:04:36 +0000</bug_when>
    <thetext>Yep, Khem is reight, this is an opkg bug. Opkg is using a glob that is too broad when selecting which metadata files to delete. I posted a fix on the opkg mailing list, as well as an update to the opkg recipe on the oe ml.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81508</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-05 20:41:49 +0000</bug_when>
    <thetext>Thanks Alejandro!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81516</commentid>
    <comment_count>4</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-09-06 14:29:39 +0000</bug_when>
    <thetext>Fixed on commit 715180e41884393d4f2f234dd557df61a21c4745</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>