<?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>15302</bug_id>
          
          <creation_ts>2023-11-29 21:00:41 +0000</creation_ts>
          <short_desc>icu / icu-native: icudata file being disabled breaks nodejs / npm</short_desc>
          <delta_ts>2026-03-26 15:18:16 +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>4.0.14</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan-Simon Moeller">dl9pf</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>Archana.Polampalli</cc>
    
    <cc>dl9pf</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>steve</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>97360</commentid>
    <comment_count>0</comment_count>
    <who name="Jan-Simon Moeller">dl9pf</who>
    <bug_when>2023-11-29 21:00:41 +0000</bug_when>
    <thetext>The issue manifests under these conditions:

Build host/distro:  Ubuntu 18.04   (can reproduce in chroot env).

Ubuntu 18.04 does ship with icu60 . 
YP kirkstone does ship icu-70.1 , thus newer than build host.

To reproduce on a Ubuntu 18.04 host or chroot:

Install minimal YP dependencies as per doc site.

Clone YP kirkstone and add meta-oe to the layers for nodejs.

Run devshell for a package that has nodejs / npm in depends .

Call npm or nodejs --help .

user@legolas:~/build-html5/tmp/work/corei7-64-agl-linux/html5-mixer/1.0+gitAUTOINC+38587cf96c-r0/git# node --help
Usage: node [options] [ script.js ] [arguments]
       node inspect [options] [ script.js | host:port ] [arguments]Options:
node:internal/main/print_help:130
      return StringPrototypeLocaleCompare(name1, name2);
             ^RangeError: Internal error. Icu error.
    at String.localeCompare (&lt;anonymous&gt;)
    at node:internal/main/print_help:130:14
    at Array.sort (&lt;anonymous&gt;)
    at format (node:internal/main/print_help:121:25)
    at print (node:internal/main/print_help:214:23)
    at node:internal/main/print_help:231:1
root@legolas:~/AGL/master/build-html5/tmp/work/corei7-64-agl-linux/html5-mixer/1.0+gitAUTOINC+38587cf96c-r0/git# 


There is an ICU error. Digging deeper reveals, that node will look for the icu&apos;s .dat file (which we did disable). 

Enabling the .dat generation led to the issue #15301 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97375</commentid>
    <comment_count>1</comment_count>
    <who name="Jan-Simon Moeller">dl9pf</who>
    <bug_when>2023-11-30 14:20:49 +0000</bug_when>
    <thetext>Enabling the dat file does fix nodejs / npm .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97392</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-12-01 14:37:30 +0000</bug_when>
    <thetext>Isn&apos;t this a case of &quot;don&apos;t do that&quot;?  node needs the data but you turned it off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97393</commentid>
    <comment_count>3</comment_count>
    <who name="Jan-Simon Moeller">dl9pf</who>
    <bug_when>2023-12-01 14:47:37 +0000</bug_when>
    <thetext>Well, it was deactivated in upstream here:
https://git.yoctoproject.org/poky/commit/meta/recipes-support/icu?id=754866f32bfc1e3986199b353f037536f326ae77</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97395</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-12-01 15:12:38 +0000</bug_when>
    <thetext>Ah, thanks for the context.

I wonder if we can make the recipe notice that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100072</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-31 15:06:07 +0000</bug_when>
    <thetext>move to unassigned. feel free to take back if you have time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104834</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-26 15:18:16 +0000</bug_when>
    <thetext>Ideally we should generate that data file to fix the build race  but it&apos;s not a priority and we don&apos;t have a volunteer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>