<?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>1215</bug_id>
          
          <creation_ts>2011-07-06 05:10:01 +0000</creation_ts>
          <short_desc>Can&apos;t build minimal image with IMAGE_LINGUAS set</short_desc>
          <delta_ts>2011-07-10 16:40:57 +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>Meta-yocto</product>
          <component>meta-yocto</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>14554</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-06 05:10:01 +0000</bug_when>
    <thetext>If IMAGE_LINGUAS is set non-empty, building of minimal image will fail.
This is a recent regression - all of the core*minimal images force IMAGE_LINGUAS
to an empty set.  I have a minimal image which was based on core-image-minimal
from some time ago that does not manipulate IMAGE_LINGUAS which now fails.

Try this (from scratch):
  % bitbake my-min-image
will result in this error:
  | Processing locale-base-en-us...
  | Unable to find package locale-base-en-us!
  | ERROR: Function &apos;do_rootfs&apos; failed (see /home/local/bb_latest/tmp/work/beagleboard-poky-linux-gnueabi/my-min-image-1.0-r0/temp/log.do_rootfs.30041 for further information)

Obviously, the internal rules associated with IMAGE_LINGUAS cause the locale-base-en-us package to be needed by the image, but these are not built by this image.  Building a more complicated image, e.g. core-image-sato, does properly build the locale-base-* packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14555</commentid>
    <comment_count>1</comment_count>
      <attachid>184</attachid>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-06 05:10:37 +0000</bug_when>
    <thetext>Created attachment 184
Minimal image recipe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14556</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-07-06 05:55:42 +0000</bug_when>
    <thetext>Once you&apos;ve run &quot;bitbake eligbc-locale&quot;, does this still happen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14558</commentid>
    <comment_count>3</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-06 06:56:18 +0000</bug_when>
    <thetext>Yes, it does build after building eglibc-locale

Perhaps there should be an explicit dependency on virtual/libc-locale?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14559</commentid>
    <comment_count>4</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-06 07:45:23 +0000</bug_when>
    <thetext>BTW, why does it take so long to build eglibc-locale?
Using ipk:
  real    14m0.503s
  user    8m19.703s
  sys     4m19.037s
Using rpm:
  real    22m28.906s
  user    9m35.337s
  sys     12m8.473s

My build host is reasonably fast (Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz)
and I run with
  BB_NUMBER_THREADS = &quot;4&quot;
  PARALLEL_MAKE = &quot;-j 4&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14563</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-06 08:23:23 +0000</bug_when>
    <thetext>Note: when I added &quot;libc-locale&quot; to my image (since eglibc-locale is a virtual provider for this package), I get this error:

ERROR: Trying to resolve runtime dependency libc-locale resulted in conflicting PREFERRED_PROVIDER entries being found.
The providers found were: [&apos;virtual:nativesdk:/tmp/poky-amltd/meta/recipes-core/eglibc/eglibc_2.13.bb&apos;, &apos;/tmp/poky-amltd/meta/recipes-core/eglibc/eglibc_2.13.bb&apos;]
The PREFERRED_PROVIDER entries resulting in this conflict were: [&apos;PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk&apos;, &apos;PREFERRED_PROVIDER_virtual/libc = eglibc&apos;]
NOTE: multiple providers are available for runtime libc-locale (eglibc, eglibc-nativesdk, glibc-nativesdk, glibc)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libc-locale

I also tried adding
  PREFERRED_PROVIDER_virtual/libc-nativesdk ?= &quot;eglibc-nativesdk&quot;
  PREFERRED_PROVIDER_virtual/libc-locale ?= &quot;eglibc-locale&quot;
to my distro.conf - no improvement</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14567</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-07-06 09:27:13 +0000</bug_when>
    <thetext>libc-locals does the work that used to be done in libc&apos;s do_package so you&apos;ll see that is faster and this step now takes the time. This does mean the system can do various things in the meantime without waiting for that though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14573</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-06 17:39:48 +0000</bug_when>
    <thetext>*** Bug 1216 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14592</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-07-07 08:56:43 +0000</bug_when>
    <thetext>-RDEPENDS += &quot;${IMAGE_INSTALL}&quot;
+RDEPENDS += &quot;${IMAGE_INSTALL} ${LINGUAS_INSTALL}&quot;

in image.bbclass could potentially fix this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14593</commentid>
    <comment_count>9</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-07 09:19:33 +0000</bug_when>
    <thetext>Looks like it works :-)  I tested it with IMAGE_LINGUAS set non-empty and eglibc-locale was needed.  It also works fine when IMAGE_LINGUAS is empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14644</commentid>
    <comment_count>10</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-07-08 15:31:45 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f7b11f2fd5e51ad0f9e6f8d2cf02f41744eaa219</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14653</commentid>
    <comment_count>11</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-10 05:48:56 +0000</bug_when>
    <thetext>I thought this was fixed.  I had tested earlier in a tree which had been successfully built like this:
  * Build a minimal image
  * bitbake eglibc-locale -ccleansstate
  * Rebuild image without patch - fails
  * Rebuild image with patch - succeeds

Sadly, a build 100% from scratch, even with the patch still fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14654</commentid>
    <comment_count>12</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-10 06:09:34 +0000</bug_when>
    <thetext>More about the failure - it seems to be looking for a file in the wrong place:
ERROR: Function &apos;do_install_locale&apos; failed (see /home/local/map8100_poky/tmp/work/armv5te-amltd-linux-gnueabi/eglibc-2.13-r6+svnr14157/temp/log.do_install_locale.12171 for further information)
ERROR: Logfile of failure stored in: /home/local/map8100_poky/tmp/work/armv5te-amltd-linux-gnueabi/eglibc-2.13-r6+svnr14157/temp/log.do_install_locale.12171
Log data follows:
| mv: cannot stat `/home/local/map8100_poky/tmp/work/armv5te-amltd-linux-gnueabi/eglibc-2.13-r6+svnr14157/image/usr/bin/localedef&apos;: No such file or directory
| ERROR: Function &apos;do_install_locale&apos; failed (see /home/local/map8100_poky/tmp/work/armv5te-amltd-linux-gnueabi/eglibc-2.13-r6+svnr14157/temp/log.do_install_locale.12171 for further information)

However, when I find a find for localedef in the tmp tree, I only find it at
/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r5+svnr14157/image/usr/include/eglibc-locale-internal-armv7a-amltd-linux-gnueabi/usr/bin/localedef

which I think is a rather strange place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14655</commentid>
    <comment_count>13</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-07-10 16:40:57 +0000</bug_when>
    <thetext>Sorry, this was operator error :-(  My build was missing ${DISTRO_FEATURES_LIBC} in DISTRO_FEATURES which caused these problems.  The build is working fine now.

Note: per bug #1212, messing up DISTRO_FEATURES, especially the DISTRO_FEATURES_LIBC functions, causes lots of errors, many hard to associate back to the source of misconfiguration.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>184</attachid>
            <date>2011-07-06 05:10:37 +0000</date>
            <delta_ts>2011-07-06 05:10:37 +0000</delta_ts>
            <desc>Minimal image recipe</desc>
            <filename>my-min-image.bb</filename>
            <type>application/octet-stream</type>
            <size>155</size>
            <attacher name="Gary Thomas">gary</attacher>
            
              <data encoding="base64">IwojIE1pbmltYWwgaW1hZ2UKIwpMSUNfRklMRVNfQ0hLU1VNID0gImZpbGU6Ly8ke0NPUkVCQVNF
fS9MSUNFTlNFO21kNT0zZjQwZDc5OTQzOTcxMDkyODVlYzdiODFmZGViM2I1OCAiCgpJTUFHRV9J
TlNUQUxMID0gInRhc2stY29yZS1ib290ICIKaW5oZXJpdCBpbWFnZQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>