diff --git a/0038-fix-cc-remove-incorrect-CFLAGS.patch b/0038-fix-cc-remove-incorrect-CFLAGS.patch new file mode 100644 index 0000000000000000000000000000000000000000..60be74fd618c413d6aa58590181eb86ac33443fa --- /dev/null +++ b/0038-fix-cc-remove-incorrect-CFLAGS.patch @@ -0,0 +1,21 @@ +--- a/kpatch-build/Makefile 2022-09-26 23:48:50.000000000 +0800 ++++ b/kpatch-build/Makefile 2023-04-27 16:54:09.948999717 +0800 +@@ -1,7 +1,7 @@ + include ../Makefile.inc + + CFLAGS += -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare \ +- -Wconversion -Wno-sign-conversion -g -Werror ++ -Wconversion -Wno-sign-conversion -g + LDLIBS = -lelf + + TARGETS = create-diff-object create-klp-module create-kpatch-module + +--- a/Makefile.inc 2022-09-26 23:48:50.000000000 +0800 ++++ b/Makefile.inc 2023-04-27 16:53:42.890699993 +0800 +@@ -1,5 +1,5 @@ + SHELL = /bin/sh +-CC = gcc ++CC ?= gcc + + INSTALL = /usr/bin/install + diff --git a/kpatch.spec b/kpatch.spec index ca4756fd0da2d4db27388dfb8158c3ef819a2eba..b248e516f665b5f2c0d9381c97ae2f3b2656c072 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -1,7 +1,7 @@ Name: kpatch Epoch: 1 Version: 0.9.7 -Release: 1 +Release: 2 Summary: A Linux dynamic kernel patching infrastructure License: GPLv2 @@ -50,6 +50,7 @@ Patch0034:0034-create-diff-object-allow-__jump_table-section-change.patch Patch0035:0035-livepatch-patch-hook-fix-kpatch-build-error-which-do.patch Patch0036:0036-lookup-skip-finding-local-symbols-for-object-with-no.patch Patch0037:0037-create-diff-object-ignore-entsize-change-of-.return_.patch +Patch0038:0038-fix-cc-remove-incorrect-CFLAGS.patch BuildRequires: gcc elfutils-libelf-devel kernel-devel git Requires: bc make gcc patch bison flex openssl-devel @@ -110,6 +111,9 @@ popd %{_mandir}/man1/*.1.gz %changelog +* Sun Apr 16 2023 Xiaoya Huang - 1:0.9.7-2 +- Fix CC compiler support and CFLAGS error + * Mon Jan 30 2023 Bin Hu -1:0.9.7-1 - Type:enhancement - ID:NA