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-drm-fourcc] epel10: Bump bindgen dependency and regenerate bindings during build
Date: Fri, 25 Sep 2026 10:32:47 GMT [thread overview]
Message-ID: <179033236797.1.9011741665337208633.rpms-rust-drm-fourcc-6ca2924a93dd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-drm-fourcc
Branch : epel10
Commit : 6ca2924a93dde25fdd0ea84208b050eeb03cbb13
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2025-10-10T23:39:04+02:00
Stats : +62/-16 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-drm-fourcc/c/6ca2924a93dde25fdd0ea84208b050eeb03cbb13?branch=epel10
Log:
Bump bindgen dependency and regenerate bindings during build
---
diff --git a/0001-adapt-to-bindgen-API-changes.patch b/0001-adapt-to-bindgen-API-changes.patch
new file mode 100644
index 0000000..99b409d
--- /dev/null
+++ b/0001-adapt-to-bindgen-API-changes.patch
@@ -0,0 +1,25 @@
+From a3b53ffb0070a4c1eb08e2da41db061d9525d267 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Fri, 10 Oct 2025 23:14:03 +0200
+Subject: [PATCH] adapt to bindgen API changes
+
+---
+ build.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build.rs b/build.rs
+index 61fce85..2d70885 100644
+--- a/build.rs
++++ b/build.rs
+@@ -140,7 +140,7 @@ mod generate {
+ bindgen::builder()
+ .ctypes_prefix("crate::_fake_ctypes")
+ .header(wrapper_path.as_os_str().to_str().unwrap())
+- .whitelist_var("DRM_FOURCC_.*")
++ .allowlist_var("DRM_FOURCC_.*")
+ .generate()
+ .unwrap()
+ .write_to_file("src/consts.rs")?;
+--
+2.51.0
+
diff --git a/README.md b/README.md
deleted file mode 100644
index d6c195a..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-drm-fourcc
-
-The rust-drm-fourcc package
diff --git a/drm-fourcc-fix-metadata.diff b/drm-fourcc-fix-metadata.diff
index 07f8ac8..6bfaa6e 100644
--- a/drm-fourcc-fix-metadata.diff
+++ b/drm-fourcc-fix-metadata.diff
@@ -1,11 +1,11 @@
--- drm-fourcc-2.2.0/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ drm-fourcc-2.2.0/Cargo.toml 2023-07-23T04:32:38.521449+00:00
++++ drm-fourcc-2.2.0/Cargo.toml 2025-10-10T21:38:34.952673+00:00
@@ -25,7 +25,7 @@
features = ["derive"]
optional = true
[build-dependencies.bindgen]
-version = "0.57.0"
-+version = "0.63"
++version = ">=0.71,<0.73"
optional = true
[build-dependencies.regex]
diff --git a/rust-drm-fourcc.spec b/rust-drm-fourcc.spec
index b18b375..52297b2 100644
--- a/rust-drm-fourcc.spec
+++ b/rust-drm-fourcc.spec
@@ -1,5 +1,5 @@
-# Generated by rust2rpm 24
-%bcond_without check
+# Generated by rust2rpm 27
+%bcond check 1
%global debug_package %{nil}
%global crate drm-fourcc
@@ -13,12 +13,15 @@ License: MIT
URL: https://crates.io/crates/drm-fourcc
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
-# * bump bindgen to 0.63
+# * bump bindgen dependency from 0.57 to 0.71..0.72:
+# https://github.com/dzfranklin/drm-fourcc-rs/pull/30
Patch: drm-fourcc-fix-metadata.diff
-# Add license text
-Patch: https://github.com/danielzfranklin/drm-fourcc-rs/pull/21.patch
+# * Add license text
+Patch2: https://github.com/danielzfranklin/drm-fourcc-rs/pull/21.patch
+Patch3: 0001-adapt-to-bindgen-API-changes.patch
-BuildRequires: rust-packaging >= 21
+BuildRequires: cargo-rpm-macros >= 24
+BuildRequires: rustfmt
%global _description %{expand:
Provides an enum with every valid Direct Rendering Manager (DRM) format
@@ -113,21 +116,21 @@ use the "std" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
+%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
-%cargo_generate_buildrequires
+%cargo_generate_buildrequires -f build_bindings
%build
-%cargo_build
+%cargo_build -f build_bindings
%install
-%cargo_install
+%cargo_install -f build_bindings
%if %{with check}
%check
-%cargo_test
+%cargo_test -f build_bindings
%endif
%changelog
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..8127861
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,21 @@
+[package]
+cargo-toml-patch-comments = [
+ "bump bindgen dependency from 0.57 to 0.71..0.72: https://github.com/dzfranklin/drm-fourcc-rs/pull/30",
+]
+license-files = ["LICENSE"]
+
+[[package.extra-patches]]
+number = 2
+file = "https://github.com/danielzfranklin/drm-fourcc-rs/pull/21.patch"
+comments = ["Add license text"]
+
+[[package.extra-patches]]
+number = 3
+file = "0001-adapt-to-bindgen-API-changes.patch"
+
+[requires]
+build = ["rustfmt"]
+
+[features]
+enable = ["build_bindings"]
+
reply other threads:[~2026-09-25 10:32 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=179033236797.1.9011741665337208633.rpms-rust-drm-fourcc-6ca2924a93dd@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