Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: unbreak windows build of ICU source URL #55215

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Oct 1, 2024

  • configure: don't assume ICU source is a path, it's sometimes a URL

Also:

  • cleanup comments in configure.py and nodedownload.py
  • feat: add a way to set ICU url on windows: with-icu-source <url>
  • update docs for maintaining ICU per above url

Fixes: #55214

@srl295 srl295 added windows Issues and PRs related to the Windows platform. build Issues and PRs related to build files or the CI. python PRs and issues that require attention from people who are familiar with Python. icu Issues and PRs related to the ICU dependency. labels Oct 1, 2024
@srl295 srl295 self-assigned this Oct 1, 2024
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 1, 2024
@srl295 srl295 force-pushed the fix-icu-windows-configure-55214 branch 2 times, most recently from 37fa12d to f7c4f93 Compare October 1, 2024 16:13
- configure: don't assume ICU source is a path, it's sometimes a URL

Also:
- cleanup comments in configure.py and nodedownload.py
- feat: add a way to set ICU url on windows
- update docs for maintaining ICU per above url

Fixes: nodejs#55214
@StefanStojanovic
Copy link
Contributor

Sorry, I lost track of this when assigned to it, and only got back to it now. Anyway, when I run the command from the linked issue on this branch:

./configure --with-intl=full-icu --with-icu-source=https://github.com/unicode-org/icu/releases/download/release-76-rc/icu4c-76_1-src.tgz --openssl-no-asm

I get the following error:

Traceback (most recent call last):
  File "E:\work\node\configure.py", line 2218, in <module>
    configure_intl(output)
  File "E:\work\node\configure.py", line 1981, in configure_intl
    nodedownload.unpack(icu_tarball, icu_tmp_path)
  File "E:\work\node\tools\configure.d\nodedownload.py", line 73, in unpack
    packedsuffix = packedfile.lower().split('.')[-1]  # .zip, .tgz etc
AttributeError: 'NoneType' object has no attribute 'lower'

From what I saw the packedfile provided to the unpack function is None. There is also a previous error that causes this in retrievefile:

 <https://github.com/unicode-org/icu/releases/download/release-76-rc/icu4c-76_1rc-src.tgz>
 ** IOError [Errno socket error] [ASN1] nested asn1 error (_ssl.c:4030)

@srl295
Copy link
Member Author

srl295 commented Nov 13, 2024 via email

@StefanStojanovic
Copy link
Contributor

or maybe your environment is out of date SSL wise?

Since this was the first time I have ever tried --with-icu-source it's most likely on my side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. icu Issues and PRs related to the ICU dependency. needs-ci PRs that need a full CI run. python PRs and issues that require attention from people who are familiar with Python. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build: configure path refactoring broke ICU download on windows
3 participants