public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-crypto-auditing] f44: Revert "Stop tracking unused patches"
@ 2026-09-06 20:34 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-06 20:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-crypto-auditing
            Branch : f44
            Commit : 6e99e7f8f8f7413067c2ae3e31f91d22df424362
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-09-06T21:31:16+01:00
            Stats  : +72/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-crypto-auditing/c/6e99e7f8f8f7413067c2ae3e31f91d22df424362?branch=f44

            Log:
            Revert "Stop tracking unused patches"

This reverts commit 79f2a11ae871051d61cc4cc1c025a3e3024f049d.

---
diff --git a/0001-Avoid-deprecated-CargoCallbacks-constant.patch b/0001-Avoid-deprecated-CargoCallbacks-constant.patch
new file mode 100644
index 0000000..1afea71
--- /dev/null
+++ b/0001-Avoid-deprecated-CargoCallbacks-constant.patch
@@ -0,0 +1,26 @@
+From 431b0c9d6358c281ecce53a7a6e935f4d1d0506f Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Tue, 14 Oct 2025 10:56:38 +0100
+Subject: [PATCH] Avoid deprecated CargoCallbacks constant
+
+Use `CargoCallbacks::new()` instead.
+---
+ build.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build.rs b/build.rs
+index 4519735..e0f6f4a 100644
+--- a/build.rs
++++ b/build.rs
+@@ -12,7 +12,7 @@ fn main() {
+         .header(HDR)
+         // Tell cargo to invalidate the built crate whenever any of the
+         // included header files changed.
+-        .parse_callbacks(Box::new(bindgen::CargoCallbacks))
++        .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
+         .constified_enum_module("audit_event_type_t")
+         .constified_enum_module("audit_data_type_t")
+         // Finish the builder and generate the bindings.
+-- 
+2.51.0
+

diff --git a/rust-crypto-auditing-0.2.4-types32.patch b/rust-crypto-auditing-0.2.4-types32.patch
new file mode 100644
index 0000000..ebf1dbe
--- /dev/null
+++ b/rust-crypto-auditing-0.2.4-types32.patch
@@ -0,0 +1,46 @@
+From 8744b2245ca9f524b1769cc7341851bbbf4ba71f Mon Sep 17 00:00:00 2001
+From: Daiki Ueno <dueno@redhat.com>
+Date: Wed, 3 Dec 2025 14:20:57 +0900
+Subject: [PATCH] Fix typing on 32-bit architecture
+
+Signed-off-by: Daiki Ueno <dueno@redhat.com>
+---
+ crypto-auditing/src/types.rs | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/crypto-auditing/src/types.rs b/crypto-auditing/src/types.rs
+index b838a8d..e6365f3 100644
+--- a/crypto-auditing/src/types.rs
++++ b/crypto-auditing/src/types.rs
+@@ -114,13 +114,15 @@ impl EventGroup {
+     /// Deserializes an event group from bytes
+     pub fn from_bytes(bytes: &[u8]) -> Result<Self, Box<dyn std::error::Error>> {
+         let header = bytes.as_ptr() as *mut audit_event_header_st;
+-        let context = unsafe { format_context((*header).pid_tgid, (*header).context) };
+-        let ktime = unsafe { Duration::from_nanos((*header).ktime) };
++        let context =
++            unsafe { format_context((*header).pid_tgid.into(), (*header).context.into()) };
++        let ktime = unsafe { Duration::from_nanos((*header).ktime.into()) };
+         let event = match unsafe { (*header).type_ } {
+             audit_event_type_t::AUDIT_EVENT_NEW_CONTEXT => {
+                 let raw_new_context = bytes.as_ptr() as *mut audit_new_context_event_st;
+-                let parent =
+-                    unsafe { format_context((*header).pid_tgid, (*raw_new_context).parent) };
++                let parent = unsafe {
++                    format_context((*header).pid_tgid.into(), (*raw_new_context).parent.into())
++                };
+                 let origin = unsafe {
+                     (&(*raw_new_context).origin)[..(*raw_new_context).origin_size as usize].to_vec()
+                 };
+@@ -143,7 +145,7 @@ impl EventGroup {
+                             end: ktime,
+                             events: vec![Event::Data {
+                                 key: key.to_str()?.to_string(),
+-                                value: EventData::Word((*raw_word_data).value),
++                                value: EventData::Word((*raw_word_data).value.into()),
+                             }],
+                         }
+                     }
+-- 
+2.52.0
+

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

only message in thread, other threads:[~2026-09-06 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-06 20:34 [rpms/rust-crypto-auditing] f44: Revert "Stop tracking unused patches" Benjamin A. Beasley

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