-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tools: add missing headers #4630
Conversation
/cc @nodejs/build Perhaps we should explore trimming this so we don't have distributed header-bloat. @sung-su out of interest, what are you needing in node_internals.h that's making you run in to this problem? I'm not sure I've seen a project reading in there. |
Currently build is successful without "node_internals.h". |
node_internals.h is required by node.h which is why I guess it's installed. We probably either need to refactor out the dependency or include the full chain. @bnoordhuis any thoughts on this? /cc @nodejs/addon-api |
Looks like On the other hand nobody seems to use it. The build would fail and we would have a bug report, right? Also, the name If we decide to remove the headers I suggest we add something along the lines:
|
"node_internals.h" header is copied to the "{_prefix}/include/node" by "install.py". |
Yeah, I'm +1 on removing if we can do so safely, @agnat's error warning is probably a nice addition too. Anyone want to prepare a pull request for this? |
The "node_internals.h" is provided to 3rd party for use in add-ons. But, nobody can use this header. It should be removed to provides.
Marking semver-major and lgtm, @agnat can you do a quick review and provide an lgtm? |
ping @agnat |
Hm, ok. That disables the Maybe add a comment to drop the whole thing in major+2... Sorry for the late reply... |
@@ -153,7 +153,7 @@ NODE_EXTERN v8::Local<v8::Value> MakeCallback( | |||
} // namespace node | |||
|
|||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |||
#include "node_internals.h" | |||
# error node internals are not available in add-ons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks building node.js itself.
Not installing node_internals.h is the right thing to do, adding it in 32478ac was probably an oversight. The change to node.h will end up breaking the build, however. |
7da4fd4
to
c7066fb
Compare
Is this something we should do in v7 then? |
I'll close, install.py was fixed by #6913. |
Two header files were missing when expose the include file.
These headers are used in "node_internals.h".