public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-cargo-c] eln: Update to version 0.10.25+cargo-0.99.0
@ 2026-10-15  1:27 Fabio Valentini
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Valentini @ 2026-10-15  1:27 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-cargo-c
Branch : eln
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=eln

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [rpms/rust-cargo-c] eln: Update to version 0.10.25+cargo-0.99.0
@ 2026-10-15 18:34 Yaakov Selkowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Yaakov Selkowitz @ 2026-10-15 18:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-cargo-c
Branch : eln
Commit : f0b783a30b5a75e0550c21932d54b6e6a6893871
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2026-10-14T21:46:58-04:00
Stats  : +17/-28 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-cargo-c/c/f0b783a30b5a75e0550c21932d54b6e6a6893871?branch=eln

Log:
Update to version 0.10.25+cargo-0.99.0

---
diff --git a/.gitignore b/.gitignore
index 0ec647a..baefcd2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,5 @@
 /cargo-c-0.10.13+cargo-0.88.0-vendor.tar.xz
 /cargo-c-0.10.14+cargo-0.89.0.crate
 /cargo-c-0.10.14+cargo-0.89.0-vendor.tar.xz
+/cargo-c-0.10.25+cargo-0.99.0.crate
+/cargo-c-0.10.25+cargo-0.99.0-vendor.tar.xz

diff --git a/cargo-c-fix-metadata-auto.diff b/cargo-c-fix-metadata-auto.diff
index 6c5c97d..95bfede 100644
--- a/cargo-c-fix-metadata-auto.diff
+++ b/cargo-c-fix-metadata-auto.diff
@@ -1,16 +1,11 @@
---- cargo-c-0.10.14+cargo-0.89.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ cargo-c-0.10.14+cargo-0.89.0/Cargo.toml	2025-08-19T21:23:31.989890+00:00
+--- cargo-c-0.10.25+cargo-0.99.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ cargo-c-0.10.25+cargo-0.99.0/Cargo.toml	2025-08-19T21:23:31.989890+00:00
 @@ -13,7 +13,7 @@
  edition = "2021"
- rust-version = "1.86"
+ rust-version = "1.96"
  name = "cargo-c"
--version = "0.10.14+cargo-0.89.0"
-+version = "0.10.14"
+-version = "0.10.25+cargo-0.99.0"
++version = "0.10.25"
  authors = ["Luca Barbato <lu_zero@gentoo.org>"]
  build = false
  autolib = false
-@@ -135,3 +135,4 @@
- codegen-units = 1
- inherits = "release"
- strip = "symbols"
-+

diff --git a/cargo-c-fix-metadata.diff b/cargo-c-fix-metadata.diff
index 5708282..cb62a93 100644
--- a/cargo-c-fix-metadata.diff
+++ b/cargo-c-fix-metadata.diff
@@ -1,5 +1,5 @@
---- cargo-c-0.10.14+cargo-0.89.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ cargo-c-0.10.14+cargo-0.89.0/Cargo.toml	2025-08-19T21:23:31.991053+00:00
+--- cargo-c-0.10.25+cargo-0.99.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ cargo-c-0.10.25+cargo-0.99.0/Cargo.toml	2025-08-19T21:23:31.991053+00:00
 @@ -36,7 +36,6 @@
  
  [features]

diff --git a/rust-cargo-c.spec b/rust-cargo-c.spec
index 94dfbe3..f3c5361 100644
--- a/rust-cargo-c.spec
+++ b/rust-cargo-c.spec
@@ -2,10 +2,10 @@
 %bcond check 1
 
 %global crate cargo-c
-%global crate_version 0.10.14+cargo-0.89.0
+%global crate_version 0.10.25+cargo-0.99.0
 
 Name:           rust-cargo-c
-Version:        0.10.14
+Version:        0.10.25
 Release:        %autorelease
 Summary:        Helper program to build and install c-like libraries
 
@@ -18,7 +18,7 @@ Source:         %{crates_source %{crate} %{crate_version}}
 #   pushd cargo-c-%%{crate_version}
 #   patch -p1 < ../cargo-c-fix-metadata-auto.diff
 #   patch -p1 < ../cargo-c-fix-metadata.diff
-#   cargo vendor --versioned-dirs
+#   cargo vendor
 #   tar Jcvf ../cargo-c-%%{crate_version}-vendor.tar.xz vendor/
 #   popd
 Source1:        cargo-c-%{crate_version}-vendor.tar.xz
@@ -49,22 +49,18 @@ Helper program to build and install c-like libraries.}
 Summary:        %{summary}
 # (Apache-2.0 OR MIT) AND BSD-3-Clause
 # (MIT OR Apache-2.0) AND Unicode-3.0
-# 0BSD OR MIT OR Apache-2.0
 # Apache-2.0
-# Apache-2.0 OR Apache-2.0 WITH LLVM-exception
-# Apache-2.0 OR BSL-1.0
 # 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-2-Clause OR Apache-2.0 OR MIT
 # BSD-3-Clause
+# CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception
+# CC0-1.0 OR MIT-0 OR Apache-2.0
 # ISC
 # MIT
 # MIT OR Apache-2.0
 # MIT OR Apache-2.0 OR BSD-1-Clause
 # MIT OR Apache-2.0 OR Zlib
-# MIT OR Zlib OR Apache-2.0
-# MIT-0 OR Apache-2.0
 # MPL-2.0
 # MPL-2.0+
 # Unicode-3.0
@@ -74,7 +70,6 @@ Summary:        %{summary}
 License:        %{shrink:
     MIT AND
     Apache-2.0 AND
-    BSD-2-Clause AND
     BSD-3-Clause AND
     GPL-2.0-only WITH GCC-exception-2.0 AND
     ISC AND
@@ -83,12 +78,9 @@ License:        %{shrink:
     Unicode-3.0 AND
     Zlib AND
     blessing AND
-    (0BSD OR MIT OR Apache-2.0) AND
-    (Apache-2.0 OR BSL-1.0) AND
     (Apache-2.0 OR MIT) AND
     (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND
     (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND
-    (BSD-2-Clause OR Apache-2.0 OR MIT) AND
     (MIT OR Apache-2.0 OR BSD-1-Clause) AND
     (MIT OR Apache-2.0 OR Zlib) AND
     (MIT-0 OR Apache-2.0) AND

diff --git a/sources b/sources
index 9189f58..eff593a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (cargo-c-0.10.14+cargo-0.89.0.crate) = 2ecafae5ea9f7a273504ee1723a1c8b40c6fcb87823362de6acdb683c291c9a6c10949fcea11406b2c7f214b1c76a725d31a6625223b42154cf645e3acb029e4
-SHA512 (cargo-c-0.10.14+cargo-0.89.0-vendor.tar.xz) = ea260e5047de48bdc8d1b62c74b6d53210bab375ca2cb560ad0747b72c6593aeba18f22fa57746ba30dde200662cd69cca6688467412159ddb82981e1e301170
+SHA512 (cargo-c-0.10.25+cargo-0.99.0.crate) = 5780a2e51324b9c8fe5a239180b02011479f490109b8fe9e1f1ef267b8179a830db365333d6099e8a47fcad89268bd080121443ac52f10cf6d5685a27fe48f94
+SHA512 (cargo-c-0.10.25+cargo-0.99.0-vendor.tar.xz) = 4737e514b100f36ed093760080cf290ce29e2079d7deb3c1f63f168d365502467b4c01c81a2b0691aab9a61a3e7bd7d78b8862e516ab0a7fa8bf54f552ed6ea2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-15 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15  1:27 [rpms/rust-cargo-c] eln: Update to version 0.10.25+cargo-0.99.0 Fabio Valentini
2026-10-15 18:34 Yaakov Selkowitz

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