public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-cargo-c] eln: Merge remote-tracking branch 'origin/rawhide' into eln
Date: Thu, 15 Oct 2026 01:27:49 GMT [thread overview]
Message-ID: <179202766968.1.6480978455621925309.rpms-rust-cargo-c-725f55dde9ca@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-cargo-c
Branch : eln
Commit : 725f55dde9ca0b29a0263833b22cdb701389ed76
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-10-14T21:27:04-04:00
Stats : +74/-154 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cargo-c/c/725f55dde9ca0b29a0263833b22cdb701389ed76?branch=eln
Log:
Merge remote-tracking branch 'origin/rawhide' into eln
---
diff --git a/.gitignore b/.gitignore
index 01be1e0..0ec647a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,27 +15,10 @@
/cargo-c-0.9.7+cargo-0.59.crate
/cargo-c-0.9.12+cargo-0.64.crate
/cargo-c-0.9.19+cargo-0.70.crate
-/cargo-c-0.9.27+cargo-0.74.0.crate
-/cargo-c-0.9.28+cargo-0.75.0.crate
-/cargo-c-0.9.31+cargo-0.78.0.crate
-/cargo-c-0.9.32+cargo-0.79.0.crate
-/cargo-c-0.10.2+cargo-0.80.0.crate
-/cargo-c-0.10.3+cargo-0.81.0.crate
-/cargo-c-0.10.4+cargo-0.82.0.crate
-/cargo-c-0.10.5+cargo-0.83.0.crate
-/cargo-c-0.10.7+cargo-0.84.0.crate
-/cargo-c-0.10.9+cargo-0.85.0.crate
-/cargo-c-0.10.11+cargo-0.86.0.crate
+/cargo-c-0.9.19+cargo-0.70-vendor.tar.xz
/cargo-c-0.10.12+cargo-0.87.0.crate
+/cargo-c-0.10.12+cargo-0.87.0-vendor.tar.xz
/cargo-c-0.10.13+cargo-0.88.0.crate
+/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.15+cargo-0.90.0.crate
-/cargo-c-0.10.16+cargo-0.91.0.crate
-/cargo-c-0.10.18+cargo-0.92.0.crate
-/cargo-c-0.10.19+cargo-0.93.0.crate
-/cargo-c-0.10.20+cargo-0.94.0.crate
-/cargo-c-0.10.21+cargo-0.95.0.crate
-/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
+/cargo-c-0.10.14+cargo-0.89.0-vendor.tar.xz
diff --git a/0001-Revert-object-v0.40-API-adaptations.patch b/0001-Revert-object-v0.40-API-adaptations.patch
deleted file mode 100644
index 42a6064..0000000
--- a/0001-Revert-object-v0.40-API-adaptations.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-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 a0bb988..6c5c97d 100644
--- a/cargo-c-fix-metadata-auto.diff
+++ b/cargo-c-fix-metadata-auto.diff
@@ -1,15 +1,15 @@
---- 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
+--- 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
@@ -13,7 +13,7 @@
edition = "2021"
- rust-version = "1.96"
+ rust-version = "1.86"
name = "cargo-c"
--version = "0.10.25+cargo-0.99.0"
-+version = "0.10.25"
+-version = "0.10.14+cargo-0.89.0"
++version = "0.10.14"
authors = ["Luca Barbato <lu_zero@gentoo.org>"]
build = false
autolib = false
-@@ -144,3 +144,4 @@
+@@ -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 0004d8f..5708282 100644
--- a/cargo-c-fix-metadata.diff
+++ b/cargo-c-fix-metadata.diff
@@ -1,5 +1,5 @@
---- 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
+--- 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
@@ -36,7 +36,6 @@
[features]
@@ -8,12 +8,3 @@
[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 91e35c1..94dfbe3 100644
--- a/rust-cargo-c.spec
+++ b/rust-cargo-c.spec
@@ -1,33 +1,44 @@
-# Generated by rust2rpm 28
+# Generated by rust2rpm 27
%bcond check 1
-# reduce debuginfo verbosity to work around OOM problems on 32-bit arches
-%ifarch %{ix86}
-%global debug_package %{nil}
-%global rustflags_debuginfo 0
-%endif
-
%global crate cargo-c
-%global crate_version 0.10.25+cargo-0.99.0
+%global crate_version 0.10.14+cargo-0.89.0
Name: rust-cargo-c
-Version: 0.10.25
+Version: 0.10.14
Release: %autorelease
Summary: Helper program to build and install c-like libraries
License: MIT
URL: https://crates.io/crates/cargo-c
Source: %{crates_source %{crate} %{crate_version}}
-Source1: macros.cargo-c
+
+# vendor tarball is generated by running:
+# tar xf cargo-c-%%{crate_version}.crate
+# pushd cargo-c-%%{crate_version}
+# patch -p1 < ../cargo-c-fix-metadata-auto.diff
+# patch -p1 < ../cargo-c-fix-metadata.diff
+# cargo vendor --versioned-dirs
+# tar Jcvf ../cargo-c-%%{crate_version}-vendor.tar.xz vendor/
+# popd
+Source1: cargo-c-%{crate_version}-vendor.tar.xz
+
+Source2: 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
+# * remove vendored OpenSSL feature
Patch: cargo-c-fix-metadata.diff
-Patch: 0001-Revert-object-v0.40-API-adaptations.patch
-BuildRequires: cargo-rpm-macros >= 24
+BuildRequires: rust-toolset
+BuildRequires: glibc-devel
+
+BuildRequires: pkgconfig(libcurl)
+BuildRequires: pkgconfig(libssh2)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(sqlite3)
+BuildRequires: pkgconfig(zlib)
%global _description %{expand:
Helper program to build and install c-like libraries.}
@@ -38,18 +49,21 @@ 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
-# (MIT OR Apache-2.0) AND Unicode-DFS-2016
+# 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
# 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+
@@ -59,30 +73,40 @@ Summary: %{summary}
# Zlib OR Apache-2.0 OR MIT
License: %{shrink:
MIT AND
- AND Apache-2.0
- AND Apache-2.0 WITH LLVM-exception
- AND BSD-3-Clause
- AND ISC
- AND MPL-2.0
- AND MPL-2.0+
- AND Unicode-3.0
- AND Unicode-DFS-2016
- AND Zlib
- 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 (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 (Unlicense OR MIT)
+ Apache-2.0 AND
+ BSD-2-Clause AND
+ BSD-3-Clause AND
+ GPL-2.0-only WITH GCC-exception-2.0 AND
+ ISC AND
+ MPL-2.0 AND
+ MPL-2.0+ AND
+ 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
+ (Unlicense OR MIT)
}
# LICENSE.dependencies contains a full license breakdown
+# BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT
+Provides: bundled(libgit2) = 1.9.1
+# blessing
+Provides: bundled(sqlite) = 3.49.1
+
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
+%license cargo-vendor.txt
%doc README.md
%{_bindir}/cargo-capi
%{_bindir}/cargo-cbuild
@@ -90,47 +114,19 @@ License: %{shrink:
%{_bindir}/cargo-ctest
%{_rpmmacrodir}/macros.cargo-c
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "%{crate}" crate.
-
-%files devel
-%license %{crate_instdir}/LICENSE
-%doc %{crate_instdir}/README.md
-%{crate_instdir}/
-
-%package -n %{name}+default-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+default-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "default" feature of the "%{crate}" crate.
-
-%files -n %{name}+default-devel
-%ghost %{crate_instdir}/Cargo.toml
-
%prep
-%autosetup -n %{crate}-%{crate_version} -p1
-%cargo_prep
-
-%generate_buildrequires
-%cargo_generate_buildrequires
+%autosetup -n %{crate}-%{crate_version} -p1 -a1
+%cargo_prep -v vendor
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
+%{cargo_vendor_manifest}
%install
%cargo_install
-install -D -p -m 0644 -t %{buildroot}/%{_rpmmacrodir} %{SOURCE1}
+install -D -p -m 0644 -t %{buildroot}/%{_rpmmacrodir} %{SOURCE2}
%if %{with check}
%check
diff --git a/rust2rpm.toml b/rust2rpm.toml
deleted file mode 100644
index 087adaf..0000000
--- a/rust2rpm.toml
+++ /dev/null
@@ -1,17 +0,0 @@
-[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 = [
- { file = "macros.cargo-c", number = 1 },
-]
-extra-files = [
- "%{_rpmmacrodir}/macros.cargo-c",
-]
-
-[scripts]
-install.post = [
- "install -D -p -m 0644 -t %{buildroot}/%{_rpmmacrodir} %{SOURCE1}",
-]
-
diff --git a/sources b/sources
index dc696a9..9189f58 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (cargo-c-0.10.25+cargo-0.99.0.crate) = 5780a2e51324b9c8fe5a239180b02011479f490109b8fe9e1f1ef267b8179a830db365333d6099e8a47fcad89268bd080121443ac52f10cf6d5685a27fe48f94
+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
reply other threads:[~2026-10-15 1:27 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=179202766968.1.6480978455621925309.rpms-rust-cargo-c-725f55dde9ca@fedoraproject.org \
--to=yselkowi@redhat.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