<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>276098</bug_id>
          
          <creation_ts>2024-07-01 15:40:00 -0700</creation_ts>
          <short_desc>[WPE][cross-toolchain-helper] Fix issue with the icu installation and long paths</short_desc>
          <delta_ts>2024-07-01 16:16:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=276030</see_also>
    
    <see_also>https://unicode-org.atlassian.net/browse/ICU-22813</see_also>
    
    <see_also>https://github.com/unicode-org/icu/pull/3058</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2044067</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-07-01 15:40:00 -0700</bug_when>
    <thetext>There is a bug libicu that causes libicu to be installed incorrectly when the build system uses long paths (around 500 or more chars).

This was reported to icu here https://unicode-org.atlassian.net/browse/ICU-22813 and also summitted a PR here https://github.com/unicode-org/icu/pull/3058

The issue ended causing that nodejs couldn&apos;t run properly on the build system because icu was unproperly installed, making the chromium build fail which was introduced in 280438@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044071</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-07-01 15:51:25 -0700</bug_when>
    <thetext>The buildbots have a basepath larger than any developer machine. For example &quot;/home/buildbot/worker/WPE-Linux-RPi4-64bits-Mesa-Release-Perf-Build/build&quot; and that explains why this wasn&apos;t caught before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044072</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-07-01 15:54:16 -0700</bug_when>
    <thetext>Example of failed build: https://build.webkit.org/#/builders/894/builds/12478 
There you can see nodejs throwing an error related to ICU

| RuntimeError: Command &apos;/home/buildbot/worker/WPE-Linux-RPi4-64bits-Mesa-Release-Perf-Build/build/WebKitBuild/CrossToolChains/rpi4-64bits-mesa/build/tmp/work/cortexa72-poky-linux/chromium-ozone-wayland/124.0.6367.207/chromium-124.0.6367.207/out/Release/../../third_party/node/linux
| /home/buildbot/worker/WPE-Linux-RPi4-64bits-Mesa-Release-Perf-Build/build/WebKitBuild/CrossToolChains/rpi4-64bits-mesa/build/tmp/work/cortexa72-poky-linux/chromium-ozone-wayland/124.0.6367.207/chromium-124.0.6367.207/third_party/devtools-frontend/src/node_modules/glob/common.js:1
|   return a.localeCompare(b, &apos;en&apos;)
|            ^
| 
| RangeError: Internal error. Icu error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044075</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2024-07-01 15:55:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/30364</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044083</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-07-01 16:15:15 -0700</bug_when>
    <thetext>Committed 280556@main (745d34f6850a): &lt;https://commits.webkit.org/280556@main&gt;

Reviewed commits have been landed. Closing PR #30364 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2044084</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-01 16:16:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/130926997&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>