From 2efa3771d6d18018185dd2290e6291425b401d44 Mon Sep 17 00:00:00 2001 From: "jiahua.yu" Date: Tue, 20 Feb 2024 17:18:57 +0800 Subject: [PATCH] init support for arch powerpc64le & ppc64le --- ...support-for-arch-ppc64le-powerpc64le.patch | 38 +++++++++++++++++++ openEuler-rpm-config.spec | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 0001-init-support-for-arch-ppc64le-powerpc64le.patch diff --git a/0001-init-support-for-arch-ppc64le-powerpc64le.patch b/0001-init-support-for-arch-ppc64le-powerpc64le.patch new file mode 100644 index 0000000..717ed7d --- /dev/null +++ b/0001-init-support-for-arch-ppc64le-powerpc64le.patch @@ -0,0 +1,38 @@ +From 1a69c0732772ab299d5f1458d6f864dbbb84ed78 Mon Sep 17 00:00:00 2001 +From: "jiahua.yu" +Date: Tue, 20 Feb 2024 17:13:06 +0800 +Subject: [PATCH] init support for arch ppc64le & powerpc64le + +--- + macros | 2 +- + rpmrc | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/macros b/macros +index d241ce3..ddee753 100644 +--- a/macros ++++ b/macros +@@ -241,7 +241,7 @@ + %pkg_vcmp() (%{expand:%%{pkg_version_cmp %1 %3}} %2 0) + + #arches macros +-%generic_arches %{ix86} x86_64 %{arm} aarch64 sw_64 loongarch64 ++%generic_arches %{ix86} x86_64 %{arm} aarch64 sw_64 loongarch64 powerpc64le ppc64le + %ldc_arches %{generic_arches} + %valgrind_arches %{generic_arches} + %nodejs_arches %{generic_arches} +diff --git a/rpmrc b/rpmrc +index 8ba756d..6a29bcb 100644 +--- a/rpmrc ++++ b/rpmrc +@@ -7,6 +7,7 @@ optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-u + + optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + optflags: riscv64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection ++optflags: ppc64le %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection + + buildarchtranslate: athlon: i686 + buildarchtranslate: geode: i686 +-- +2.33.0 + diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 39bfa10..16f67bc 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -31,6 +31,7 @@ Patch17: Feature-support-EBS-sign-for-IMA-digest-list.patch Patch18: fix-brp-ldconfig-riscv-default-library-directory.patch Patch19: check-if-the-file-is-a-symbolic-link-in-brp-digest-list.patch Patch20: fix-the-ELF-file-cannot-be-found-due-to-escape-of.patch +Patch21: 0001-init-support-for-arch-ppc64le-powerpc64le.patch Provides: python-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} Provides: python2-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release} @@ -138,6 +139,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir %{rpmvdir}/find-requires.ksyms %changelog +* Tue Feb 20 2024 jiahua.yu - 30-39 +- init support for arch ppc64le & powerpc64le + * Tue Nov 21 2023 xujing - 30-38 - add the scanning path of the rpath fix the ELF file cannot be found due to escape of '\' -- Gitee