diff --git a/Fix-build-error-for-ppc64le.patch b/Fix-build-error-for-ppc64le.patch new file mode 100644 index 0000000000000000000000000000000000000000..a6b1b12fc6603dd64768b4f962892ef877e87ed6 --- /dev/null +++ b/Fix-build-error-for-ppc64le.patch @@ -0,0 +1,31 @@ +From 4d2ed81fcc1f21aa651fb5cc4555ea21cfd3d232 Mon Sep 17 00:00:00 2001 +From: peng_zou +Date: Tue, 25 Jun 2024 10:33:28 +0800 +Subject: [PATCH] Fix build error for ppc64le + +--- + Configurations/10-main.conf | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf +index 915e7dd..27433ce 100644 +--- a/Configurations/10-main.conf ++++ b/Configurations/10-main.conf +@@ -734,6 +734,14 @@ my %targets = ( + asm_arch => 'ppc64', + perlasm_scheme => "linux64le", + }, ++ "linux64-ppc64le" => { ++ inherit_from => [ "linux-generic64" ], ++ cflags => add("-m64"), ++ cxxflags => add("-m64"), ++ lib_cppflags => add("-DL_ENDIAN"), ++ asm_arch => 'ppc64', ++ perlasm_scheme => "linux64le", ++ }, + + "linux-armv4" => { + ################################################################ +-- +2.43.0 + diff --git a/openssl.spec b/openssl.spec index 7964393335f30ab64d1a647cd8f8173f01554f68..5ebb70d2b09818fdff09b1e89dc2701d9783dcd0 100644 --- a/openssl.spec +++ b/openssl.spec @@ -2,7 +2,7 @@ Name: openssl Epoch: 1 Version: 3.0.12 -Release: 14 +Release: 15 Summary: Cryptography and SSL/TLS Toolkit License: OpenSSL and SSLeay URL: https://www.openssl.org/ @@ -78,6 +78,7 @@ Patch65: backport-params-provide-a-faster-TRIE-based-param-lookup.patch Patch9000: add-FIPS_mode_set-support.patch Patch9001: backport-CVE-2024-9143-Harden-BN_GF2m_poly2arr-against-misuse.patch +Patch9002: Fix-build-error-for-ppc64le.patch BuildRequires: gcc gcc-c++ perl make lksctp-tools-devel coreutils util-linux zlib-devel Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} @@ -133,7 +134,7 @@ sslarch=%{_os}-%{_target_cpu} %ifarch i686 sslarch=linux-elf %endif -%ifarch riscv64 loongarch64 +%ifarch riscv64 loongarch64 ppc64le sslarch=%{_os}64-%{_target_cpu} sslflags="--libdir=%{_libdir}" %endif @@ -278,6 +279,9 @@ make test || : %ldconfig_scriptlets libs %changelog +* Wed Nov 27 2024 peng.zou - 1:3.0.12-15 +- Fix build error for ppc64le + * Tue Nov 26 2024 steven - 1:3.0.12-14 - backport patch for performance improvements