diff --git a/0001-Resolving-loongarch64-build-error.patch b/0001-Resolving-loongarch64-build-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..5c1cf3c9dc9f6f3531a362a96b43aa2c994ea026 --- /dev/null +++ b/0001-Resolving-loongarch64-build-error.patch @@ -0,0 +1,26 @@ +From c0a42b47a90003b6d23c8251ec5b27ea849cc279 Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Wed, 12 Jul 2023 06:29:11 +0000 +Subject: [PATCH] Resolving loongarch64 build error + +--- + src/base/linux_syscall_support.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h +index b807b11..8400732 100644 +--- a/src/base/linux_syscall_support.h ++++ b/src/base/linux_syscall_support.h +@@ -993,6 +993,9 @@ struct kernel_stat { + #ifndef __NR_fstatat + #define __NR_fstatat 79 + #endif ++#ifndef __NR_fstat ++#define __NR_fstat 80 ++#endif + #ifndef __NR_getdents64 + #define __NR_getdents64 61 + #endif /* End of loongarch64 defininitions */ +-- +2.33.0 + diff --git a/gperftools.spec b/gperftools.spec index de029ac33edb233ecc02644a2e5a9bb22cf9121f..78696d11713254b7ea500db7a408392e0014c921 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -1,6 +1,6 @@ Name: gperftools Version: 2.10 -Release: 2 +Release: 3 Summary: high-performance malloc and performance analysis tools License: BSD-3-Clause @@ -13,6 +13,7 @@ Patch9000: issue-1122-fix-bus-error-on-aarch64.patch #https://github.com/gperftools/gperftools/issues/890 Patch9001: skip-heapchecker-in-arm-arch.patch Patch9002: avoid-exceed-int-range.patch +Patch9003: 0001-Resolving-loongarch64-build-error.patch BuildRequires: autoconf automake gcc-c++ BuildRequires: libtool libunwind-devel perl-generators @@ -107,6 +108,9 @@ LD_LIBRARY_PATH=./.libs make check %{_mandir}/man1/*.1.gz %changelog +* Wed Jul 12 2023 doupengda - 2.10-3 +- Resolving loongarch64 build error + * Wed Aug 03 2022 liukuo - 2.10-2 - License compliance rectification