From dd06bc92a69c91bbcfdb65a2b3a792aeab1597b3 Mon Sep 17 00:00:00 2001 From: hdu_sdlzx Date: Tue, 9 Nov 2021 14:25:37 +0800 Subject: [PATCH] Build an identical source rpm for different archs --- nodejs.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index 5f870b7..c1d8adf 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -1,5 +1,5 @@ %bcond_with bootstrap -%global baserelease 7 +%global baserelease 8 %{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} %global nodejs_epoch 1 %global nodejs_major 12 @@ -81,9 +81,10 @@ Source7: nodejs_native.attr Patch0001: 0001-Disable-running-gyp-on-shared-deps.patch Patch0002: 0002-Install-both-binaries-and-use-libdir.patch -%ifarch aarch64 + +# patch for aarch64 only Patch0003: 0003-Modify-openEuler-aarch64-v8_os_page_size-to-64.patch -%endif + Patch0004: 0004-Make-AARCH64-compile-on-64KB-physical-pages.patch Patch0005: CVE-2020-8265.patch Patch0006: CVE-2020-8287-1.patch @@ -231,6 +232,9 @@ The API documentation for the Node.js JavaScript runtime. %prep %autosetup -p1 -n node-v%{nodejs_version} +%ifnarch aarch64 +%patch0003 -R -p1 +%endif rm -rf deps/zlib rm -rf deps/brotli rm -rf deps/openssl @@ -497,6 +501,9 @@ end %{_pkgdocdir}/npm/docs %changelog +* Tue Nov 9 2021 sdlzx - 1:12.18.4-8 +- Build an identical source rpm for different archs + * Thu Oct 21 2021 yaoxin - 1:12.18.4-7 - fix CVE-2021-22930 -- Gitee