public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Holger Dengler <dengler@linux.ibm.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libzpc] rawhide: spec: Integrate patches
Date: Thu, 11 Jun 2026 14:59:20 GMT [thread overview]
Message-ID: <178118996002.1.17366045834177668515.rpms-libzpc-7325b1cf4f7d@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-11 14:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178118996002.1.17366045834177668515.rpms-libzpc-7325b1cf4f7d@fedoraproject.org \
--to=dengler@linux.ibm.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox