Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nodejs: update to 20.9.0
@ 2023-11-13 15:52 rfl890
  2023-11-14 13:45 ` [PR PATCH] [Closed]: " rfl890
  0 siblings, 1 reply; 3+ messages in thread
From: rfl890 @ 2023-11-13 15:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

There is a new pull request by rfl890 against master on the void-packages repository

https://github.com/rfl890/void-packages master
https://github.com/void-linux/void-packages/pull/47201

nodejs: update to 20.9.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


A patch file from https://github.com/void-linux/void-packages/pull/47201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-47201.patch --]
[-- Type: text/x-diff, Size: 7047 bytes --]

From 7b3b056ad4bd45a9a4eb91a23bdf7d53c298593d Mon Sep 17 00:00:00 2001
From: RFL890 <rfl890mc@gmail.com>
Date: Mon, 13 Nov 2023 10:48:23 -0500
Subject: [PATCH 1/2] update nodejs (real)

---
 srcpkgs/nodejs/patches/cross-aarch64.patch    | 42 +++++++++----------
 srcpkgs/nodejs/patches/ppc32.patch            |  2 +-
 srcpkgs/nodejs/patches/python312.patch        |  6 +--
 srcpkgs/nodejs/patches/shared-uv.patch        |  4 +-
 .../nodejs/patches/xxx-ppc-hwcap-musl.patch   | 16 ++-----
 srcpkgs/nodejs/template                       |  6 +--
 6 files changed, 33 insertions(+), 43 deletions(-)

diff --git a/srcpkgs/nodejs/patches/cross-aarch64.patch b/srcpkgs/nodejs/patches/cross-aarch64.patch
index fa05cb15813e8..fea72922e52e8 100644
--- a/srcpkgs/nodejs/patches/cross-aarch64.patch
+++ b/srcpkgs/nodejs/patches/cross-aarch64.patch
@@ -1,23 +1,18 @@
-From 6bdf9dc3ec7dbff00acef081f4e3dd3e061fd744 Mon Sep 17 00:00:00 2001
-From: Ben Noordhuis <info@bnoordhuis.nl>
-Date: Tue, 6 Dec 2022 11:27:49 +0100
-Subject: [PATCH] build: fix arm64 cross-compilation
+From e6345abf20aaa82460b7fa49ac5c4bc7d3a0d02a Mon Sep 17 00:00:00 2001
+From: RFL890 <rfl890mc@gmail.com>
+Date: Mon, 13 Nov 2023 09:19:23 -0500
+Subject: [PATCH] Fix cross compilation on arm64
 
-Commit 938212f added -msign-return-address=all to _all_ cflags but that
-is wrong when cross-compiling, it should only be added to the target's
-cflags.
-
-Fixes: https://github.com/nodejs/node/issues/42888
 ---
  configure.py | 2 --
  node.gyp     | 3 +++
  2 files changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/configure.py b/configure.py
-index 40e0395e..9de3148f 100755
+index 62f041ce52..e55c5a6353 100755
 --- a/configure.py
 +++ b/configure.py
-@@ -1294,9 +1294,7 @@ def configure_node(o):
+@@ -1268,9 +1268,7 @@ def configure_node(o):
  
    o['variables']['want_separate_host_toolset'] = int(cross_compiling)
  
@@ -28,16 +23,19 @@ index 40e0395e..9de3148f 100755
  
    if options.node_snapshot_main is not None:
 diff --git a/node.gyp b/node.gyp
-index cf52281b..5218d941 100644
+index 4e614df1a9..ed0ffcc582 100644
 --- a/node.gyp
 +++ b/node.gyp
-@@ -112,6 +112,9 @@
-     },
- 
-     'conditions': [
-+      ['target_arch=="arm64"', {
-+          'cflags': ['-msign-return-address=all'],  # Pointer authentication.
-+      }],
-       ['OS in "aix os400"', {
-         'ldflags': [
-           '-Wl,-bnoerrmsg',
+@@ -411,6 +411,9 @@
+       [ 'node_shared=="true"', {
+         'node_target_type%': 'shared_library',
+         'conditions': [
++          ['target_arch=="arm64"', {
++            'cflags': ['-msign-return-address=all'],  # Pointer authentication.
++          }],
+           ['OS in "aix os400"', {
+             # For AIX, always generate static library first,
+             # It needs an extra step to generate exp and
+-- 
+2.42.0
+
diff --git a/srcpkgs/nodejs/patches/ppc32.patch b/srcpkgs/nodejs/patches/ppc32.patch
index ddfceb2f2179c..068b5bd3ba58e 100644
--- a/srcpkgs/nodejs/patches/ppc32.patch
+++ b/srcpkgs/nodejs/patches/ppc32.patch
@@ -1,6 +1,6 @@
 --- a/deps/v8/src/libsampler/sampler.cc
 +++ b/deps/v8/src/libsampler/sampler.cc
-@@ -423,10 +423,17 @@
+@@ -441,10 +441,17 @@ void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
    state->lr = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->link);
  #else
    // Some C libraries, notably Musl, define the regs member as a void pointer
diff --git a/srcpkgs/nodejs/patches/python312.patch b/srcpkgs/nodejs/patches/python312.patch
index b5f1d22877f7e..9486ed94c8529 100644
--- a/srcpkgs/nodejs/patches/python312.patch
+++ b/srcpkgs/nodejs/patches/python312.patch
@@ -1,5 +1,5 @@
---- ./configure.orig	2023-10-11 07:49:24.971659089 -0400
-+++ ./configure	2023-10-11 07:49:51.615780727 -0400
+--- a/configure
++++ b/configure
 @@ -4,6 +4,7 @@
  # Note that the mix of single and double quotes is intentional,
  # as is the fact that the ] goes on a new line.
@@ -8,7 +8,7 @@
  command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
  command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
  command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
-@@ -23,7 +24,7 @@
+@@ -23,7 +24,7 @@ except ImportError:
    from distutils.spawn import find_executable as which
  
  print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
diff --git a/srcpkgs/nodejs/patches/shared-uv.patch b/srcpkgs/nodejs/patches/shared-uv.patch
index 47a167b439582..5545ab82fdf3d 100644
--- a/srcpkgs/nodejs/patches/shared-uv.patch
+++ b/srcpkgs/nodejs/patches/shared-uv.patch
@@ -1,12 +1,12 @@
 --- a/deps/uvwasi/uvwasi.gyp
 +++ b/deps/uvwasi/uvwasi.gyp
-@@ -33,6 +33,9 @@
+@@ -38,6 +38,9 @@
              '../uv/uv.gyp:libuv',
            ],
          }],
 +        [ 'node_shared_libuv=="true"', {
 +          'libraries': [ '-luv' ],
-+        }]
++        }],
        ],
      }
    ]
diff --git a/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch b/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
index 952892caed386..0ecfcea1f1921 100644
--- a/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
+++ b/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
@@ -1,24 +1,16 @@
-commit 558ab896cbdd90259950c631ba29a1c66bf4c2d3
-Author: q66 <daniel@octaforge.org>
-Date:   Mon Feb 28 23:53:22 2022 +0100
-
-    add some hwcap bits fallbacks
-
-diff --git a/deps/v8/src/base/cpu.cc b/deps/v8/src/base/cpu.cc
-index a1b21d2..8e52802 100644
 --- a/deps/v8/src/base/cpu.cc
 +++ b/deps/v8/src/base/cpu.cc
-@@ -768,6 +768,13 @@ CPU::CPU()
+@@ -788,7 +788,12 @@ CPU::CPU()
+ #endif  // V8_OS_WIN
  
  #elif V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64
- 
+-
 +#ifndef PPC_FEATURE2_HAS_ISEL
 +#define PPC_FEATURE2_HAS_ISEL 0x08000000
 +#endif
 +#ifndef PPC_FEATURE2_ARCH_3_1
 +#define PPC_FEATURE2_ARCH_3_1 0x00040000
 +#endif
-+
  #ifndef USE_SIMULATOR
  #if V8_OS_LINUX
-   // Read processor info from getauxval() (needs at least glibc 2.18 or musl).
+   // Read processor info from /proc/self/auxv.
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index 2576dbdbbbe89..9fd65755d79de 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -1,6 +1,6 @@
 # Template file for 'nodejs'
 pkgname=nodejs
-version=18.16.0
+version=20.9.0
 revision=3
 # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
 hostmakedepends="which pkg-config python3-setuptools zlib-devel
@@ -15,7 +15,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="MIT"
 homepage="https://nodejs.org/"
 distfiles="https://nodejs.org/dist/v${version}/node-v${version}.tar.gz"
-checksum=6a4f5c5d76e5c50cef673099e56f19bc3266ae363f56ca0ab77dd2f3c5088c6d
+checksum=a7e6547a951406e4e546a74160ed27b26f9abd4baf7c44dd5a0fa992852d0cfa
 python_version=3
 
 build_options="ssl libuv icu nghttp2 cares"
@@ -41,7 +41,7 @@ fi
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
-	ppc*) broken="Node 18.x does not support 32-bit ppc" ;;
+	ppc*) broken="Node 20.x does not support 32-bit ppc" ;;
 esac
 
 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: nodejs: update to 20.9.0
  2023-11-13 15:52 [PR PATCH] nodejs: update to 20.9.0 rfl890
@ 2023-11-14 13:45 ` rfl890
  0 siblings, 0 replies; 3+ messages in thread
From: rfl890 @ 2023-11-14 13:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

There's a closed pull request on the void-packages repository

nodejs: update to 20.9.0
https://github.com/void-linux/void-packages/pull/47201

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PR PATCH] nodejs: update to 20.9.0
@ 2023-11-15 15:14 rfl890
  0 siblings, 0 replies; 3+ messages in thread
From: rfl890 @ 2023-11-15 15:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

There is a new pull request by rfl890 against master on the void-packages repository

https://github.com/rfl890/void-packages nodejs
https://github.com/void-linux/void-packages/pull/47249

nodejs: update to 20.9.0
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

A patch file from https://github.com/void-linux/void-packages/pull/47249.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nodejs-47249.patch --]
[-- Type: text/x-diff, Size: 7069 bytes --]

From 2b9dfa756ae24e2b4849dada02ee80e1e4e390ab Mon Sep 17 00:00:00 2001
From: rfl890 <87506407+rfl890@users.noreply.github.com>
Date: Wed, 15 Nov 2023 10:12:45 -0500
Subject: [PATCH] nodejs: update to 20.9.0

---
 srcpkgs/nodejs/patches/cross-aarch64.patch    | 42 +++++++++----------
 srcpkgs/nodejs/patches/ppc32.patch            |  2 +-
 srcpkgs/nodejs/patches/python312.patch        |  6 +--
 srcpkgs/nodejs/patches/shared-uv.patch        |  4 +-
 .../nodejs/patches/xxx-ppc-hwcap-musl.patch   | 16 ++-----
 srcpkgs/nodejs/template                       |  6 +--
 6 files changed, 33 insertions(+), 43 deletions(-)

diff --git a/srcpkgs/nodejs/patches/cross-aarch64.patch b/srcpkgs/nodejs/patches/cross-aarch64.patch
index fa05cb15813e8..fea72922e52e8 100644
--- a/srcpkgs/nodejs/patches/cross-aarch64.patch
+++ b/srcpkgs/nodejs/patches/cross-aarch64.patch
@@ -1,23 +1,18 @@
-From 6bdf9dc3ec7dbff00acef081f4e3dd3e061fd744 Mon Sep 17 00:00:00 2001
-From: Ben Noordhuis <info@bnoordhuis.nl>
-Date: Tue, 6 Dec 2022 11:27:49 +0100
-Subject: [PATCH] build: fix arm64 cross-compilation
+From e6345abf20aaa82460b7fa49ac5c4bc7d3a0d02a Mon Sep 17 00:00:00 2001
+From: RFL890 <rfl890mc@gmail.com>
+Date: Mon, 13 Nov 2023 09:19:23 -0500
+Subject: [PATCH] Fix cross compilation on arm64
 
-Commit 938212f added -msign-return-address=all to _all_ cflags but that
-is wrong when cross-compiling, it should only be added to the target's
-cflags.
-
-Fixes: https://github.com/nodejs/node/issues/42888
 ---
  configure.py | 2 --
  node.gyp     | 3 +++
  2 files changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/configure.py b/configure.py
-index 40e0395e..9de3148f 100755
+index 62f041ce52..e55c5a6353 100755
 --- a/configure.py
 +++ b/configure.py
-@@ -1294,9 +1294,7 @@ def configure_node(o):
+@@ -1268,9 +1268,7 @@ def configure_node(o):
  
    o['variables']['want_separate_host_toolset'] = int(cross_compiling)
  
@@ -28,16 +23,19 @@ index 40e0395e..9de3148f 100755
  
    if options.node_snapshot_main is not None:
 diff --git a/node.gyp b/node.gyp
-index cf52281b..5218d941 100644
+index 4e614df1a9..ed0ffcc582 100644
 --- a/node.gyp
 +++ b/node.gyp
-@@ -112,6 +112,9 @@
-     },
- 
-     'conditions': [
-+      ['target_arch=="arm64"', {
-+          'cflags': ['-msign-return-address=all'],  # Pointer authentication.
-+      }],
-       ['OS in "aix os400"', {
-         'ldflags': [
-           '-Wl,-bnoerrmsg',
+@@ -411,6 +411,9 @@
+       [ 'node_shared=="true"', {
+         'node_target_type%': 'shared_library',
+         'conditions': [
++          ['target_arch=="arm64"', {
++            'cflags': ['-msign-return-address=all'],  # Pointer authentication.
++          }],
+           ['OS in "aix os400"', {
+             # For AIX, always generate static library first,
+             # It needs an extra step to generate exp and
+-- 
+2.42.0
+
diff --git a/srcpkgs/nodejs/patches/ppc32.patch b/srcpkgs/nodejs/patches/ppc32.patch
index ddfceb2f2179c..068b5bd3ba58e 100644
--- a/srcpkgs/nodejs/patches/ppc32.patch
+++ b/srcpkgs/nodejs/patches/ppc32.patch
@@ -1,6 +1,6 @@
 --- a/deps/v8/src/libsampler/sampler.cc
 +++ b/deps/v8/src/libsampler/sampler.cc
-@@ -423,10 +423,17 @@
+@@ -441,10 +441,17 @@ void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
    state->lr = reinterpret_cast<void*>(ucontext->uc_mcontext.regs->link);
  #else
    // Some C libraries, notably Musl, define the regs member as a void pointer
diff --git a/srcpkgs/nodejs/patches/python312.patch b/srcpkgs/nodejs/patches/python312.patch
index b5f1d22877f7e..9486ed94c8529 100644
--- a/srcpkgs/nodejs/patches/python312.patch
+++ b/srcpkgs/nodejs/patches/python312.patch
@@ -1,5 +1,5 @@
---- ./configure.orig	2023-10-11 07:49:24.971659089 -0400
-+++ ./configure	2023-10-11 07:49:51.615780727 -0400
+--- a/configure
++++ b/configure
 @@ -4,6 +4,7 @@
  # Note that the mix of single and double quotes is intentional,
  # as is the fact that the ] goes on a new line.
@@ -8,7 +8,7 @@
  command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
  command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
  command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
-@@ -23,7 +24,7 @@
+@@ -23,7 +24,7 @@ except ImportError:
    from distutils.spawn import find_executable as which
  
  print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
diff --git a/srcpkgs/nodejs/patches/shared-uv.patch b/srcpkgs/nodejs/patches/shared-uv.patch
index 47a167b439582..5545ab82fdf3d 100644
--- a/srcpkgs/nodejs/patches/shared-uv.patch
+++ b/srcpkgs/nodejs/patches/shared-uv.patch
@@ -1,12 +1,12 @@
 --- a/deps/uvwasi/uvwasi.gyp
 +++ b/deps/uvwasi/uvwasi.gyp
-@@ -33,6 +33,9 @@
+@@ -38,6 +38,9 @@
              '../uv/uv.gyp:libuv',
            ],
          }],
 +        [ 'node_shared_libuv=="true"', {
 +          'libraries': [ '-luv' ],
-+        }]
++        }],
        ],
      }
    ]
diff --git a/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch b/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
index 952892caed386..0ecfcea1f1921 100644
--- a/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
+++ b/srcpkgs/nodejs/patches/xxx-ppc-hwcap-musl.patch
@@ -1,24 +1,16 @@
-commit 558ab896cbdd90259950c631ba29a1c66bf4c2d3
-Author: q66 <daniel@octaforge.org>
-Date:   Mon Feb 28 23:53:22 2022 +0100
-
-    add some hwcap bits fallbacks
-
-diff --git a/deps/v8/src/base/cpu.cc b/deps/v8/src/base/cpu.cc
-index a1b21d2..8e52802 100644
 --- a/deps/v8/src/base/cpu.cc
 +++ b/deps/v8/src/base/cpu.cc
-@@ -768,6 +768,13 @@ CPU::CPU()
+@@ -788,7 +788,12 @@ CPU::CPU()
+ #endif  // V8_OS_WIN
  
  #elif V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64
- 
+-
 +#ifndef PPC_FEATURE2_HAS_ISEL
 +#define PPC_FEATURE2_HAS_ISEL 0x08000000
 +#endif
 +#ifndef PPC_FEATURE2_ARCH_3_1
 +#define PPC_FEATURE2_ARCH_3_1 0x00040000
 +#endif
-+
  #ifndef USE_SIMULATOR
  #if V8_OS_LINUX
-   // Read processor info from getauxval() (needs at least glibc 2.18 or musl).
+   // Read processor info from /proc/self/auxv.
diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template
index 2576dbdbbbe89..9fd65755d79de 100644
--- a/srcpkgs/nodejs/template
+++ b/srcpkgs/nodejs/template
@@ -1,6 +1,6 @@
 # Template file for 'nodejs'
 pkgname=nodejs
-version=18.16.0
+version=20.9.0
 revision=3
 # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
 hostmakedepends="which pkg-config python3-setuptools zlib-devel
@@ -15,7 +15,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="MIT"
 homepage="https://nodejs.org/"
 distfiles="https://nodejs.org/dist/v${version}/node-v${version}.tar.gz"
-checksum=6a4f5c5d76e5c50cef673099e56f19bc3266ae363f56ca0ab77dd2f3c5088c6d
+checksum=a7e6547a951406e4e546a74160ed27b26f9abd4baf7c44dd5a0fa992852d0cfa
 python_version=3
 
 build_options="ssl libuv icu nghttp2 cares"
@@ -41,7 +41,7 @@ fi
 
 case "$XBPS_TARGET_MACHINE" in
 	ppc64*) ;;
-	ppc*) broken="Node 18.x does not support 32-bit ppc" ;;
+	ppc*) broken="Node 20.x does not support 32-bit ppc" ;;
 esac
 
 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-15 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 15:52 [PR PATCH] nodejs: update to 20.9.0 rfl890
2023-11-14 13:45 ` [PR PATCH] [Closed]: " rfl890
2023-11-15 15:14 [PR PATCH] " rfl890

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).