* [ptxdist] [PATCH] nodejs: link libnode to an external libuv
@ 2022-01-14 13:57 Ulrich Ölmann
2022-01-21 14:24 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Ölmann @ 2022-01-14 13:57 UTC (permalink / raw)
To: PTXdist Development Mailing List; +Cc: Ulrich Ölmann
Backport upstream commit [1] on top of node-v12.16.1 to allow the configure flag
"--shared-libuv" to work again (libuv was statically linked into libnode
before).
[1] f65d748f5805 ("build: uvwasi honours node_shared_libuv")
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
...ild-uvwasi-honours-node_shared_libuv.patch | 42 +++++++++++++++++++
patches/node-v12.16.1/series | 3 +-
2 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch
diff --git a/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch b/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch
new file mode 100644
index 000000000000..a0f92ba15dbc
--- /dev/null
+++ b/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch
@@ -0,0 +1,42 @@
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= <kapouer@melix.org>
+Date: Mon, 5 Jul 2021 00:22:46 +0200
+Subject: [PATCH] build: uvwasi honours node_shared_libuv
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix #39248.
+
+PR-URL: https://github.com/nodejs/node/pull/39260
+Reviewed-By: Richard Lau <rlau@redhat.com>
+Reviewed-By: Tobias Nießen <tniessen@tnie.de>
+Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
+Reviewed-By: James M Snell <jasnell@gmail.com>
+---
+ deps/uvwasi/uvwasi.gyp | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/deps/uvwasi/uvwasi.gyp b/deps/uvwasi/uvwasi.gyp
+index c07b07b608b7..3ff3daf3a11e 100644
+--- a/deps/uvwasi/uvwasi.gyp
++++ b/deps/uvwasi/uvwasi.gyp
+@@ -14,12 +14,16 @@
+ 'src/uv_mapping.c',
+ 'src/uvwasi.c',
+ ],
+- 'dependencies': [
+- '../uv/uv.gyp:libuv',
+- ],
+ 'direct_dependent_settings': {
+ 'include_dirs': ['include']
+ },
++ 'conditions': [
++ [ 'node_shared_libuv=="false"', {
++ 'dependencies': [
++ '../uv/uv.gyp:libuv',
++ ],
++ }],
++ ],
+ }
+ ]
+ }
diff --git a/patches/node-v12.16.1/series b/patches/node-v12.16.1/series
index f0162c556ddc..ff8057d57a58 100644
--- a/patches/node-v12.16.1/series
+++ b/patches/node-v12.16.1/series
@@ -5,4 +5,5 @@
0003-tools-do-not-explicitely-set-an-rpath-in-make-genera.patch
0004-HACK-don-t-add-LD_LIBRARY_PATH-for-external-tools.patch
0005-HACK-run-configure-directly-with-python2.patch
-# c39d7fdc79e6b2f672a807f38ade396e - git-ptx-patches magic
+0006-build-uvwasi-honours-node_shared_libuv.patch
+# c8720e3d38a736f9877911821bd3e666 - git-ptx-patches magic
--
2.30.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] nodejs: link libnode to an external libuv
2022-01-14 13:57 [ptxdist] [PATCH] nodejs: link libnode to an external libuv Ulrich Ölmann
@ 2022-01-21 14:24 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2022-01-21 14:24 UTC (permalink / raw)
To: ptxdist; +Cc: Ulrich Ãlmann
Thanks, applied as eb898f648fd9c9e1f0ea6051b8543151500ddf41.
Michael
[sent from post-receive hook]
On Fri, 21 Jan 2022 15:24:22 +0100, Ulrich Ãlmann <u.oelmann@pengutronix.de> wrote:
> Backport upstream commit [1] on top of node-v12.16.1 to allow the configure flag
> "--shared-libuv" to work again (libuv was statically linked into libnode
> before).
>
> [1] f65d748f5805 ("build: uvwasi honours node_shared_libuv")
>
> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
> Message-Id: <20220114135742.1243330-1-u.oelmann@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch b/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch
> new file mode 100644
> index 000000000000..a0f92ba15dbc
> --- /dev/null
> +++ b/patches/node-v12.16.1/0006-build-uvwasi-honours-node_shared_libuv.patch
> @@ -0,0 +1,42 @@
> +From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= <kapouer@melix.org>
> +Date: Mon, 5 Jul 2021 00:22:46 +0200
> +Subject: [PATCH] build: uvwasi honours node_shared_libuv
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Fix #39248.
> +
> +PR-URL: https://github.com/nodejs/node/pull/39260
> +Reviewed-By: Richard Lau <rlau@redhat.com>
> +Reviewed-By: Tobias Nießen <tniessen@tnie.de>
> +Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
> +Reviewed-By: James M Snell <jasnell@gmail.com>
> +---
> + deps/uvwasi/uvwasi.gyp | 10 +++++++---
> + 1 file changed, 7 insertions(+), 3 deletions(-)
> +
> +diff --git a/deps/uvwasi/uvwasi.gyp b/deps/uvwasi/uvwasi.gyp
> +index c07b07b608b7..3ff3daf3a11e 100644
> +--- a/deps/uvwasi/uvwasi.gyp
> ++++ b/deps/uvwasi/uvwasi.gyp
> +@@ -14,12 +14,16 @@
> + 'src/uv_mapping.c',
> + 'src/uvwasi.c',
> + ],
> +- 'dependencies': [
> +- '../uv/uv.gyp:libuv',
> +- ],
> + 'direct_dependent_settings': {
> + 'include_dirs': ['include']
> + },
> ++ 'conditions': [
> ++ [ 'node_shared_libuv=="false"', {
> ++ 'dependencies': [
> ++ '../uv/uv.gyp:libuv',
> ++ ],
> ++ }],
> ++ ],
> + }
> + ]
> + }
> diff --git a/patches/node-v12.16.1/series b/patches/node-v12.16.1/series
> index f0162c556ddc..ff8057d57a58 100644
> --- a/patches/node-v12.16.1/series
> +++ b/patches/node-v12.16.1/series
> @@ -5,4 +5,5 @@
> 0003-tools-do-not-explicitely-set-an-rpath-in-make-genera.patch
> 0004-HACK-don-t-add-LD_LIBRARY_PATH-for-external-tools.patch
> 0005-HACK-run-configure-directly-with-python2.patch
> -# c39d7fdc79e6b2f672a807f38ade396e - git-ptx-patches magic
> +0006-build-uvwasi-honours-node_shared_libuv.patch
> +# c8720e3d38a736f9877911821bd3e666 - git-ptx-patches magic
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-21 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 13:57 [ptxdist] [PATCH] nodejs: link libnode to an external libuv Ulrich Ölmann
2022-01-21 14:24 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox