public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-effective-limits] f44: Update to version 0.7.0; Fixes RHBZ#2545660
@ 2026-11-18 18:34 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-11-18 18:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-effective-limits
Branch : f44
Commit : 8cb16c8d0ed33e2dd5fcbff3780cc20ad9e65639
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-11-11T16:01:11+01:00
Stats  : +79/-65 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-effective-limits/c/8cb16c8d0ed33e2dd5fcbff3780cc20ad9e65639?branch=f44

Log:
Update to version 0.7.0; Fixes RHBZ#2545660

---
diff --git a/.gitignore b/.gitignore
index fe817b9..4162e68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /effective-limits-0.5.5.crate
+/effective-limits-0.7.0.crate

diff --git a/0001-fix-compilation-of-tests-on-32-bit-architectures.patch b/0001-fix-compilation-of-tests-on-32-bit-architectures.patch
index 57fe6ab..fe4f228 100644
--- a/0001-fix-compilation-of-tests-on-32-bit-architectures.patch
+++ b/0001-fix-compilation-of-tests-on-32-bit-architectures.patch
@@ -1,25 +1,25 @@
-From a201f7b3937790ca4eb846ca589e83bcbf4c6720 Mon Sep 17 00:00:00 2001
+From c573523580e9fb64d2a98d87313063386fea9847 Mon Sep 17 00:00:00 2001
 From: Fabio Valentini <decathorpe@gmail.com>
 Date: Sun, 5 Nov 2023 01:33:17 +0100
 Subject: [PATCH] fix compilation of tests on 32-bit architectures
 
 ---
- src/lib.rs | 2 +-
+ tests/limited.rs | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/src/lib.rs b/src/lib.rs
-index f7fda6f..dab9586 100644
---- a/src/lib.rs
-+++ b/src/lib.rs
-@@ -377,7 +377,7 @@ mod tests {
-                     unsafe {
-                         cmd.pre_exec(move || {
-                             let lim = libc::rlimit {
--                                rlim_cur: ulimit,
-+                                rlim_cur: ulimit as _,
-                                 rlim_max: libc::RLIM_INFINITY,
-                             };
-                             match libc::setrlimit(rlimit_as, &lim as *const libc::rlimit) {
+diff --git a/tests/limited.rs b/tests/limited.rs
+index d690705..73a4b41 100644
+--- a/tests/limited.rs
++++ b/tests/limited.rs
+@@ -172,7 +172,7 @@ fn read_test_process(ulimit: Option<u64>) -> Result<u64> {
+                 unsafe {
+                     cmd.pre_exec(move || {
+                         let lim = libc::rlimit {
+-                            rlim_cur: ulimit,
++                            rlim_cur: ulimit as _,
+                             rlim_max: libc::RLIM_INFINITY,
+                         };
+                         match libc::setrlimit(rlimit_as, &lim as *const libc::rlimit) {
 -- 
-2.41.0
+2.56.0
 

diff --git a/effective-limits-fix-metadata-auto.diff b/effective-limits-fix-metadata-auto.diff
index e3dc43c..7e4ffe2 100644
--- a/effective-limits-fix-metadata-auto.diff
+++ b/effective-limits-fix-metadata-auto.diff
@@ -1,32 +1,8 @@
---- effective-limits-0.5.5/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ effective-limits-0.5.5/Cargo.toml	2023-11-04T23:42:30.310391+00:00
-@@ -41,29 +41,3 @@
+--- effective-limits-0.7.0/Cargo.toml	2006-07-24T01:21:28+00:00
++++ effective-limits-0.7.0/Cargo.toml	2026-11-11T14:59:43.298766+00:00
+@@ -76,5 +76,3 @@
  [target."cfg(unix)".dependencies.libc]
- version = "0.2.78"
+ version = "0.2.137"
  
--[target."cfg(windows)".dependencies.winapi]
--version = "0.3.9"
--features = [
--    "combaseapi",
--    "errhandlingapi",
--    "fileapi",
--    "handleapi",
--    "impl-default",
--    "ioapiset",
--    "jobapi",
--    "jobapi2",
--    "minwindef",
--    "processthreadsapi",
--    "psapi",
--    "shlobj",
--    "shtypes",
--    "synchapi",
--    "sysinfoapi",
--    "tlhelp32",
--    "userenv",
--    "winbase",
--    "winerror",
--    "winioctl",
--    "winnt",
--    "winuser",
--]
+-[target."cfg(windows)".dependencies.windows-link]
+-version = "0.100"

diff --git a/effective-limits-fix-metadata.diff b/effective-limits-fix-metadata.diff
index 66535f3..f096f71 100644
--- a/effective-limits-fix-metadata.diff
+++ b/effective-limits-fix-metadata.diff
@@ -1,11 +1,34 @@
---- effective-limits-0.5.5/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ effective-limits-0.5.5/Cargo.toml	2023-11-04T23:43:17.485568+00:00
-@@ -28,6 +28,8 @@
+--- effective-limits-0.7.0/Cargo.toml	2006-07-24T01:21:28+00:00
++++ effective-limits-0.7.0/Cargo.toml	2026-11-11T15:00:01.684175+00:00
+@@ -34,6 +34,7 @@
  ]
  license = "Apache-2.0"
  repository = "https://github.com/rbtcollins/effective-limits.rs"
 +exclude = ["/ci/"]
-+autobins = false
  
- [dependencies.cfg-if]
- version = "0.1.10"
+ [features]
+ integration_tests = []
+@@ -51,10 +52,6 @@
+ path = "examples/memory.rs"
+ 
+ [[test]]
+-name = "codegen"
+-path = "tests/codegen.rs"
+-
+-[[test]]
+ name = "limited"
+ path = "tests/limited.rs"
+ 
+@@ -64,12 +61,6 @@
+ [dependencies.thiserror]
+ version = "2"
+ 
+-[dev-dependencies.similar-asserts]
+-version = "2"
+-
+-[dev-dependencies.windows-bindgen]
+-version = "0.100"
+-
+ [target.'cfg(any(windows, target_os="macos", target_os="linux", target_os="freebsd", target_os="illumos", target_os="solaris", target_os="netbsd", target_os="openbsd"))'.dependencies.sys-info]
+ version = "0.9.1"
+ 

diff --git a/rust-effective-limits.spec b/rust-effective-limits.spec
index cae4288..647cca2 100644
--- a/rust-effective-limits.spec
+++ b/rust-effective-limits.spec
@@ -1,11 +1,14 @@
-# Generated by rust2rpm 25
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
 %global debug_package %{nil}
 
+# prevent executables from being installed
+%global cargo_install_bin 0
+
 %global crate effective-limits
 
 Name:           rust-effective-limits
-Version:        0.5.5
+Version:        0.7.0
 Release:        %autorelease
 Summary:        Estimate effective resource limits for a process
 
@@ -15,13 +18,13 @@ Source:         %{crates_source}
 # Automatically generated patch to strip dependencies and normalize metadata
 Patch:          effective-limits-fix-metadata-auto.diff
 # Manually created patch for downstream crate metadata changes
-# * prevent test-only executable from being built and shipped
 # * exclude files that are only useful for upstream development
+# * drop windows-specific codegen tests and their dependencies
 Patch:          effective-limits-fix-metadata.diff
 # https://github.com/rbtcollins/effective-limits.rs/pull/46
 Patch:          0001-fix-compilation-of-tests-on-32-bit-architectures.patch
 
-BuildRequires:  cargo-rpm-macros >= 24
+BuildRequires:  cargo-rpm-macros >= 26
 
 %global _description %{expand:
 Estimate effective resource limits for a process e.g. how much RAM is
@@ -55,6 +58,18 @@ use the "default" feature of the "%{crate}" crate.
 %files       -n %{name}+default-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+integration_tests-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+integration_tests-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "integration_tests" feature of the "%{crate}" crate.
+
+%files       -n %{name}+integration_tests-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep
@@ -70,8 +85,7 @@ use the "default" feature of the "%{crate}" crate.
 
 %if %{with check}
 %check
-# * skip tests that require running the dropped test executable
-%cargo_test -- -- --exact --skip tests::test_no_ulimit --skip tests::test_ulimit
+%cargo_test
 %endif
 
 %changelog

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 48d682f..9d8976c 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,8 +1,8 @@
 [package]
 summary = "Estimate effective resource limits for a process"
-
-[tests]
-skip = ["tests::test_no_ulimit", "tests::test_ulimit"]
-skip-exact = true
-comments = ["skip tests that require running the dropped test executable"]
+cargo-toml-patch-comments = [
+    "exclude files that are only useful for upstream development",
+    "drop windows-specific codegen tests and their dependencies",
+]
+cargo-install-bin = false
 

diff --git a/sources b/sources
index 64ed67d..9b5ebb3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (effective-limits-0.5.5.crate) = 71c7683910bdc43fc259028dddc2ead4343ed9f35b7071b0ce24fb145f7308fb726d15fc35be9e88b16b523e29731466c7dc965d5655b6bfd210e602e5aff67c
+SHA512 (effective-limits-0.7.0.crate) = bbabc20f05fbcdd23236f64277998f6d73dc2d173f3c923bc407c2eab659d729ddc5ba50d88bceea733df886971e6ae7af2a53b2e9a05af01fca5c72b073f81c

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-18 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 18:34 [rpms/rust-effective-limits] f44: Update to version 0.7.0; Fixes RHBZ#2545660 Fabio Valentini

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