[arch-commits] Commit in nodejs-lts-gallium/repos (4 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Nov 21 22:07:40 UTC 2021


    Date: Sunday, November 21, 2021 @ 22:07:40
  Author: foutrelis
Revision: 1054049

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 1054048, nodejs-lts-gallium/trunk/PKGBUILD)
  nodejs-lts-gallium/repos/community-staging-x86_64/ares_compat.patch
    (from rev 1054048, nodejs-lts-gallium/trunk/ares_compat.patch)
  nodejs-lts-gallium/repos/community-staging-x86_64/fix-test-datetime-change-notify.patch
    (from rev 1054048, nodejs-lts-gallium/trunk/fix-test-datetime-change-notify.patch)

---------------------------------------+
 PKGBUILD                              |   67 ++++++++++++++++++++++++++++++++
 ares_compat.patch                     |   19 +++++++++
 fix-test-datetime-change-notify.patch |   41 +++++++++++++++++++
 3 files changed, 127 insertions(+)

Copied: nodejs-lts-gallium/repos/community-staging-x86_64/PKGBUILD (from rev 1054048, nodejs-lts-gallium/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-21 22:07:40 UTC (rev 1054049)
@@ -0,0 +1,67 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=nodejs-lts-gallium
+pkgver=16.13.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')
+provides=("nodejs=$pkgver")
+conflicts=(nodejs)
+source=(${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz
+        fix-test-datetime-change-notify.patch
+        ares_compat.patch)
+# https://nodejs.org/download/release/latest-gallium/SHASUMS256.txt.asc
+sha256sums=('32114b3dc3945ed0f95f8bc33b42c68e0ef18c408cb56122572a163d907ecbcc'
+            '07290c780372e8fae54c4b809d4c30b446335463f5b377b77559df58e0cac2f8'
+            '59098e466c4e438cc77ac438e7ec78ec8e508ea067ba0db1894420dc4e3154e4')
+validpgpkeys=(C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8  # Myles Borins <mylesborins at google.com>
+              77984A986EBC2AA786BC0F66B01FBB92821C587A  # Gibson Fahnestock <gibfahn at gmail.com>
+              B9AE9905FFD7803F25714661B63B535A4C206CA9  # Evan Lucas <evanlucas at me.com>
+              DD8F2338BAE7501E3DD5AC78C273792F7D83545D  # Rod Vagg <rod at vagg.org>
+              B9E2F5981AA6E0CD28160D9FF13993A75599653C  # Shelley Vohr <shelley.vohr at gmail.com>
+              4ED778F539E3634C779C87C6D7062848A1AB005C  # Beth Griggs <Bethany.Griggs at uk.ibm.com>
+              C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C  # Richard Lau <rlau at redhat.com>
+              74F12602B6F1C4E913FAA37AD3A89613643B6201) # Danielle Adams <adamzdanielle at gmail.com>
+
+prepare() {
+  cd node-v${pkgver}
+  patch -p1 < ../fix-test-datetime-change-notify.patch
+  patch -p1 < ../ares_compat.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/ares_compat.patch (from rev 1054048, nodejs-lts-gallium/trunk/ares_compat.patch)
===================================================================
--- community-staging-x86_64/ares_compat.patch	                        (rev 0)
+++ community-staging-x86_64/ares_compat.patch	2021-11-21 22:07:40 UTC (rev 1054049)
@@ -0,0 +1,19 @@
+--- a/src/cares_wrap.h
++++ b/src/cares_wrap.h
+@@ -22,7 +22,15 @@
+ # include <netdb.h>
+ #endif  // __POSIX__
+ 
+-# include <ares_nameser.h>
++#if defined(__ANDROID__) || \
++    defined(__MINGW32__) || \
++    defined(__OpenBSD__) || \
++    defined(_MSC_VER)
++
++# include <nameser.h>
++#else
++# include <arpa/nameser.h>
++#endif
+ 
+ namespace node {
+ namespace cares_wrap {

Copied: nodejs-lts-gallium/repos/community-staging-x86_64/fix-test-datetime-change-notify.patch (from rev 1054048, nodejs-lts-gallium/trunk/fix-test-datetime-change-notify.patch)
===================================================================
--- community-staging-x86_64/fix-test-datetime-change-notify.patch	                        (rev 0)
+++ community-staging-x86_64/fix-test-datetime-change-notify.patch	2021-11-21 22:07:40 UTC (rev 1054049)
@@ -0,0 +1,41 @@
+From 747ef34fb0c9c1f2924ab1b79ea000c87e67a8eb Mon Sep 17 00:00:00 2001
+From: Piotr Rybak <rybak.piotr at yahoo.com>
+Date: Sun, 31 Oct 2021 17:58:09 +0900
+Subject: [PATCH] test: fix test-datetime-change-notify after daylight change
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Add standard timezone name for Dublin without daylight saving
+
+PR-URL: https://github.com/nodejs/node/pull/40684
+Reviewed-By: Michaël Zasso <targos at protonmail.com>
+Reviewed-By: Tobias Nießen <tniessen at tnie.de>
+Reviewed-By: Voltrex <mohammadkeyvanzade94 at gmail.com>
+---
+ test/parallel/test-datetime-change-notify.js | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/test/parallel/test-datetime-change-notify.js b/test/parallel/test-datetime-change-notify.js
+index 9cd6d7abfd89..018435119070 100644
+--- a/test/parallel/test-datetime-change-notify.js
++++ b/test/parallel/test-datetime-change-notify.js
+@@ -18,15 +18,15 @@ const cases = [
+   },
+   {
+     timeZone: 'America/New_York',
+-    expected: /Eastern (Standard|Daylight) Time/,
++    expected: /Eastern (?:Standard|Daylight) Time/,
+   },
+   {
+     timeZone: 'America/Los_Angeles',
+-    expected: /Pacific (Standard|Daylight) Time/,
++    expected: /Pacific (?:Standard|Daylight) Time/,
+   },
+   {
+     timeZone: 'Europe/Dublin',
+-    expected: /Irish/,
++    expected: /Irish Standard Time|Greenwich Mean Time/,
+   },
+ ];
+ 



More information about the arch-commits mailing list