public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-glib] epel10: Update to version 0.19.4; Fixes RHBZ#2273985
Date: Fri, 25 Sep 2026 10:37:10 GMT	[thread overview]
Message-ID: <179033263044.1.62837861972367294.rpms-rust-glib-2836bbba0c91@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-glib
Branch : epel10
Commit : 2836bbba0c91e6729a2cc7139290c924b45729d5
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2024-04-16T14:14:46+02:00
Stats  : +5/-40 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-glib/c/2836bbba0c91e6729a2cc7139290c924b45729d5?branch=epel10

Log:
Update to version 0.19.4; Fixes RHBZ#2273985

---
diff --git a/.gitignore b/.gitignore
index eb8be0b..7e25039 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@
 /glib-0.18.2.crate
 /glib-0.18.5.crate
 /glib-0.19.3.crate
+/glib-0.19.4.crate

diff --git a/0001-fix-UB-in-VariantStrIter-impl_get.patch b/0001-fix-UB-in-VariantStrIter-impl_get.patch
deleted file mode 100644
index faeec7d..0000000
--- a/0001-fix-UB-in-VariantStrIter-impl_get.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 7667e5f8347df7579655bfcf99e65c2987b6fa08 Mon Sep 17 00:00:00 2001
-From: Fabio Valentini <decathorpe@gmail.com>
-Date: Wed, 3 Apr 2024 19:46:42 +0200
-Subject: [PATCH] fix UB in VariantStrIter::impl_get
-
----
- src/variant_iter.rs | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/variant_iter.rs b/src/variant_iter.rs
-index b406172..e0997f6 100644
---- a/src/variant_iter.rs
-+++ b/src/variant_iter.rs
-@@ -117,13 +117,13 @@ impl<'a> VariantStrIter<'a> {
- 
-     fn impl_get(&self, i: usize) -> &'a str {
-         unsafe {
--            let p: *mut libc::c_char = std::ptr::null_mut();
-+            let mut p: *mut libc::c_char = std::ptr::null_mut();
-             let s = b"&s\0";
-             ffi::g_variant_get_child(
-                 self.variant.to_glib_none().0,
-                 i,
-                 s as *const u8 as *const _,
--                &p,
-+                &mut p,
-                 std::ptr::null::<i8>(),
-             );
-             let p = std::ffi::CStr::from_ptr(p);
--- 
-2.44.0
-

diff --git a/glib-fix-metadata.diff b/glib-fix-metadata.diff
index 7ba7f3c..2bdc987 100644
--- a/glib-fix-metadata.diff
+++ b/glib-fix-metadata.diff
@@ -1,5 +1,5 @@
---- glib-0.19.3/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ glib-0.19.3/Cargo.toml	2024-03-26T22:12:50.405465+00:00
+--- glib-0.19.4/Cargo.toml	1970-01-01T00:00:01+00:00
++++ glib-0.19.4/Cargo.toml	2024-04-16T12:00:10.634483+00:00
 @@ -110,9 +110,6 @@
  [dependencies.thiserror]
  version = "1"

diff --git a/rust-glib.spec b/rust-glib.spec
index 6aecd84..1696f01 100644
--- a/rust-glib.spec
+++ b/rust-glib.spec
@@ -5,7 +5,7 @@
 %global crate glib
 
 Name:           rust-glib
-Version:        0.19.3
+Version:        0.19.4
 Release:        %autorelease
 Summary:        Rust bindings for the GLib library
 
@@ -15,9 +15,6 @@ Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
 # * drop unused, benchmark-only criterion dev-dependency
 Patch:          glib-fix-metadata.diff
-# * backport upstreamed patch to fix UB in VariantStr::impl_get:
-#   https://github.com/gtk-rs/gtk-rs-core/pull/1343
-Patch:          0001-fix-UB-in-VariantStrIter-impl_get.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
@@ -287,7 +284,6 @@ rm -r tests/regex_compiletest/
 
 %if %{with check}
 %check
-# * skip tests that crash when built with Fedora rustc
 # * skip a test that only works when run in-tree
 %cargo_test -- -- --exact --skip structured_log
 %endif

diff --git a/sources b/sources
index e2a6201..8d5530d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (glib-0.19.3.crate) = a6404f2ffd0ddf8fb6c8d95b9e212e6810ab39f00d7be6bf2201eca541790d36390b1baca870e5ce593cbef3d7fe0eb95f5d48fc2bc0a40fc34b528fd01a6343
+SHA512 (glib-0.19.4.crate) = d3de1e93b2d3ba32a5d75a1abc621a3d28bc75380264efdf8b3e92e80aea8112cad0edbab701544134486d3f28c1f6c552faedf4bfeab1b330f7bc176e72ae3b

                 reply	other threads:[~2026-09-25 10:37 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=179033263044.1.62837861972367294.rpms-rust-glib-2836bbba0c91@fedoraproject.org \
    --to=decathorpe@gmail.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