public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-coreutils] f44: Rebuilt for ctor 1.x (try 2)
Date: Thu, 06 Aug 2026 12:36:20 GMT [thread overview]
Message-ID: <178601978081.1.11440221231445057892.rpms-rust-coreutils-0a6c336bd56d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-coreutils
Branch : f44
Commit : 0a6c336bd56d1315647172c7ed0a2d4a2506ef94
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2026-08-06T13:36:07+01:00
Stats : +54/-1 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-coreutils/c/0a6c336bd56d1315647172c7ed0a2d4a2506ef94?branch=f44
Log:
Rebuilt for ctor 1.x (try 2)
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/coreutils-ctor-1_x.diff b/coreutils-ctor-1_x.diff
new file mode 100644
index 0000000..bd0c110
--- /dev/null
+++ b/coreutils-ctor-1_x.diff
@@ -0,0 +1,33 @@
+--- a/tests/test_util_name.rs
++++ b/tests/test_util_name.rs
+@@ -16,7 +16,7 @@ pub const TESTS_BINARY: &str = env!("CAR
+ // Set the environment variable for any tests
+
+ // Use the ctor attribute to run this function before any tests
+-#[ctor::ctor]
++#[ctor::ctor(unsafe)]
+ fn init() {
+ // No need for unsafe here
+ unsafe {
+--- a/tests/test_uudoc.rs
++++ b/tests/test_uudoc.rs
+@@ -23,7 +23,7 @@ pub const TESTS_BINARY: &str = env!("CAR
+ // Set the environment variable for any tests
+
+ // Use the ctor attribute to run this function before any tests
+-#[ctor::ctor]
++#[ctor::ctor(unsafe)]
+ fn init() {
+ // No need for unsafe here
+ unsafe {
+--- a/tests/tests.rs
++++ b/tests/tests.rs
+@@ -8,7 +8,7 @@ use std::env;
+ pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
+
+ // Use the ctor attribute to run this function before any tests
+-#[ctor::ctor]
++#[ctor::ctor(unsafe)]
+ fn init() {
+ unsafe {
+ // Necessary for uutests to be able to find the binary
diff --git a/coreutils-fix-metadata.diff b/coreutils-fix-metadata.diff
index 1d9e38c..870dba7 100644
--- a/coreutils-fix-metadata.diff
+++ b/coreutils-fix-metadata.diff
@@ -1,5 +1,5 @@
--- coreutils-0.7.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ coreutils-0.7.0/Cargo.toml 2026-04-14T19:49:54.150000+00:00
++++ coreutils-0.7.0/Cargo.toml 2026-08-06T11:26:04.426642+00:00
@@ -719,7 +719,7 @@
package = "uu_runcon"
@@ -9,3 +9,12 @@
optional = true
[dependencies.seq]
+@@ -930,7 +930,7 @@
+ version = "0.6.8"
+
+ [dev-dependencies.ctor]
+-version = "0.6.0"
++version = "1"
+
+ [dev-dependencies.filetime]
+ version = "0.2.23"
diff --git a/rust-coreutils.spec b/rust-coreutils.spec
index b46a72d..5fa87a6 100644
--- a/rust-coreutils.spec
+++ b/rust-coreutils.spec
@@ -33,7 +33,10 @@ URL: https://crates.io/crates/coreutils
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * loosen selinux version bound from =0.6.0 to 0.6.0
+# * bump ctor from 0.6 to 1
Patch: coreutils-fix-metadata.diff
+# * compatibility fixes for ctor 1.x
+Patch2: coreutils-ctor-1_x.diff
# leaf package, SIGABRT on compile
ExcludeArch: %{ix86}
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 4e432a3..b15fbfa 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -4,6 +4,7 @@ description = "coreutils ~ GNU coreutils (updated); implemented as universal (cr
cargo-toml-patch-comments = [
"loosen selinux version bound from =0.6.0 to 0.6.0",
+ "bump ctor from 0.6 to 1",
]
bin-package-name = "uutils-coreutils"
@@ -19,6 +20,11 @@ extra-files = [
[package.bin-renames]
coreutils = "uutils-coreutils"
+[[package.extra-patches]]
+number = 2
+file = "uutests-ctor-1_x.diff"
+comments = ["compatibility fixes for ctor 1.x"]
+
[features]
enable = [
"feat_os_unix",
diff --git a/series b/series
new file mode 100644
index 0000000..27b8738
--- /dev/null
+++ b/series
@@ -0,0 +1,2 @@
+coreutils-fix-metadata.diff
+coreutils-ctor-1_x.diff
reply other threads:[~2026-08-06 12: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=178601978081.1.11440221231445057892.rpms-rust-coreutils-0a6c336bd56d@fedoraproject.org \
--to=salimma@fedoraproject.org \
--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