public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kryoptic] f44: Unbreak build on i686
@ 2026-06-05 19:12 Jakub Jelen
  0 siblings, 0 replies; only message in thread
From: Jakub Jelen @ 2026-06-05 19:12 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/kryoptic
Branch : f44
Commit : 47bb372f74bd30d30999ff32aa8498aa275613a1
Author : Jakub Jelen <jjelen@redhat.com>
Date   : 2026-05-07T18:05:15+02:00
Stats  : +28/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kryoptic/c/47bb372f74bd30d30999ff32aa8498aa275613a1?branch=f44

Log:
Unbreak build on i686

---
diff --git a/kryoptic-i386.patch b/kryoptic-i386.patch
new file mode 100644
index 0000000..5d97f81
--- /dev/null
+++ b/kryoptic-i386.patch
@@ -0,0 +1,26 @@
+From a5195f65fe72a41f0db1ea0a361de2076da2cd46 Mon Sep 17 00:00:00 2001
+From: Jakub Jelen <jjelen@redhat.com>
+Date: Thu, 7 May 2026 17:34:40 +0200
+Subject: [PATCH] tools: Fix build on i686
+
+Signed-off-by: Jakub Jelen <jjelen@redhat.com>
+---
+ tools/profiles/conformance_lib/token_init.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/profiles/conformance_lib/token_init.rs b/tools/profiles/conformance_lib/token_init.rs
+index 117e790..0430850 100644
+--- a/tools/profiles/conformance_lib/token_init.rs
++++ b/tools/profiles/conformance_lib/token_init.rs
+@@ -300,7 +300,7 @@ pub fn init_token(args: &Arguments) -> Result<(), Box<dyn std::error::Error>> {
+         println!("PKCS#11 library initialized.");
+ 
+         let slot_id = if let Some(sid) = args.pkcs11_slot {
+-            sid
++            sid as pkcs11::CK_ULONG
+         } else {
+             println!("No slot specified, finding first slot with a token...");
+             let num_slots = pkcs11.get_slot_list(pkcs11::CK_TRUE, None)?;
+-- 
+2.54.0
+

diff --git a/kryoptic.spec b/kryoptic.spec
index 8908e2c..56fefc7 100644
--- a/kryoptic.spec
+++ b/kryoptic.spec
@@ -35,6 +35,8 @@ Source2:        https://people.redhat.com/~ssorce/simo_redhat.asc
 %endif
 # https://github.com/latchset/kryoptic/pull/439
 Patch:          kryoptic-1.5.0-asn1.patch
+# https://github.com/latchset/kryoptic/pull/452
+Patch:          kryoptic-i386.patch
 
 BuildRequires:  cargo-rpm-macros >= 26
 BuildRequires:  openssl-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 19:12 [rpms/kryoptic] f44: Unbreak build on i686 Jakub Jelen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox