public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libzpc] rawhide: spec: Integrate patches
@ 2026-06-11 14:59 Holger Dengler
0 siblings, 0 replies; only message in thread
From: Holger Dengler @ 2026-06-11 14:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libzpc
Branch : rawhide
Commit : 7325b1cf4f7d903b3ee70395c2f07d974a052409
Author : Holger Dengler <dengler@linux.ibm.com>
Date : 2026-06-11T16:55:37+02:00
Stats : +61/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/libzpc/c/7325b1cf4f7d903b3ee70395c2f07d974a052409?branch=rawhide
Log:
spec: Integrate patches
- zpckey: Remove unused header include
- zpckey: Use portable printf format
Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
---
diff --git a/libzpc-01-zpckey-Remove-unused-header-include.patch b/libzpc-01-zpckey-Remove-unused-header-include.patch
new file mode 100644
index 0000000..885a243
--- /dev/null
+++ b/libzpc-01-zpckey-Remove-unused-header-include.patch
@@ -0,0 +1,28 @@
+From e1efc69693a97695b8e42ac30415d043b4686e2d Mon Sep 17 00:00:00 2001
+From: Holger Dengler <dengler@linux.ibm.com>
+Date: Thu, 11 Jun 2026 15:47:13 +0200
+Subject: [PATCH] zpckey: Remove unused header include
+
+The zpckey does not use any definition from the misc.h header file. So
+remove the include statement.
+
+Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
+---
+ src/zpckey.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/zpckey.c b/src/zpckey.c
+index 1505dbf..c0a028a 100644
+--- a/src/zpckey.c
++++ b/src/zpckey.c
+@@ -25,7 +25,6 @@
+ #endif
+
+ #include "ossl.h"
+-#include "misc.h"
+ #include "asn1.h"
+ #include "uri.h"
+ #include "zkey/pkey.h"
+--
+2.54.0
+
diff --git a/libzpc-02-zpckey-Use-portable-printf-format.patch b/libzpc-02-zpckey-Use-portable-printf-format.patch
new file mode 100644
index 0000000..f5308d8
--- /dev/null
+++ b/libzpc-02-zpckey-Use-portable-printf-format.patch
@@ -0,0 +1,29 @@
+From e1cff865f14be11c28b842c57d7ae4c46c99780b Mon Sep 17 00:00:00 2001
+From: Holger Dengler <dengler@linux.ibm.com>
+Date: Thu, 11 Jun 2026 16:08:29 +0200
+Subject: [PATCH] zpckey: Use portable printf format
+
+Some type definitions (like size_t) may differ between platforms. Use
+portable printf formats to prevent compile warning.
+
+Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
+---
+ src/zpckey.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/zpckey.c b/src/zpckey.c
+index c0a028a..d64d40e 100644
+--- a/src/zpckey.c
++++ b/src/zpckey.c
+@@ -193,7 +193,7 @@ static int check_uv_id(const char *uv_id)
+ }
+
+ if (len != 32) {
+- fprintf(stderr, "uv-secret-id: incorrect length (%lu != 32)\n", len);
++ fprintf(stderr, "uv-secret-id: incorrect length (%zu != 32)\n", len);
+ return 1;
+ }
+
+--
+2.54.0
+
diff --git a/libzpc.spec b/libzpc.spec
index 8f78786..2341cca 100644
--- a/libzpc.spec
+++ b/libzpc.spec
@@ -7,6 +7,9 @@ License: MIT
Url: https://github.com/opencryptoki/libzpc
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0: libzpc-01-zpckey-Remove-unused-header-include.patch
+Patch1: libzpc-02-zpckey-Use-portable-printf-format.patch
+
Requires: openssl >= 3.0.7
BuildRequires: cmake
@@ -49,7 +52,7 @@ persistent protected key origins, from which protected keys can be (re-)derived.
%prep
-%autosetup %{name}-%{version}
+%autosetup -p1 %{name}-%{version}
%global modulesdir %(pkg-config --variable=modulesdir libcrypto)
%build
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-11 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 14:59 [rpms/libzpc] rawhide: spec: Integrate patches Holger Dengler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox