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: remove dependency on icu io library #13656

Closed
wants to merge 2 commits into from

Conversation

bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Jun 13, 2017

The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.

Split into two commits for easier review.

CI: https://ci.nodejs.org/job/node-test-pull-request/8629/
CI: https://ci.nodejs.org/job/node-test-pull-request/8630/

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. i18n-api Issues and PRs related to the i18n implementation. tools Issues and PRs related to the tools directory. labels Jun 13, 2017
@bnoordhuis
Copy link
Member Author

@srl295 Apropos tools/icu/patches, am I right the 54 and 55 directories can be deleted? Building against those versions doesn't work any more, AFAIK, or does it?

Copy link
Contributor

@refack refack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that everything still works, rubber stamp LGTM

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm if it still builds. I don't see a change to tools/icu/*.py (forget where) to keep io from coming back the next time an icu is pulled in.

@srl295
Copy link
Member

srl295 commented Jun 13, 2017

Building against those versions doesn't work any more, AFAIK, or does it?

It should still work.

srl295
srl295 previously requested changes Jun 13, 2017
Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.
The previous commit removed the dependency on the code in that
directory.  This commit removes the directory itself and shrinks
the source tarball by about 200 kB.
@bnoordhuis
Copy link
Member Author

@srl295 Updated. Am I right that file is only run manually? I.e., not as part of any build step?

@bnoordhuis
Copy link
Member Author

@bnoordhuis bnoordhuis dismissed srl295’s stale review June 21, 2017 13:46

comments addressed

@refack
Copy link
Contributor

refack commented Jun 21, 2017

Windows fail looks like infra, rerun: https://ci.nodejs.org/job/node-test-commit-windows-fanned/9948/

@bnoordhuis bnoordhuis closed this Jun 26, 2017
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request Jun 26, 2017
The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.

PR-URL: nodejs#13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request Jun 26, 2017
The previous commit removed the dependency on the code in that
directory.  This commit removes the directory itself and shrinks
the source tarball by about 200 kB.

PR-URL: nodejs#13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
@bnoordhuis
Copy link
Member Author

Landed in 87d682b...6bf4c23, cheers.

addaleax pushed a commit that referenced this pull request Jun 29, 2017
The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
addaleax pushed a commit that referenced this pull request Jun 29, 2017
The previous commit removed the dependency on the code in that
directory.  This commit removes the directory itself and shrinks
the source tarball by about 200 kB.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
@addaleax addaleax mentioned this pull request Jun 29, 2017
addaleax pushed a commit that referenced this pull request Jul 11, 2017
The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 11, 2017
The previous commit removed the dependency on the code in that
directory.  This commit removes the directory itself and shrinks
the source tarball by about 200 kB.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 18, 2017
The library is only used in a single build-time tool where it can be
easily substituted by regular libc I/O functions.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 18, 2017
The previous commit removed the dependency on the code in that
directory.  This commit removes the directory itself and shrinks
the source tarball by about 200 kB.

PR-URL: #13656
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
@MylesBorins
Copy link
Contributor

Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label.

Copy link
Member

@srl295 srl295 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -56,6 +56,7 @@ def icu_ignore(dir, files):
elif subdir == 'source':
ign = ign + ['layout','samples','test','extra','config','layoutex','allinone','data']
ign = ign + ['runConfigureICU','install-sh','mkinstalldirs','configure']
ign = ign + ['io']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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. i18n-api Issues and PRs related to the i18n implementation. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants