diff --git a/kernel.spec b/kernel.spec index 8dd65553ddb8aafd9db33332facb26cbf54eb50b..1e39ffab3357ceaf51c3abe7b52e33b138fee219 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1,5 +1,6 @@ # We have to override the new %%install behavior because, well... the kernel is special. %global __spec_install_pre %{___build_pre} +%define anolis_release .0.1 # At the time of this writing (2019-03), RHEL8 packages use w2.xzdio # compression for rpms (xz, level 2). @@ -41,7 +42,7 @@ %define pkgrelease 425.13.1.el8_7 # allow pkg_release to have configurable %%{?dist} tag -%define specrelease 425.13.1%{?dist} +%define specrelease 425.13.1%{anolis_release}%{?dist} %define pkg_release %{specrelease}%{?buildid} @@ -540,6 +541,7 @@ Source4001: rpminspect.yaml # empty final patch to facilitate testing of kernel patches Patch999999: linux-kernel-test.patch +Patch1000: repair-dwarves-causes-kernel-compilation-to-fail.patch # END OF PATCH DEFINITIONS @@ -1093,6 +1095,7 @@ mv linux-%{rpmversion}-%{pkgrelease} linux-%{KVERREL} cd linux-%{KVERREL} ApplyOptionalPatch linux-kernel-test.patch +%patch1000 -p0 -b .repair-dwarves-causes-kernel-compilation-to-fail # END OF PATCH APPLICATIONS @@ -2685,6 +2688,9 @@ fi # # %changelog +* Thu Feb 23 2023 Xiaoping Liu - 4.18.0-425.13.1.0.1 +- kernel:repair dwarves causes kernel compilation to fail + * Thu Feb 02 2023 Jarod Wilson [4.18.0-425.13.1.el8_7] - mm/cgroup/reclaim: fix dirty pages throttling on cgroup v1 (Waiman Long) [2160221] - mm: vmscan: remove deadlock due to throttling failing to make progress (Waiman Long) [2160221] diff --git a/repair-dwarves-causes-kernel-compilation-to-fail.patch b/repair-dwarves-causes-kernel-compilation-to-fail.patch new file mode 100644 index 0000000000000000000000000000000000000000..74f402038ee3b15bfdede0d6239196b0261b33b0 --- /dev/null +++ b/repair-dwarves-causes-kernel-compilation-to-fail.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2022-10-07 22:45:37.000000000 +0800 ++++ Makefile 2023-02-22 15:37:33.069118145 +0800 +@@ -378,7 +378,7 @@ + STRIP = $(CROSS_COMPILE)strip + OBJCOPY = $(CROSS_COMPILE)objcopy + OBJDUMP = $(CROSS_COMPILE)objdump +-PAHOLE = pahole ++PAHOLE = pahole --skip_encoding_btf_enum64 + RESOLVE_BTFIDS = $(objtree)/tools/bpf/resolve_btfids/resolve_btfids + LEX = flex + YACC = bison