[arch-commits] Commit in stratisd/trunk (pr2665.patch)

Jiachen Yang farseerfc at gemini.archlinux.org
Mon Oct 4 22:56:24 UTC 2021


    Date: Monday, October 4, 2021 @ 22:56:24
  Author: farseerfc
Revision: 1027677

upgpkg: stratisd 2.4.2-2

Added:
  stratisd/trunk/pr2665.patch

--------------+
 pr2665.patch |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: pr2665.patch
===================================================================
--- pr2665.patch	                        (rev 0)
+++ pr2665.patch	2021-10-04 22:56:24 UTC (rev 1027677)
@@ -0,0 +1,51 @@
+From 5e433304fac6864d2ef75b3124281d18cd5a35ba Mon Sep 17 00:00:00 2001
+From: John Baublitz <jbaublitz at redhat.com>
+Date: Thu, 17 Jun 2021 17:05:47 -0400
+Subject: [PATCH 1/2] Allow code generated by bindgen for testing struct
+ layouts
+
+---
+ src/systemd/bindings.rs | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/systemd/bindings.rs b/src/systemd/bindings.rs
+index fda3e7425..d0e81a5cb 100644
+--- a/src/systemd/bindings.rs
++++ b/src/systemd/bindings.rs
+@@ -5,5 +5,9 @@
+ #![allow(clippy::redundant_static_lifetimes)]
+ #![allow(clippy::unreadable_literal)]
+ #![allow(clippy::missing_safety_doc)]
++// This allow should be removed once bindgen finds a way to
++// generate struct alignment tests without triggering errors
++// in the compiler. See https://github.com/rust-lang/rust-bindgen/issues/1651.
++#![allow(deref_nullptr)]
+ 
+ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
+
+From 3aafc75c991548a468631c6aa6e6b20d60632de1 Mon Sep 17 00:00:00 2001
+From: mulhern <amulhern at redhat.com>
+Date: Fri, 18 Jun 2021 20:53:48 -0400
+Subject: [PATCH 2/2] Allow lint in order to cover our lowest supported
+ toolchain
+
+This would be unnecessary if it were a clippy lint, but it is a regular
+compiler lint.
+
+Signed-off-by: mulhern <amulhern at redhat.com>
+---
+ src/systemd/bindings.rs | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/systemd/bindings.rs b/src/systemd/bindings.rs
+index d0e81a5cb..9dd61cfc2 100644
+--- a/src/systemd/bindings.rs
++++ b/src/systemd/bindings.rs
+@@ -8,6 +8,7 @@
+ // This allow should be removed once bindgen finds a way to
+ // generate struct alignment tests without triggering errors
+ // in the compiler. See https://github.com/rust-lang/rust-bindgen/issues/1651.
++#![allow(unknown_lints)]
+ #![allow(deref_nullptr)]
+ 
+ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));



More information about the arch-commits mailing list