From 8e1249d53d2895ea7650e2189719634a9c72349c Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Wed, 5 Jun 2024 12:55:53 +0000 Subject: [PATCH] fix build error for loongarch64 --- pcp.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pcp.spec b/pcp.spec index dbebf2c..13e3db8 100644 --- a/pcp.spec +++ b/pcp.spec @@ -2,7 +2,7 @@ Name: pcp Version: 6.1.1 -Release: 5 +Release: 6 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 @@ -47,7 +47,11 @@ Patch1: CVE-2024-3019.patch %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 @@ -2133,7 +2137,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 @@ -3106,6 +3110,9 @@ fi %changelog +* Wed Jun 05 2024 Wenlong Zhang - 6.1.1-6 +- fix build error for loongarch64 + * Mon Apr 22 2024 yueyuankun - 6.1.1-5 - modify spec, add vendor -- Gitee