public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-gstreamer-audio-sys] f44: Update to version 0.25.2; Fixes RHBZ#2469036
@ 2026-06-18 20:43 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-06-18 20:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-gstreamer-audio-sys
Branch : f44
Commit : c9318f8a227f7a683fde1ccb81335d4158700be3
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-06-18T22:35:29+02:00
Stats  : +13/-92 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-gstreamer-audio-sys/c/c9318f8a227f7a683fde1ccb81335d4158700be3?branch=f44

Log:
Update to version 0.25.2; Fixes RHBZ#2469036

---
diff --git a/.gitignore b/.gitignore
index 3039489..10938d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
 /gstreamer-audio-sys-0.24.0.crate
 /gstreamer-audio-sys-0.24.4.crate
 /gstreamer-audio-sys-0.25.0.crate
+/gstreamer-audio-sys-0.25.2.crate

diff --git a/1944.patch b/1944.patch
deleted file mode 100644
index 2b285d7..0000000
--- a/1944.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From 35be5d75338904b9d68b4d2227d1dade9ece96f9 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
-Date: Wed, 11 Mar 2026 19:15:23 +0200
-Subject: [PATCH] audio: Ignore GST_DSD_FORMAT_U16 / U32 in the -sys bindings
-
-Their actual value depends on the platform's endianness so handle it the
-same way as other such cases.
-
-Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/574
-
-Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1944>
----
- gstreamer-audio/sys/Gir.toml         | 10 ++++++++++
- gstreamer-audio/sys/src/lib.rs       |  2 --
- gstreamer-audio/sys/tests/abi.rs     |  2 --
- gstreamer-audio/sys/tests/constant.c |  2 --
- 4 files changed, 10 insertions(+), 6 deletions(-)
-
-diff --git a/gstreamer-audio/sys/Gir.toml b/gstreamer-audio/sys/Gir.toml
-index ca35324ad..e56fe5766 100644
---- a/gstreamer-audio/sys/Gir.toml
-+++ b/gstreamer-audio/sys/Gir.toml
-@@ -92,6 +92,16 @@ status = "generate"
-     name = "s20_32"
-     ignore = true
- 
-+[[object]]
-+name = "GstAudio.DsdFormat"
-+status = "generate"
-+    [[object.member]]
-+    name = "dsd_format_u16"
-+    ignore = true
-+    [[object.member]]
-+    name = "dsd_format_u32"
-+    ignore = true
-+
- [[object]]
- name = "GstAudio.*"
- status = "generate"
-diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs
-index 86c4eb225..2d4744359 100644
---- a/gstreamer-audio/sys/src/lib.rs
-+++ b/gstreamer-audio/sys/src/lib.rs
-@@ -206,8 +206,6 @@ pub const GST_DSD_FORMAT_U16BE: GstDsdFormat = 3;
- pub const GST_DSD_FORMAT_U32LE: GstDsdFormat = 4;
- pub const GST_DSD_FORMAT_U32BE: GstDsdFormat = 5;
- pub const GST_NUM_DSD_FORMATS: GstDsdFormat = 6;
--pub const GST_DSD_FORMAT_U16: GstDsdFormat = 2;
--pub const GST_DSD_FORMAT_U32: GstDsdFormat = 4;
- 
- pub type GstStreamVolumeFormat = c_int;
- pub const GST_STREAM_VOLUME_FORMAT_LINEAR: GstStreamVolumeFormat = 0;
-diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs
-index 1e58f1fe2..7717a8df1 100644
---- a/gstreamer-audio/sys/tests/abi.rs
-+++ b/gstreamer-audio/sys/tests/abi.rs
-@@ -902,10 +902,8 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
-         "GST_DSD_FORMATS_ALL",
-         "{ DSDU32BE, DSDU16BE, DSDU8, DSDU32LE, DSDU16LE }",
-     ),
--    ("(gint) GST_DSD_FORMAT_U16", "2"),
-     ("(gint) GST_DSD_FORMAT_U16BE", "3"),
-     ("(gint) GST_DSD_FORMAT_U16LE", "2"),
--    ("(gint) GST_DSD_FORMAT_U32", "4"),
-     ("(gint) GST_DSD_FORMAT_U32BE", "5"),
-     ("(gint) GST_DSD_FORMAT_U32LE", "4"),
-     ("(gint) GST_DSD_FORMAT_U8", "1"),
-diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c
-index 15520511a..8bc00dab7 100644
---- a/gstreamer-audio/sys/tests/constant.c
-+++ b/gstreamer-audio/sys/tests/constant.c
-@@ -211,10 +211,8 @@ int main() {
-     PRINT_CONSTANT((gint) GST_AUDIO_RING_BUFFER_STATE_STARTED);
-     PRINT_CONSTANT((gint) GST_AUDIO_RING_BUFFER_STATE_STOPPED);
-     PRINT_CONSTANT(GST_DSD_FORMATS_ALL);
--    PRINT_CONSTANT((gint) GST_DSD_FORMAT_U16);
-     PRINT_CONSTANT((gint) GST_DSD_FORMAT_U16BE);
-     PRINT_CONSTANT((gint) GST_DSD_FORMAT_U16LE);
--    PRINT_CONSTANT((gint) GST_DSD_FORMAT_U32);
-     PRINT_CONSTANT((gint) GST_DSD_FORMAT_U32BE);
-     PRINT_CONSTANT((gint) GST_DSD_FORMAT_U32LE);
-     PRINT_CONSTANT((gint) GST_DSD_FORMAT_U8);
--- 
-GitLab
-

diff --git a/rust-gstreamer-audio-sys.spec b/rust-gstreamer-audio-sys.spec
index 0c3c7b5..a224a9b 100644
--- a/rust-gstreamer-audio-sys.spec
+++ b/rust-gstreamer-audio-sys.spec
@@ -1,11 +1,13 @@
 # Generated by rust2rpm 28
-%bcond check 1
+# * tests generated by "gir" only work reliably when running with the same
+#   library version that was used when generating the tests
+%bcond check 0
 %global debug_package %{nil}
 
 %global crate gstreamer-audio-sys
 
 Name:           rust-gstreamer-audio-sys
-Version:        0.25.0
+Version:        0.25.2
 Release:        %autorelease
 Summary:        FFI bindings to libgstaudio-1.0
 
@@ -13,9 +15,6 @@ License:        MIT
 URL:            https://crates.io/crates/gstreamer-audio-sys
 Source:         %{crates_source}
 
-# https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/574
-Patch:          https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1944.patch
-
 BuildRequires:  cargo-rpm-macros >= 24
 BuildRequires:  pkgconfig(gstreamer-audio-1.0) >= 1.14
 
@@ -145,7 +144,7 @@ use the "v1_28" feature of the "%{crate}" crate.
 %ghost %{crate_instdir}/Cargo.toml
 
 %prep
-%autosetup -n %{crate}-%{version} -p3
+%autosetup -n %{crate}-%{version} -p1
 %cargo_prep
 
 %generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index a31709e..e9cf2f8 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,3 +1,9 @@
+[tests]
+run = false
+comments = [
+    "tests generated by \"gir\" only work reliably when running with the same library version that was used when generating the tests",
+]
+
 [features]
 hide = [
     "v1_30",

diff --git a/sources b/sources
index b9f767b..6d0ba31 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gstreamer-audio-sys-0.25.0.crate) = 93b41116260d7be13bcdc77e9a7b25e8d9f7d0dd86899a74e5fd9fad92b6128e10f2776511350e9bc10f526dcdafbc34ccb69298ec507f0543bc178c5fa8aacc
+SHA512 (gstreamer-audio-sys-0.25.2.crate) = fccb739dd742fd5bdf532df9ab2751953de03e73d92ea18429df882f7319815b1b8ea5d2c466f632d40018220fc055003c18b0d507e3e73fce58fa07fb1eacdd

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18 20:43 [rpms/rust-gstreamer-audio-sys] f44: Update to version 0.25.2; Fixes RHBZ#2469036 Fabio Valentini

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