-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
nodejs packages should be fixed to use more system libraries #29034
Comments
As seen in #26427 (comment) , the build is also failing on armv6l-musl due to |
It looks like
|
Sadly, I don't actually have a machine that's capable of cross-building |
You can create a musl masterdir with And for libatomic, testing with |
musl isn't the problem - |
er, won't cross-compile if |
reads README wait that might not actually be a problem |
Okay, cross-compiling for
I guess I'll try again targeting musl? If it only happens when building on armv6l native then I definitely won't be able to do anything... |
Oh, it was I can read! |
Well, for what it's worth our builders for 32 bit targets are 64 bit themselves (using 64 bit masterdirs), so for now it won't be packaged either way :/ |
Oh, that's fun. I think I have some idea of how you could fix this (adapting |
See void-linux#29034. `shared-uv.patch` has been in the repo for a while but was slightly broken.
Reading |
diff --git a/srcpkgs/nodejs-lts-10/patches/ppc32.patch b/srcpkgs/nodejs-lts-10/patches/ppc32.patch
index 343eff5851..da8b6b7c7c 100644
--- a/srcpkgs/nodejs-lts-10/patches/ppc32.patch
+++ b/srcpkgs/nodejs-lts-10/patches/ppc32.patch
@@ -15,7 +15,7 @@
'msvs_disabled_warnings!': [4244],
'conditions': [
-+ [ 'host_arch=="mips" or host_arch=="mipsel" or host_arch=="ppc"', {
++ [ 'target_arch=="mips" or target_arch=="mipsel" or target_arch=="ppc" or target_arch=="arm"', {
+ 'link_settings': {
+ 'libraries': [ '-latomic' ],
+ },
diff --git a/srcpkgs/nodejs-lts-10/template b/srcpkgs/nodejs-lts-10/template
index 3944d359c6..a680db30cc 100644
--- a/srcpkgs/nodejs-lts-10/template
+++ b/srcpkgs/nodejs-lts-10/template
@@ -37,9 +37,7 @@ if [ "$XBPS_WORDSIZE" -ne "$XBPS_TARGET_WORDSIZE" ]; then
nocross="host and target must have the same pointer size"
fi
-if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
- makedepends+=" libatomic-devel"
-fi
+makedepends+=" libatomic-devel"
if [ "$XBPS_NO_ATOMIC8" ]; then
hostmakedepends+=" libatomic-devel"
fi Well this seems to work, at least - compiles on armv6l and armv7l, |
I think including the atomic stuff in the same PR is reasonable, if you want. Ideally our linker flags should avoid a runtime dependency on libatomic, since the binaries should end up not using any symbols from it. |
Sure, I can do that. I did check - that patch doesn't cause a runtime dependency on libatomic when it's not needed. |
Ah, in the interest of your change not being reverted due to lack of understanding, add a comment to the template saying that "our build system patches require libatomic for more archs than just those covered by XBPS_TARGET_NO_ATOMIC8" or something close to that :) |
Does that look good? |
See void-linux#29034. `shared-uv.patch` has been in the repo for a while but was slightly broken.
See #29034. `shared-uv.patch` has been in the repo for a while but was slightly broken.
Closed with #30516 |
See void-linux/void-packages#29034. `shared-uv.patch` has been in the repo for a while but was slightly broken. void-linux/void-packages@0d47340
See void-linux#29034. `shared-uv.patch` has been in the repo for a while but was slightly broken.
See void-linux#29034. `shared-uv.patch` has been in the repo for a while but was slightly broken.
nodejs
has a mislocated patch to use sharedlibuv
, but moving it topatches/
and trying to build leads to a build failure in config phase.nodejs{,-lts,-lts-10}
use bundled SSL, but now that we are moving to OpenSSL they can probably be fixed to use system OpenSSL.The text was updated successfully, but these errors were encountered: