commit:     7e27203cbdad242722e9bf58362068246a091fab
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 11 05:53:23 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 11 05:53:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e27203c

sys-kernel/kpatch: drop Werror

Closes: https://bugs.gentoo.org/776925
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch | 12 ++++++++++++
 sys-kernel/kpatch/kpatch-0.9.4.ebuild                |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch 
b/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch
new file mode 100644
index 000000000000..0667fdd91ca1
--- /dev/null
+++ b/sys-kernel/kpatch/files/kpatch-0.9.4-no-werror.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/776925
+--- a/kpatch-build/Makefile
++++ b/kpatch-build/Makefile
+@@ -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

diff --git a/sys-kernel/kpatch/kpatch-0.9.4.ebuild 
b/sys-kernel/kpatch/kpatch-0.9.4.ebuild
index 5cdcff76d491..e30e6e2e09cf 100644
--- a/sys-kernel/kpatch/kpatch-0.9.4.ebuild
+++ b/sys-kernel/kpatch/kpatch-0.9.4.ebuild
@@ -34,6 +34,10 @@ DEPEND="
        test? ( dev-util/shellcheck-bin )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.9.4-no-werror.patch
+)
+
 pkg_setup() {
        if use kmod; then
                if kernel_is gt 3 9 0; then

Reply via email to