Hello community,

here is the log from the commit of package nodejs10 for openSUSE:Factory 
checked in at 2020-03-25 23:42:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nodejs10 (Old)
 and      /work/SRC/openSUSE:Factory/.nodejs10.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nodejs10"

Wed Mar 25 23:42:14 2020 rev:21 rq:786454 version:10.19.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/nodejs10/nodejs10.changes        2020-02-19 
12:39:27.239499111 +0100
+++ /work/SRC/openSUSE:Factory/.nodejs10.new.3160/nodejs10.changes      
2020-03-25 23:42:23.119975721 +0100
@@ -1,0 +2,7 @@
+Mon Mar  2 09:43:10 UTC 2020 - Adam Majer <adam.ma...@suse.de>
+
+- openssl_rand_regression.patch: Add getrandom syscall definition
+  for all Linux platforms. This fixes a runtime error in SLE-12
+  (bnc#1162117)
+
+-------------------------------------------------------------------

New:
----
  openssl_rand_regression.patch

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

Other differences:
------------------
++++++ nodejs10.spec ++++++
--- /var/tmp/diff_new_pack.lgWN4X/_old  2020-03-25 23:42:25.839976610 +0100
+++ /var/tmp/diff_new_pack.lgWN4X/_new  2020-03-25 23:42:25.879976624 +0100
@@ -147,6 +147,7 @@
 Patch104:       npm_search_paths.patch
 Patch105:       skip_test_on_lowmem.patch
 Patch106:       skip_no_console.patch
+Patch108:       openssl_rand_regression.patch
 
 Patch120:       flaky_test_rerun.patch
 
@@ -197,6 +198,7 @@
 BuildRequires:  zlib-devel
 
 %if %node_version_number > 12
+BuildRequires:  netcfg
 BuildRequires:  python3
 %else
 %if 0%{?suse_version} >= 1500
@@ -354,6 +356,7 @@
 %patch104 -p1
 %patch105 -p1
 %patch106 -p1
+%patch108 -p1
 %patch120 -p1
 %patch200 -p1
 



++++++ openssl_rand_regression.patch ++++++


commit 4dcb150ea30f9bbfa7946e6b39c30a86aca5ed02
Author: Kurt Roeckx <k...@roeckx.be>
Date:   Sat Sep 28 14:59:32 2019 +0200

    Add defines for __NR_getrandom for all Linux architectures
    
    Fixes: #10015
    
    Reviewed-by: Bernd Edlinger <bernd.edlin...@hotmail.de>
    GH: #10044


Index: node-v10.19.0/deps/openssl/openssl_common.gypi
===================================================================
--- node-v10.19.0.orig/deps/openssl/openssl_common.gypi
+++ node-v10.19.0/deps/openssl/openssl_common.gypi
@@ -63,6 +63,7 @@
       'defines': [
         'OPENSSLDIR="/etc/ssl"',
         'ENGINESDIR="/dev/null"',
+        'OPENSSL_RAND_SEED_GETRANDOM',
         'TERMIOS',
       ],
     }],
Index: node-v10.19.0/deps/openssl/openssl/crypto/rand/rand_unix.c
===================================================================
--- node-v10.19.0.orig/deps/openssl/openssl/crypto/rand/rand_unix.c
+++ node-v10.19.0/deps/openssl/openssl/crypto/rand/rand_unix.c
@@ -282,12 +282,58 @@ static ssize_t sysctl_random(char *buf,
 #  if defined(OPENSSL_RAND_SEED_GETRANDOM)
 
 #   if defined(__linux) && !defined(__NR_getrandom)
-#    if defined(__arm__) && defined(__NR_SYSCALL_BASE)
+#    if defined(__arm__)
 #     define __NR_getrandom    (__NR_SYSCALL_BASE+384)
 #    elif defined(__i386__)
 #     define __NR_getrandom    355
-#    elif defined(__x86_64__) && !defined(__ILP32__)
-#     define __NR_getrandom    318
+#    elif defined(__x86_64__)
+#     if defined(__ILP32__)
+#      define __NR_getrandom   (__X32_SYSCALL_BIT + 318)
+#     else
+#      define __NR_getrandom   318
+#     endif
+#    elif defined(__xtensa__)
+#     define __NR_getrandom    338
+#    elif defined(__s390__) || defined(__s390x__)
+#     define __NR_getrandom    349
+#    elif defined(__bfin__)
+#     define __NR_getrandom    389
+#    elif defined(__powerpc__)
+#     define __NR_getrandom    359
+#    elif defined(__mips__) || defined(__mips64)
+#     if _MIPS_SIM == _MIPS_SIM_ABI32
+#      define __NR_getrandom   (__NR_Linux + 353)
+#     elif _MIPS_SIM == _MIPS_SIM_ABI64
+#      define __NR_getrandom   (__NR_Linux + 313)
+#     elif _MIPS_SIM == _MIPS_SIM_NABI32
+#      define __NR_getrandom   (__NR_Linux + 317)
+#     endif
+#    elif defined(__hppa__)
+#     define __NR_getrandom    (__NR_Linux + 339)
+#    elif defined(__sparc__)
+#     define __NR_getrandom    347
+#    elif defined(__ia64__)
+#     define __NR_getrandom    1339
+#    elif defined(__alpha__)
+#     define __NR_getrandom    511
+#    elif defined(__sh__)
+#     if defined(__SH5__)
+#      define __NR_getrandom   373
+#     else
+#      define __NR_getrandom   384
+#     endif
+#    elif defined(__avr32__)
+#     define __NR_getrandom    317
+#    elif defined(__microblaze__)
+#     define __NR_getrandom    385
+#    elif defined(__m68k__)
+#     define __NR_getrandom    352
+#    elif defined(__cris__)
+#     define __NR_getrandom    356
+#    elif defined(__aarch64__)
+#     define __NR_getrandom    278
+#    else /* generic */
+#     define __NR_getrandom    278
 #    endif
 #   endif
 

Reply via email to