gtk+2 uses glib APIs that are deprecated in 2.62.x
--- linux-5.3/tools/perf/Makefile.config.orig 2019-09-25 05:32:27.522918998 +0200
+++ linux-5.3/tools/perf/Makefile.config 2019-09-25 16:00:49.492003246 +0200
-@@ -169,6 +169,7 @@
+@@ -169,6 +169,8 @@
FEATURE_CHECK_CFLAGS-libzstd := $(LIBZSTD_CFLAGS)
FEATURE_CHECK_LDFLAGS-libzstd := $(LIBZSTD_LDFLAGS)
+FEATURE_CHECK_CFLAGS-gtk2 := -Wno-deprecated-declarations
++FEATURE_CHECK_CFLAGS-gtk2-infobar := -Wno-deprecated-declarations
FEATURE_CHECK_CFLAGS-bpf = -I. -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(SRCARCH)/include/uapi -I$(srctree)/tools/include/uapi
# include ARCH specific config
-include $(src-perf)/arch/$(SRCARCH)/Makefile
--- /dev/null
+Drop -I/usr/include/slang to allow detection of <slang.h> vs <slang/slang.h>
+--- linux-5.10/tools/build/feature/Makefile.orig 2020-12-13 23:41:30.000000000 +0100
++++ linux-5.10/tools/build/feature/Makefile 2020-12-17 06:28:25.229860807 +0100
+@@ -90,7 +90,7 @@
+ ###############################
+
+ $(OUTPUT)test-all.bin:
+- $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -I/usr/include/slang -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd
++ $(BUILD) -fstack-protector-all -O2 -D_FORTIFY_SOURCE=2 -ldw -lelf -lnuma -lelf -lslang $(FLAGS_PERL_EMBED) $(FLAGS_PYTHON_EMBED) -DPACKAGE='"perf"' -lbfd -ldl -lz -llzma -lzstd
+
+ $(OUTPUT)test-hello.bin:
+ $(BUILD)
%undefine with_multilib
%endif
-%define basever 5.9
-%define postver .0
+%define basever 5.10
+%define postver .1
Summary: Assortment of tools for the Linux kernel
Summary(pl.UTF-8): Zestaw narzędzi dla jądra Linuksa
Name: kernel-tools
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
-# Source0-md5: 0959d759fd19e146367221aff504ad91
+# Source0-md5: 753adc474bf799d569dec4f165ed92c3
Source1: cpupower.service
Source2: cpupower.config
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
-# Patch0-md5: 7055ff82e7e6a557c04831a191ed14b3
+# Patch0-md5: 33c2cbab3e136939c065e397879a8087
%endif
Patch1: x32.patch
Patch2: regex.patch
Patch3: %{name}-perf-update.patch
Patch4: %{name}-perf-gtk2.patch
+Patch5: %{name}-slang.patch
URL: https://www.kernel.org/
BuildRequires: bison
BuildRequires: docutils
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__sed} -i -e '/^CFLAGS = /s/ -g / $(OPTFLAGS) /' tools/hv/Makefile
%{__sed} -i -e '/^CFLAGS+=/s/ -O1 / $(OPTFLAGS) /' tools/thermal/tmon/Makefile
IS_X86_64=1 \
%{!?with_multilib:NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1} \
%endif
- %{!?with_gtk:NO_GTK2=1} \
+ %{?with_gtk:GTK2=1} \
%{!?with_libunwind:NO_LIBUNWIND=1} \
%{makeopts} \
CFLAGS_OPTIMIZE="%{rpmcflags}" \
+ VF=1 \
WERROR=0 \
prefix=%{_prefix} \
perfexecdir=%{_datadir}/perf-core \
IS_X86_64=1 \
%{!?with_multilib:NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1} \
%endif
- %{!?with_gtk:NO_GTK2=1} \
+ %{?with_gtk:GTK2=1} \
%{!?with_libunwind:NO_LIBUNWIND=1} \
CC="%{__cc}" \
CFLAGS_OPTIMIZE="%{rpmcflags}" \