Bug 2056969

Summary: nodejs: Specify --with-default-icu-data-dir when using bootstrap build
Product: Red Hat Enterprise Linux 9 Reporter: Jan Staněk <jstanek>
Component: nodejsAssignee: Jan Staněk <jstanek>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Houska <jhouska>
Severity: low Docs Contact:
Priority: low    
Version: CentOS StreamCC: bstinson, jwboyer, midawson, zsvetlik
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nodejs-16.14.0-5.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2056971 2056972 2124299 (view as bug list) Environment:
Last Closed: 2023-08-21 14:58:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2056971, 2056972, 2124299    

Description Jan Staněk 2022-02-22 13:18:08 UTC
Description of problem: The configure option `--with-icu-default-data-dir` is not specified when using bootstrap build (rpmbuild --with=bootstrap). This causes the runtime to not use the full ICU data even if they are provided (package nodejs-full-i18n is installed).

*This is not currently an issue in CentOS Stream.* However, it will became an issue when/if modules are introduced. It is an issue in other RHEL releases.

---

With a test file `test-i18n.js`:

const january = new Date(9e8);
const spanish = new Intl.DateTimeFormat('es', { month: 'long' });
console.log(spanish.format(january));


When the data are not found:
$ node ./test-i18n.js
January

When the full data are found:
$ node ./test-i18n.js
enero

Comment 4 Jan Staněk 2022-03-29 13:20:33 UTC
Proposed fix MR: https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/merge_requests/12