electron: difference between electron-source.electron.headers
and electron-bin.headers
#363349
Labels
0.kind: bug
Something is broken
Describe the bug
Seems like
electron-source.electron.headers
is just using the headers from insidesrc/third_party/electron_node
Steps To Reproduce
Steps to reproduce the behavior:
electron-source.electron.headers
andelectron-bin.headers
diff -r -u node_headers/ node-v20.18.0/
Expected behavior
the two directories are identical
Additional context
Noticed this while packaging an electron app: #362637
The package uses
electron-rebuild
, which detects ifnpm_config_nodedir
is set, and uses that instead of downloading the electron headers. (It is set by default to${nodejs}
if you usenpmConfigHook
)One of the dependencies actually used a native module that needed a header file which was different between node and electron.
I unpacked
electron-source.headers
and set it asnpm_config_nodedir
, but it didn't work when I tried to run the program:_ZN2v89Exception9TypeErrorENS_5LocalINS_6StringEEE
is a node-only symbol, becauseelectron-source.electron.headers
contains headers only for the node ABI.However,
electron-bin.headers
worked perfectly:_ZN2v89Exception9TypeErrorENS_5LocalINS_6StringEEENS1_INS_5ValueEEE
is the symbol that's present in theelectron
executableMetadata
Notify maintainers
@yayayayaka @teutat3s
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: