]> git.pld-linux.org Git - packages/libkcapi.git/commitdiff
upstream fix disabling console logging by default; rel 2 auto/th/libkcapi-1.4.0-2
authorJan Palus <atler@pld-linux.org>
Fri, 4 Aug 2023 23:38:36 +0000 (01:38 +0200)
committerJan Palus <atler@pld-linux.org>
Fri, 4 Aug 2023 23:38:36 +0000 (01:38 +0200)
disable-log.patch [new file with mode: 0644]
libkcapi.spec

diff --git a/disable-log.patch b/disable-log.patch
new file mode 100644 (file)
index 0000000..663df0a
--- /dev/null
@@ -0,0 +1,27 @@
+From 7a56432a48f6af4b2e5c2f0ec62ff974b111a3e9 Mon Sep 17 00:00:00 2001
+From: Stephan Mueller <smueller@chronox.de>
+Date: Wed, 27 Jul 2022 07:21:45 +0200
+Subject: [PATCH] set default log level to NONE
+
+Libraries should not issue any logs. Thus, set the default log level to
+NONE.
+
+Suggested-by: Fabian Vogt
+Signed-off-by: Stephan Mueller <smueller@chronox.de>
+---
+ lib/kcapi-kernel-if.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
+index 0df1a02..d7b10bf 100644
+--- a/lib/kcapi-kernel-if.c
++++ b/lib/kcapi-kernel-if.c
+@@ -55,7 +55,7 @@ void orig_memset_secure(void *s, int c, uint32_t n)
+ /************************************************************
+  * Logging logic
+  ************************************************************/
+-enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_ERR;
++enum kcapi_verbosity kcapi_verbosity_level = KCAPI_LOG_NONE;
+ void kcapi_dolog(enum kcapi_verbosity severity, const char *fmt, ...)
+ {
index 180ed809411308470d618264ef3d40945d9b730d..f4719044446c1759c384e5fc01cc63639a2af843 100644 (file)
@@ -9,12 +9,13 @@ Summary:      Linux Kernel Crypto API User Space Interface Library
 Summary(pl.UTF-8):     Biblioteka interfejsu przestrzeni użytownika do API kryptograficznego jądra Linuksa
 Name:          libkcapi
 Version:       1.4.0
-Release:       1
+Release:       2
 License:       BSD or GPL v2
 Group:         Libraries
 #Source0Download: https://www.chronox.de/libkcapi.html
 Source0:       https://www.chronox.de/libkcapi/%{name}-%{version}.tar.xz
 # Source0-md5: ca877231a346dfeefb50fe4311d2df5d
+Patch0:                disable-log.patch
 URL:           https://www.chronox.de/libkcapi.html
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -80,6 +81,7 @@ Statyczna biblioteka libkcapi.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.213497 seconds and 4 git commands to generate.