Date: Tuesday, November 1, 2022 @ 16:29:30
  Author: felixonmars
Revision: 1340191

archrelease: copy trunk to community-staging-x86_64

Added:
  nodejs-lts-gallium/repos/community-staging-x86_64/
  nodejs-lts-gallium/repos/community-staging-x86_64/PKGBUILD
    (from rev 1340190, nodejs-lts-gallium/trunk/PKGBUILD)
  
nodejs-lts-gallium/repos/community-staging-x86_64/fix-test-socket-write-after-fin-error.patch
    (from rev 1340190, 
nodejs-lts-gallium/trunk/fix-test-socket-write-after-fin-error.patch)
  nodejs-lts-gallium/repos/community-staging-x86_64/icu72.patch
    (from rev 1340190, nodejs-lts-gallium/trunk/icu72.patch)
  nodejs-lts-gallium/repos/community-staging-x86_64/keys/

---------------------------------------------+
 PKGBUILD                                    |   69 ++++++++++++++++++++++++++
 fix-test-socket-write-after-fin-error.patch |   40 +++++++++++++++
 icu72.patch                                 |   20 +++++++
 3 files changed, 129 insertions(+)

Copied: nodejs-lts-gallium/repos/community-staging-x86_64/PKGBUILD (from rev 
1340190, nodejs-lts-gallium/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-11-01 16:29:30 UTC (rev 1340191)
@@ -0,0 +1,69 @@
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+
+pkgname=nodejs-lts-gallium
+pkgver=16.16.0
+pkgrel=3
+pkgdesc="Evented I/O for V8 javascript (LTS release: Gallium)"
+arch=(x86_64)
+url="https://nodejs.org/";
+license=(MIT)
+depends=(openssl zlib icu libuv c-ares brotli libnghttp2) # http-parser
+makedepends=(python procps-ng)
+optdepends=('npm: nodejs package manager')
+options=(!lto)
+provides=("nodejs=$pkgver")
+conflicts=(nodejs)
+source=(${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz
+        fix-test-socket-write-after-fin-error.patch
+        icu72.patch)
+# https://nodejs.org/download/release/latest-gallium/SHASUMS256.txt.asc
+sha256sums=('145151eff3b2aa5ebe73384009c52271a83740ae687a93c98c628cd7d52736eb'
+            'bb4df6373e4ab93478089268949934efbdd7bb060f35e8d7262af6b2dda4b948'
+            '886d0edf868c39567124937f93a43fb3e92fa65b5244b8c608d6482ed217fa56')
+validpgpkeys=(C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8  # Myles Borins 
<[email protected]>
+              77984A986EBC2AA786BC0F66B01FBB92821C587A  # Gibson Fahnestock 
<[email protected]>
+              B9AE9905FFD7803F25714661B63B535A4C206CA9  # Evan Lucas 
<[email protected]>
+              DD8F2338BAE7501E3DD5AC78C273792F7D83545D  # Rod Vagg 
<[email protected]>
+              B9E2F5981AA6E0CD28160D9FF13993A75599653C  # Shelley Vohr 
<[email protected]>
+              4ED778F539E3634C779C87C6D7062848A1AB005C  # Beth Griggs 
<[email protected]>
+              C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C  # Richard Lau 
<[email protected]>
+              74F12602B6F1C4E913FAA37AD3A89613643B6201  # Danielle Adams 
<[email protected]>
+              61FC681DFB92A079F1685E77973F295594EC4689) # Juan José Arboleda 
<[email protected]>
+
+prepare() {
+  cd node-v${pkgver}
+  patch -Np1 -i ../fix-test-socket-write-after-fin-error.patch
+  patch -Np1 -i ../icu72.patch
+}
+
+build() {
+  cd node-v${pkgver}
+
+  ./configure \
+    --prefix=/usr \
+    --with-intl=system-icu \
+    --without-npm \
+    --shared-openssl \
+    --shared-zlib \
+    --shared-libuv \
+    --experimental-http-parser \
+    --shared-cares \
+    --shared-brotli \
+    --shared-nghttp2
+    # --shared-v8
+    # --shared-http-parser
+
+  make
+}
+
+check() {
+  cd node-v${pkgver}
+  make test-only
+}
+
+package() {
+  cd node-v${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}

Copied: 
nodejs-lts-gallium/repos/community-staging-x86_64/fix-test-socket-write-after-fin-error.patch
 (from rev 1340190, 
nodejs-lts-gallium/trunk/fix-test-socket-write-after-fin-error.patch)
===================================================================
--- community-staging-x86_64/fix-test-socket-write-after-fin-error.patch        
                        (rev 0)
+++ community-staging-x86_64/fix-test-socket-write-after-fin-error.patch        
2022-11-01 16:29:30 UTC (rev 1340191)
@@ -0,0 +1,40 @@
+From 1c0fb51e475ae0a86a4ea5394d5ec94930379646 Mon Sep 17 00:00:00 2001
+From: Luigi Pinca <[email protected]>
+Date: Tue, 12 Jul 2022 22:11:10 +0200
+Subject: [PATCH] test: fix test-socket-write-after-fin-error
+
+The `'error'` event is not emitted because the socket is already
+destroyed when `socket.write()` is called. Use the `socket.write()`
+callback instead.
+---
+ test/parallel/test-socket-write-after-fin-error.js | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/test/parallel/test-socket-write-after-fin-error.js 
b/test/parallel/test-socket-write-after-fin-error.js
+index 64c8143abebb..0e3b99abac75 100644
+--- a/test/parallel/test-socket-write-after-fin-error.js
++++ b/test/parallel/test-socket-write-after-fin-error.js
+@@ -16,10 +16,7 @@ let gotServerError = false;
+ 
+ const server = net.createServer(function(sock) {
+   sock.setEncoding('utf8');
+-  sock.on('error', function(er) {
+-    console.error(`${er.code}: ${er.message}`);
+-    gotServerError = er;
+-  });
++  sock.on('error', function() {});
+ 
+   sock.on('data', function(c) {
+     serverData += c;
+@@ -27,7 +24,10 @@ const server = net.createServer(function(sock) {
+   sock.on('end', function() {
+     gotServerEnd = true;
+     setImmediate(() => {
+-      sock.write(serverData);
++      sock.write(serverData, function(er) {
++        console.error(`${er.code}: ${er.message}`);
++        gotServerError = er;
++      });
+       sock.end();
+     });
+   });

Copied: nodejs-lts-gallium/repos/community-staging-x86_64/icu72.patch (from rev 
1340190, nodejs-lts-gallium/trunk/icu72.patch)
===================================================================
--- community-staging-x86_64/icu72.patch                                (rev 0)
+++ community-staging-x86_64/icu72.patch        2022-11-01 16:29:30 UTC (rev 
1340191)
@@ -0,0 +1,20 @@
+From d7bd0b7ac3c36b8aacacb14baa84c8a1ee17f43e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <[email protected]>
+Date: Wed, 19 Oct 2022 18:30:13 +0200
+Subject: [PATCH] fixup! deps: update ICU to 72.1
+
+fix tests
+
+diff --git a/test/parallel/test-intl.js b/test/parallel/test-intl.js
+index 7d1742f2c7d1..df391bd4de3d 100644
+--- a/test/parallel/test-intl.js
++++ b/test/parallel/test-intl.js
+@@ -97,7 +97,7 @@ if (!common.hasIntl) {
+   // Test format
+   {
+     const localeString = date0.toLocaleString(['en'], optsGMT);
+-    assert.strictEqual(localeString, '1/1/1970, 12:00:00 AM');
++    assert.strictEqual(localeString, '1/1/1970, 12:00:00 AM');
+   }
+   // number format
+   {

Reply via email to