<?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>1874</bug_id>
          
          <creation_ts>2012-01-04 10:27:47 +0000</creation_ts>
          <short_desc>locale-base-en-us package generated with bogus depends/provides</short_desc>
          <delta_ts>2012-01-19 15:45: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>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jin">jin</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17961</commentid>
    <comment_count>0</comment_count>
    <who name="Jin">jin</who>
    <bug_when>2012-01-04 10:27:47 +0000</bug_when>
    <thetext>I need to install some binary locales during rootfs generation; the problem happens with each language, let&apos;s assume German here.

My image recipe specifies IMAGE_LINGUAS = &quot;de-de&quot;, this correctly installs locale-base-de-de.

I do not know if locale-base-de-de is supposed to automatically pull in eglibc-binary-localedata-de-de, the actual problem is that there is no way to tell OE to install eglibc-binary-localedata-de-de in the image. Normally I would add it to RDEPENDS of one of my task, but in this case it has no effect.

The reason is, that locale-base-de-de tells opkg that it provides eglibc-binary-localedata-de-de, here&apos;s a sniplet from Packages (opkg Packages feed file generated by bitbake package-index):

Package: locale-base-de-de
Version: 2.12-r19
Depends: eglibc-binary-localedata-de-de
Provides: virtual-locale-de-de, virtual-locale-de, eglibc-binary-localedata-de-de

Btw now I also see that it lists eglibc-binary-localedata-de-de in Depends, so something is wrong here.

As a side note: the reason why I want to have eglibc-binary-localedata-de-de is, that I am using gettext to translate some shell stuff depending on locale settings. For this purpose gettext-runtime ships a /usr/bin/gettext.sh script that depends on the correct locale setting, for example LC_ALL=&quot;de_DE.UTF8&quot; for selecting the desired language. However, translation fails if the binary localedata package is not installed on the system.


To reproduce, simply build eglibc and analyse the generated locale-base-* packages. 


Exactly the same problem is already described on the mailing list:
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-August/008510.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18278</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-19 15:36:04 +0000</bug_when>
    <thetext>I commit went in the oecore to fix this.

commit 3754d75e49f285e530a3989888410b0877846eb6
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Mon Jan 9 11:33:09 2012 -0800

    locale: fix package&apos;s &quot;provides&quot; tag
    
    Fixes this bug: [YOCTO #1874]
    
    Fixes an issue where a locale package depends on one package while it
    also provides the same, as seen bellow.
    
    Package: locale-base-de-de
    Version: 2.12-r19
    Depends: eglibc-binary-localedata-de-de
    Provides: virtual-locale-de-de, virtual-locale-de,
    eglibc-binary-localedata-de-de
    
    Actually the eglibc-binary-localedata-de-de is ia separate package,
     and it should not be part of provides of the locale-base-de-de.
    
    (From OE-Core rev: 49c5ff7197b44c7d29d31506c2425b86bc2c1ff6)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18282</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-19 15:45:14 +0000</bug_when>
    <thetext>Closing the issue, if still see the same issue reopen this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>