Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nodejs16 for openSUSE:Factory 
checked in at 2021-11-03 17:26:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs16 (Old)
 and      /work/SRC/openSUSE:Factory/.nodejs16.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nodejs16"

Wed Nov  3 17:26:04 2021 rev:11 rq:928966 version:16.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/nodejs16/nodejs16.changes        2021-08-24 
10:54:47.880326895 +0200
+++ /work/SRC/openSUSE:Factory/.nodejs16.new.1890/nodejs16.changes      
2021-11-03 17:27:00.449361558 +0100
@@ -1,0 +2,14 @@
+Tue Nov  2 14:40:41 UTC 2021 - Dominique Leuenberger <[email protected]>
+
+- Add 40670.patch: test: fix test-datetime-change-notify after
+  daylight change.
+
+-------------------------------------------------------------------
+Fri Oct 15 19:57:42 UTC 2021 - Bernhard Voelker <[email protected]>
+
+- test-skip-y2038-on-32bit-time_t.patch: Add patch to skip the test
+  'test/parallel/test-fs-utimes-y2K38.js' which fails with a FP
+  on platforms with 32-bit time_t.
+- nodejs16.spec: Reference it.
+
+-------------------------------------------------------------------

New:
----
  40670.patch
  test-skip-y2038-on-32bit-time_t.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nodejs16.spec ++++++
--- /var/tmp/diff_new_pack.89a8QY/_old  2021-11-03 17:27:01.129361930 +0100
+++ /var/tmp/diff_new_pack.89a8QY/_new  2021-11-03 17:27:01.133361932 +0100
@@ -131,6 +131,7 @@
 Source20:       bash_output_helper.bash
 
 ## Patches not distribution specific
+Patch0:         
https://patch-diff.githubusercontent.com/raw/nodejs/node/pull/40670.patch
 Patch1:         cares_public_headers.patch
 Patch3:         fix_ci_tests.patch
 Patch5:         sle12_python3_compat.patch
@@ -157,6 +158,9 @@
 # Use versioned binaries and paths
 Patch200:       versioned.patch
 
+# Skip year 2038 test on platforms with 32-bit time_t.
+Patch210:       test-skip-y2038-on-32bit-time_t.patch
+
 BuildRequires:  pkg-config
 %if 0%{?suse_version}
 BuildRequires:  config(netcfg)
@@ -640,6 +644,7 @@
 tar Jxf %{SOURCE5} --directory=tools/gyp --strip-components=1
 %endif
 
+%patch0 -p1
 %patch1 -p1
 %patch3 -p1
 %patch5 -p1
@@ -658,6 +663,7 @@
 %patch110 -p1
 %patch120 -p1
 %patch200 -p1
+%patch210 -p1
 
 # remove backup files, if any
 find -name \*~ -print0 -delete

++++++ 40670.patch ++++++
>From db6785e4388792db6d1b030c920e8ce6a104995d Mon Sep 17 00:00:00 2001
From: Piotr Rybak <[email protected]>
Date: Sun, 31 Oct 2021 17:58:09 +0900
Subject: [PATCH] test: fix test-datetime-change-notify after daylight change

Add standard timezone name for Dublin without daylight saving
---
 test/parallel/test-datetime-change-notify.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/parallel/test-datetime-change-notify.js 
b/test/parallel/test-datetime-change-notify.js
index 9cd6d7abfd89..0489fc343530 100644
--- a/test/parallel/test-datetime-change-notify.js
+++ b/test/parallel/test-datetime-change-notify.js
@@ -26,7 +26,7 @@ const cases = [
   },
   {
     timeZone: 'Europe/Dublin',
-    expected: /Irish/,
+    expected: /(Irish Standard Time|Greenwich Mean Time)/,
   },
 ];
 


++++++ test-skip-y2038-on-32bit-time_t.patch ++++++
Skip 'test/parallel/test-fs-utimes-y2K38.js' on some platforms.

This test fails if coreutils' touch was built with 64-bit time_t,
while nodejs was built with 32-bit time_t.  This is currently the case
on i586, ppc and armv7l.  Skip the failing last command on those
platforms.

The failure was seen since coreutils-9.0.

Remove this patch once nodejs(1) also builds with 64-bit time_t.
---
 test/parallel/test-fs-utimes-y2K38.js |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Index: node-v16.6.2/test/parallel/test-fs-utimes-y2K38.js
===================================================================
--- node-v16.6.2.orig/test/parallel/test-fs-utimes-y2K38.js
+++ node-v16.6.2/test/parallel/test-fs-utimes-y2K38.js
@@ -20,6 +20,23 @@ if (!common.isWindows) {
     common.skip('File system appears to lack Y2K38 support (touch failed)');
   }
 
+  // SUSE: touch-9.0 may succeed on platforms with 32-bit time_t,
+  // but the test would fail.  Skip on those platforms for now.
+  const unameResult = spawnSync('uname',
+                                ['-m'],
+                                { encoding: 'utf8' });
+  if (unameResult.status === 0) {
+    if (unameResult.stdout.trim() === 'i686') {
+      common.skip('SUSE: test skipped on platforms with 32-bit time_t');
+    }
+    if (unameResult.stdout.trim() === 'ppc') {
+      common.skip('SUSE: test skipped on platforms with 32-bit time_t');
+    }
+    if (unameResult.stdout.trim() === 'armv7l') {
+      common.skip('SUSE: test skipped on platforms with 32-bit time_t');
+    }
+  }
+
   // On some file systems that lack Y2K38 support, `touch` will succeed but
   // the time will be incorrect.
   const dateResult = spawnSync('date',

Reply via email to