!113 [sync] PR-112: fix build error for loongarch64
From: @openeuler-sync-bot Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
09ceeb39b6
11
pcp.spec
11
pcp.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: pcp
|
Name: pcp
|
||||||
Version: 6.2.2
|
Version: 6.2.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: System-level performance monitoring and performance management
|
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
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
|
||||||
URL: https://pcp.io
|
URL: https://pcp.io
|
||||||
@ -45,7 +45,11 @@ Source0: https://github.com/performancecopilot/pcp/archive/refs/tags/%{version}.
|
|||||||
%global disable_bcc 0
|
%global disable_bcc 0
|
||||||
|
|
||||||
# support for pmdabpf, check bcc.spec for supported architectures of libbpf-tools
|
# support for pmdabpf, check bcc.spec for supported architectures of libbpf-tools
|
||||||
|
%ifarch loongarch64
|
||||||
|
%global disable_bpf 1
|
||||||
|
%else
|
||||||
%global disable_bpf 0
|
%global disable_bpf 0
|
||||||
|
%endif
|
||||||
|
|
||||||
# support for pmdabpftrace, check bpftrace.spec for supported architectures of bpftrace
|
# support for pmdabpftrace, check bpftrace.spec for supported architectures of bpftrace
|
||||||
%global disable_bpftrace 0
|
%global disable_bpftrace 0
|
||||||
@ -2187,7 +2191,7 @@ sed -i '/.a$/d' pcp-devel-files
|
|||||||
sed -i '/\/man\//d' pcp-devel-files
|
sed -i '/\/man\//d' pcp-devel-files
|
||||||
sed -i '/\/include\//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-libs-files
|
||||||
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-devel-files
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-devel-files
|
||||||
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-devel-files
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-devel-files
|
||||||
@ -3174,6 +3178,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 6.2.2-2
|
||||||
|
- fix build error for loongarch64
|
||||||
|
|
||||||
* Thu May 30 2024 wangkai <13474090681@163.com> - 6.2.2-1
|
* Thu May 30 2024 wangkai <13474090681@163.com> - 6.2.2-1
|
||||||
- Update to 6.2.2 for fix CVE-2023-6917
|
- Update to 6.2.2 for fix CVE-2023-6917
|
||||||
- Add subpackages pcp-export-pcp2openmetrics pcp-pmda-uwsgi
|
- Add subpackages pcp-export-pcp2openmetrics pcp-pmda-uwsgi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user