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-cargo-c] f45: Update to version 0.10.25+cargo-0.99.0
Date: Sun, 11 Oct 2026 15:36:00 GMT [thread overview]
Message-ID: <179173296045.1.3872619209077960989.rpms-rust-cargo-c-7eb48c8ca116@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-cargo-c
Branch : f45
Commit : 7eb48c8ca11622e27454ea565df7a6d730737bf3
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-10-11T17:27:23+02:00
Stats : +57/-12 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cargo-c/c/7eb48c8ca11622e27454ea565df7a6d730737bf3?branch=f45
Log:
Update to version 0.10.25+cargo-0.99.0
---
diff --git a/.gitignore b/.gitignore
index ab5a06b..01be1e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,4 @@
/cargo-c-0.10.22+cargo-0.96.0.crate
/cargo-c-0.10.23+cargo-0.97.1.crate
/cargo-c-0.10.24+cargo-0.98.0.crate
+/cargo-c-0.10.25+cargo-0.99.0.crate
diff --git a/0001-Revert-object-v0.40-API-adaptations.patch b/0001-Revert-object-v0.40-API-adaptations.patch
new file mode 100644
index 0000000..42a6064
--- /dev/null
+++ b/0001-Revert-object-v0.40-API-adaptations.patch
@@ -0,0 +1,34 @@
+From f3dce1f0f9d157cfcffd915664de0c65cbf1c272 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Sun, 11 Oct 2026 16:59:24 +0200
+Subject: [PATCH] Revert object v0.40 API adaptations
+
+Partial revert of upstream commit:
+https://github.com/lu-zero/cargo-c/commit/a228fd9
+---
+ src/build.rs | 9 +--------
+ 1 file changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/src/build.rs b/src/build.rs
+index 8fec76f..21ef892 100644
+--- a/src/build.rs
++++ b/src/build.rs
+@@ -170,14 +170,7 @@ fn write_def_file<W: std::io::Write>(dll_file: object::File, mut def_file: W) ->
+ writeln!(def_file, "EXPORTS")?;
+
+ for export in dll_file.exports()? {
+- let export = export?;
+- let name = match export.name() {
+- object::read::NameOrOrdinal::Name(n) => n,
+- object::read::NameOrOrdinal::Ordinal(o) => {
+- anyhow::bail!("ordinal-only export {o} cannot be listed in a .def file")
+- }
+- };
+- def_file.write_all(name)?;
++ def_file.write_all(export.name())?;
+ def_file.write_all(b"\n")?;
+ }
+
+--
+2.56.0
+
diff --git a/cargo-c-fix-metadata-auto.diff b/cargo-c-fix-metadata-auto.diff
index 6253086..a0bb988 100644
--- a/cargo-c-fix-metadata-auto.diff
+++ b/cargo-c-fix-metadata-auto.diff
@@ -1,11 +1,11 @@
---- cargo-c-0.10.24+cargo-0.98.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ cargo-c-0.10.24+cargo-0.98.0/Cargo.toml 2026-08-18T13:38:05.853472+00:00
+--- cargo-c-0.10.25+cargo-0.99.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ cargo-c-0.10.25+cargo-0.99.0/Cargo.toml 2026-10-11T14:57:16.199180+00:00
@@ -13,7 +13,7 @@
edition = "2021"
- rust-version = "1.95"
+ rust-version = "1.96"
name = "cargo-c"
--version = "0.10.24+cargo-0.98.0"
-+version = "0.10.24"
+-version = "0.10.25+cargo-0.99.0"
++version = "0.10.25"
authors = ["Luca Barbato <lu_zero@gentoo.org>"]
build = false
autolib = false
diff --git a/cargo-c-fix-metadata.diff b/cargo-c-fix-metadata.diff
index c1cc7ad..0004d8f 100644
--- a/cargo-c-fix-metadata.diff
+++ b/cargo-c-fix-metadata.diff
@@ -1,5 +1,5 @@
---- cargo-c-0.10.24+cargo-0.98.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ cargo-c-0.10.24+cargo-0.98.0/Cargo.toml 2026-08-18T13:38:05.854953+00:00
+--- cargo-c-0.10.25+cargo-0.99.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ cargo-c-0.10.25+cargo-0.99.0/Cargo.toml 2026-10-11T14:57:25.119934+00:00
@@ -36,7 +36,6 @@
[features]
@@ -8,3 +8,12 @@
[lib]
name = "cargo_c"
+@@ -106,7 +105,7 @@
+ version = "0.4"
+
+ [dependencies.object]
+-version = "0.40.0"
++version = "0.39.0"
+ features = [
+ "std",
+ "read_core",
diff --git a/rust-cargo-c.spec b/rust-cargo-c.spec
index b50e727..91e35c1 100644
--- a/rust-cargo-c.spec
+++ b/rust-cargo-c.spec
@@ -8,10 +8,10 @@
%endif
%global crate cargo-c
-%global crate_version 0.10.24+cargo-0.98.0
+%global crate_version 0.10.25+cargo-0.99.0
Name: rust-cargo-c
-Version: 0.10.24
+Version: 0.10.25
Release: %autorelease
Summary: Helper program to build and install c-like libraries
@@ -22,8 +22,10 @@ Source1: macros.cargo-c
# Automatically generated patch to strip dependencies and normalize metadata
Patch: cargo-c-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
+# * temporarily downgrade object dependency from v0.40 to v0.39
# * remove feature for building / statically linking vendored OpenSSL sources
Patch: cargo-c-fix-metadata.diff
+Patch: 0001-Revert-object-v0.40-API-adaptations.patch
BuildRequires: cargo-rpm-macros >= 24
@@ -42,7 +44,6 @@ Summary: %{summary}
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
-# BSD-2-Clause
# BSD-3-Clause
# ISC
# MIT
@@ -60,7 +61,6 @@ License: %{shrink:
MIT AND
AND Apache-2.0
AND Apache-2.0 WITH LLVM-exception
- AND BSD-2-Clause
AND BSD-3-Clause
AND ISC
AND MPL-2.0
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 222f239..087adaf 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,6 @@
[package]
cargo-toml-patch-comments = [
+ "temporarily downgrade object dependency from v0.40 to v0.39",
"remove feature for building / statically linking vendored OpenSSL sources",
]
extra-sources = [
diff --git a/sources b/sources
index e150ef0..dc696a9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cargo-c-0.10.24+cargo-0.98.0.crate) = b184685eaed8f5967b79b83293dc2047d94a56d6fee87d80b75afdc7254990854287c4af2334ac7eb9ca87d38d635633a74f2983d472a85208f5321065d1a279
+SHA512 (cargo-c-0.10.25+cargo-0.99.0.crate) = 5780a2e51324b9c8fe5a239180b02011479f490109b8fe9e1f1ef267b8179a830db365333d6099e8a47fcad89268bd080121443ac52f10cf6d5685a27fe48f94
reply other threads:[~2026-10-11 15:36 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=179173296045.1.3872619209077960989.rpms-rust-cargo-c-7eb48c8ca116@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