diff --git a/systemtap-4.7-sw.patch b/systemtap-4.7-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..4ffeb0c99f5a6381e73e41896d99646f941a9297 --- /dev/null +++ b/systemtap-4.7-sw.patch @@ -0,0 +1,17 @@ +diff -Naur systemtap-4.7/staplog.c systemtap-4.7.sw/staplog.c +--- systemtap-4.7/staplog.c 2023-05-12 09:25:28.350416154 +0800 ++++ systemtap-4.7.sw/staplog.c 2023-05-12 09:31:34.234271891 +0800 +@@ -24,10 +24,12 @@ + X86, X86_64, etc. See crash/configure.c (!). */ + #if !defined(X86) && !defined(X86_64) && !defined(ALPHA) && !defined(PPC) && \ + !defined(IA64) && !defined(PPC64) && !defined(S390) && !defined(S390X) && \ +- !defined(ARM) && !defined(ARM64) && !defined(LOONGARCH64) ++ !defined(ARM) && !defined(ARM64) && !defined(LOONGARCH64) && !defined(SW_64) + + #if defined(__alpha__) + #define ALPHA ++#if defined(__sw_64__) ++#define SW_64 + #elif defined(__x86_64__) + #define X86_64 + #elif defined(__i386__) diff --git a/systemtap.spec b/systemtap.spec index 76e06473cca2bce247b6ff3b128afb1b40faa22b..139d3479f1fa4070e4a3042cdef308d415f5afa3 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %{!?with_sqlite: %global with_sqlite 0%{?fedora} >= 17 || 0%{?rhel} >= 7} # prefer prebuilt docs %{!?with_docs: %global with_docs 0} @@ -156,6 +156,7 @@ URL: http://sourceware.org/systemtap/ Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz Patch10: 0001-add-loongarch-support-for-systemtap.patch +Patch10: systemtap-4.7-sw.patch # Build* BuildRequires: make @@ -577,6 +578,7 @@ systemtap-runtime-virthost machine to execute systemtap scripts. %prep %setup -q %patch10 -p1 +%patch11 -p1 %build @@ -1279,6 +1281,9 @@ exit 0 # PRERELEASE %changelog +* Fri May 12 2023 wxiat - 4.7-1.0.2 +- add sw patch + * Tue Dec 13 2022 WenlongZhang - 4.7-1.0.1 - add loongarch support for systemtap