From 95c836e333ca0c7cad39ce6bcb60071a22b0f4f9 Mon Sep 17 00:00:00 2001 From: dslm4515 <27793627+dslm4515@users.noreply.gitub.com> Date: Mon, 15 Jan 2024 16:21:08 -0600 Subject: [PATCH] Fixed patch for keyutils --- build-scripts/keyutils.build | 5 ++++- patches/keyutils-mlfs/remove-werror.patch | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 patches/keyutils-mlfs/remove-werror.patch diff --git a/build-scripts/keyutils.build b/build-scripts/keyutils.build index e45532f..b3be838 100644 --- a/build-scripts/keyutils.build +++ b/build-scripts/keyutils.build @@ -12,7 +12,10 @@ # Optional: NONE # Per Chimera Linux, enable install(1) portability -patch -Np1 -i ../patches/keyutils-chimera/install.patch +#patch -Np1 -i ../patches/keyutils-chimera/install.patch + +# Remove -Werror from CFLAGS +patch -Np1 -i ../patches/keyutils-mlfs/remove-werror.patch read -p "Compile?" && \ # If building with LLVM-17's LLD, set the LDFLAGS diff --git a/patches/keyutils-mlfs/remove-werror.patch b/patches/keyutils-mlfs/remove-werror.patch new file mode 100644 index 0000000..ed23def --- /dev/null +++ b/patches/keyutils-mlfs/remove-werror.patch @@ -0,0 +1,11 @@ +--- keyutils-1.6.3.orig/Makefile 2020-07-07 11:04:37.000000000 -0500 ++++ keyutils-1.6.3/Makefile 2024-01-10 15:39:50.250688856 -0600 +@@ -1,6 +1,6 @@ + CPPFLAGS := -I. +-CFLAGS := -g -Wall -Werror +-CXXFLAGS := -g -Wall -Werror ++CFLAGS := -g -Wall ++CXXFLAGS := -g -Wall + INSTALL := install + DESTDIR := + SPECFILE := keyutils.spec