From ab1a5efb64019f9d239b18e2d49ed9d97e50cfa2 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Thu, 6 Jun 2024 10:55:21 +0000 Subject: [PATCH] fix build error for loongarch64 (cherry picked from commit 6a5b5cd6ff9d66d6c0227d4577d4ffb772b62f2d) --- pcp.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pcp.spec b/pcp.spec index a56a95c..92f35fd 100644 --- a/pcp.spec +++ b/pcp.spec @@ -2,7 +2,7 @@ Name: pcp Version: 6.2.2 -Release: 1 +Release: 2 Summary: System-level performance monitoring and performance management License: GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0 URL: https://pcp.io @@ -45,7 +45,11 @@ Source0: https://github.com/performancecopilot/pcp/archive/refs/tags/%{version}. %global disable_bcc 0 # support for pmdabpf, check bcc.spec for supported architectures of libbpf-tools +%ifarch loongarch64 +%global disable_bpf 1 +%else %global disable_bpf 0 +%endif # support for pmdabpftrace, check bpftrace.spec for supported architectures of bpftrace %global disable_bpftrace 0 @@ -2187,7 +2191,7 @@ sed -i '/.a$/d' pcp-devel-files sed -i '/\/man\//d' pcp-devel-files sed -i '/\/include\//d' pcp-devel-files -%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64 +%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64 loongarch64 sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-files sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-devel-files sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-devel-files @@ -3174,6 +3178,9 @@ fi %changelog +* Wed Jun 05 2024 Wenlong Zhang - 6.2.2-2 +- fix build error for loongarch64 + * Thu May 30 2024 wangkai <13474090681@163.com> - 6.2.2-1 - Update to 6.2.2 for fix CVE-2023-6917 - Add subpackages pcp-export-pcp2openmetrics pcp-pmda-uwsgi -- Gitee