From: Alexandru Ardelean <ardeleanalex@gmail.com>
To: buildroot@buildroot.org
Cc: Alexandru Ardelean <ardeleanalex@gmail.com>,
fontaine.fabrice@gmail.com, aduskett@gmail.com
Subject: [Buildroot] [PATCH 05/13] package/nodejs: add host-{c-ares, libuv, nghttp2} to deps
Date: Tue, 9 Aug 2022 10:56:56 +0300 [thread overview]
Message-ID: <20220809075704.86472-6-ardeleanalex@gmail.com> (raw)
In-Reply-To: <20220809075704.86472-1-ardeleanalex@gmail.com>
Required for the host-tools when cross-building.
The nodejs target-build requires some host tool support to be able to
properly build.
Unfortunately, when building a 32-bit target on a 64-bit host, uses
will need to install on the host the 32-bit bi-arch libs for
'libicu libc-ares libuv1 libnghttp2 zlib1g', but that seems that is also
the case (already) for some other packages that select symbols
BR2_HOSTARCH_NEEDS_IA32_LIBS & BR2_HOSTARCH_NEEDS_IA32_COMPILER.
So, we'll need to do the same later.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
---
package/nodejs/Config.in | 3 +++
package/nodejs/Config.in.host | 3 +++
package/nodejs/nodejs.mk | 6 ++++++
3 files changed, 12 insertions(+)
diff --git a/package/nodejs/Config.in b/package/nodejs/Config.in
index 016aeb4e1a..fad211b750 100644
--- a/package/nodejs/Config.in
+++ b/package/nodejs/Config.in
@@ -28,6 +28,9 @@ config BR2_PACKAGE_NODEJS
# linking, but that's too much of a corner case to support it.
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_HOST_NODEJS
+ select BR2_PACKAGE_HOST_C_ARES
+ select BR2_PACKAGE_HOST_LIBUV
+ select BR2_PACKAGE_HOST_NGHTTP2
select BR2_PACKAGE_C_ARES
select BR2_PACKAGE_LIBUV
select BR2_PACKAGE_ZLIB
diff --git a/package/nodejs/Config.in.host b/package/nodejs/Config.in.host
index d023ffc36d..328c8872d3 100644
--- a/package/nodejs/Config.in.host
+++ b/package/nodejs/Config.in.host
@@ -2,6 +2,9 @@ config BR2_PACKAGE_HOST_NODEJS
bool "host nodejs"
depends on BR2_PACKAGE_HOST_QEMU_USER_ARCH_SUPPORTS
depends on BR2_HOST_GCC_AT_LEAST_8
+ select BR2_PACKAGE_HOST_C_ARES
+ select BR2_PACKAGE_HOST_LIBUV
+ select BR2_PACKAGE_HOST_NGHTTPS2
select BR2_PACKAGE_HOST_PYTHON3
select BR2_PACKAGE_HOST_PYTHON3_BZIP2
select BR2_PACKAGE_HOST_PYTHON3_SSL
diff --git a/package/nodejs/nodejs.mk b/package/nodejs/nodejs.mk
index a8229eb4b1..d15c027c70 100644
--- a/package/nodejs/nodejs.mk
+++ b/package/nodejs/nodejs.mk
@@ -9,6 +9,9 @@ NODEJS_SOURCE = node-v$(NODEJS_VERSION).tar.xz
NODEJS_SITE = http://nodejs.org/dist/v$(NODEJS_VERSION)
NODEJS_DEPENDENCIES = \
host-nodejs \
+ host-c-ares \
+ host-libuv \
+ host-nghttp2 \
host-ninja \
host-pkgconf \
host-python3 \
@@ -18,6 +21,9 @@ NODEJS_DEPENDENCIES = \
zlib \
$(call qstrip,$(BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS))
HOST_NODEJS_DEPENDENCIES = \
+ host-c-ares \
+ host-libuv \
+ host-nghttp2 \
host-icu \
host-libopenssl \
host-ninja \
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-09 7:58 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 7:56 [Buildroot] [PATCH 00/13] package/nodejs: rework cross-building Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 01/13] package/libuv: add host-build Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 02/13] package/nghttp2: " Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 03/13] nodejs: remove v8-qemu-wrapper stuff Alexandru Ardelean
2022-08-09 11:49 ` Thomas Petazzoni via buildroot
2022-08-09 12:52 ` Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 04/13] nodejs: fix 'Duplicate v8 target errors when cross-compiling' error Alexandru Ardelean
2022-08-09 7:56 ` Alexandru Ardelean [this message]
2022-08-09 7:56 ` [Buildroot] [PATCH 06/13] package/nodejs: provide {CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS}_host env vars to target-build Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 07/13] package/nodejs: don't install nodejs host-tools Alexandru Ardelean
2022-08-09 7:56 ` [Buildroot] [PATCH 08/13] package/nodejs: rename LDFLAGS.host -> LDFLAGS opt Alexandru Ardelean
2022-08-09 7:57 ` [Buildroot] [PATCH 09/13] package/nodejs: impose dep on ia32 libs/compiler if target arch not 64 bits Alexandru Ardelean
2022-08-09 7:57 ` [Buildroot] [PATCH 10/13] package/nodejs: add host-zlib depedency to target package Alexandru Ardelean
2022-08-09 7:57 ` [Buildroot] [PATCH 11/13] package/nodejs: fix ARM build with VFP3 instruction Alexandru Ardelean
2022-08-09 7:57 ` [Buildroot] [PATCH 12/13] package/nodejs: add a hack to cross-compile 32-bit targets on x64 hosts Alexandru Ardelean
2022-08-09 7:57 ` [Buildroot] [PATCH 13/13] package/nodejs: build host-nodejs only if we're installing modules with NPM Alexandru Ardelean
2022-08-09 11:42 ` [Buildroot] [PATCH 00/13] package/nodejs: rework cross-building Thomas Petazzoni via buildroot
2022-08-09 12:48 ` Alexandru Ardelean
2022-08-10 21:23 ` Thomas Petazzoni via buildroot
2022-08-11 7:48 ` Alexandru Ardelean
2022-09-25 8:27 ` Thomas Petazzoni
2022-09-25 15:17 ` Alexandru Ardelean
2022-09-25 16:15 ` Alexandru Ardelean
2022-09-25 18:41 ` Thomas Petazzoni
2022-09-26 13:11 ` Alexandru Ardelean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220809075704.86472-6-ardeleanalex@gmail.com \
--to=ardeleanalex@gmail.com \
--cc=aduskett@gmail.com \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).