[packages/nodejs] upstream (v8) fix for gcc 13

atler atler at pld-linux.org
Fri Jun 30 17:12:40 CEST 2023


commit 75d76607b0b489f1e2169e4ef4b7d4b47c2890a9
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jun 30 16:34:21 2023 +0200

    upstream (v8) fix for gcc 13
    
    from https://chromium-review.googlesource.com/c/v8/v8/+/3934140

 gcc13.patch | 41 +++++++++++++++++++++++++++++++++++++++++
 nodejs.spec |  2 ++
 2 files changed, 43 insertions(+)
---
diff --git a/nodejs.spec b/nodejs.spec
index c1f4956..a5c065d 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -42,6 +42,7 @@ Patch2:		%{name}-libpath.patch
 Patch3:		%{name}-lib64path.patch
 Patch4:		0001-Disable-running-gyp-on-shared-deps.patch
 Patch5:		0002-Install-both-binaries-and-use-libdir.patch
+Patch6:		gcc13.patch
 URL:		https://nodejs.org/
 BuildRequires:	c-ares-devel >= 1.17.2
 BuildRequires:	gcc >= 6:6.3
@@ -162,6 +163,7 @@ Sondy systemtap/dtrace dla Node.js.
 %endif
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1 -d deps/v8
 
 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python$,#!%{__python3},'
 
diff --git a/gcc13.patch b/gcc13.patch
new file mode 100644
index 0000000..2732acc
--- /dev/null
+++ b/gcc13.patch
@@ -0,0 +1,41 @@
+From c2792e58035fcbaa16d0cb70998852fbeb5df4cc Mon Sep 17 00:00:00 2001
+From: WANG Xuerui <git at xen0n.name>
+Date: Fri, 07 Oct 2022 00:23:49 +0800
+Subject: [PATCH] [base] Fix build with gcc-13
+
+See https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes.
+
+Also see Gentoo Linux bug report: https://bugs.gentoo.org/865981
+
+Change-Id: I421f396b02ba37e12ee70048ee33e034f8113566
+Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3934140
+Reviewed-by: Clemens Backes <clemensb at chromium.org>
+Reviewed-by: Simon Zünd <szuend at chromium.org>
+Commit-Queue: Clemens Backes <clemensb at chromium.org>
+Cr-Commit-Position: refs/heads/main@{#83587}
+---
+
+diff --git a/src/base/logging.h b/src/base/logging.h
+index 08db24a..38be165 100644
+--- a/src/base/logging.h
++++ b/src/base/logging.h
+@@ -5,6 +5,7 @@
+ #ifndef V8_BASE_LOGGING_H_
+ #define V8_BASE_LOGGING_H_
+ 
++#include <cstdint>
+ #include <cstring>
+ #include <sstream>
+ #include <string>
+diff --git a/src/inspector/v8-string-conversions.h b/src/inspector/v8-string-conversions.h
+index c1d69c1..eb33c68 100644
+--- a/src/inspector/v8-string-conversions.h
++++ b/src/inspector/v8-string-conversions.h
+@@ -5,6 +5,7 @@
+ #ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
+ #define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
+ 
++#include <cstdint>
+ #include <string>
+ 
+ // Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/75d76607b0b489f1e2169e4ef4b7d4b47c2890a9



More information about the pld-cvs-commit mailing list