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

OpenSSL include files double NodeJS install size, starting with Node 18 #48532

Closed
jdmarshall opened this issue Jun 23, 2023 · 1 comment
Closed
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. openssl Issues and PRs related to the OpenSSL dependency.

Comments

@jdmarshall
Copy link

jdmarshall commented Jun 23, 2023

Version

No response

Platform

Linux 02e1190386f1 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 Linux

Darwin C02YR4FKLVDQ 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

Examine Docker images

  • node:20-alpine3.16
  • node:16-alpine3.16

or

  • ~/.nvm/versions/node/v16.19.1
  • ~/.nvm/versions/node/v18.16.1

du -sk | sort -n

down through the directories, you'll find an extra 48-54 MB of cross platform include files in

/usr/local/include/node/openssl

How often does it reproduce? Is there a required condition?

Node 18 and Node 20, all versions

What is the expected behavior? Why is that the expected behavior?

Don't bloat out Node with unused header files

What do you see instead?

A different way to link files, or a tarball perhaps

Additional information

No response

@richardlau
Copy link
Member

Duplicate of #46451. There was a previous attempt to reduce the size but it caused problems and was reverted #46451 (comment).

@bnoordhuis bnoordhuis closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2023
@bnoordhuis bnoordhuis added duplicate Issues and PRs that are duplicates of other issues or PRs. openssl Issues and PRs related to the OpenSSL dependency. labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. openssl Issues and PRs related to the OpenSSL dependency.
Projects
None yet
Development

No branches or pull requests

3 participants