public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ledger] f43: fix: tests on f43 (fixes rb#2405925, rb#2380701, rh#2405078)
@ 2026-07-16 12:29 Ankur Sinha
  0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-07-16 12:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ledger
Branch : f43
Commit : f522267b202ff8955539d467abd68dc2a3e2789e
Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
Date   : 2026-07-16T11:08:23+00:00
Stats  : +35/-2 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/ledger/c/f522267b202ff8955539d467abd68dc2a3e2789e?branch=f43

Log:
fix: tests on f43 (fixes rb#2405925, rb#2380701, rh#2405078)

---
diff --git a/0001-disable-cmake-test.patch b/0001-disable-cmake-test.patch
index fc0d2b4..d234523 100644
--- a/0001-disable-cmake-test.patch
+++ b/0001-disable-cmake-test.patch
@@ -1,7 +1,7 @@
 From 3c5572df749bcee5ba9a256afe9b6512bc809bca Mon Sep 17 00:00:00 2001
 From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
 Date: Sat, 21 Feb 2026 13:22:28 +0000
-Subject: [PATCH] disable cmake test
+Subject: [PATCH 1/2] disable cmake test
 
 gmp.h does not define these parameters in Fedora's install.
 They're in gmp-${arch}.h

diff --git a/0002-update-start-method-for-tests.patch b/0002-update-start-method-for-tests.patch
new file mode 100644
index 0000000..6673dd2
--- /dev/null
+++ b/0002-update-start-method-for-tests.patch
@@ -0,0 +1,32 @@
+From 9bc963564697b72c1bfcb8e40eacf644b3814312 Mon Sep 17 00:00:00 2001
+From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
+Date: Sun, 22 Feb 2026 15:08:21 +0000
+Subject: [PATCH 2/2] update start method for tests
+
+---
+ test/RegressTests.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/test/RegressTests.py b/test/RegressTests.py
+index 526c8f7c..99099d38 100755
+--- a/test/RegressTests.py
++++ b/test/RegressTests.py
+@@ -8,6 +8,7 @@ import sys
+ import os
+ import re
+ import tempfile
++import multiprocessing as mp
+ 
+ multiproc = False
+ try:
+@@ -202,6 +203,7 @@ def do_test(path):
+     entry.close()
+ 
+ if __name__ == '__main__':
++    mp.set_start_method("fork")
+     if multiproc:
+         pool = Pool(args.jobs*2)
+     else:
+-- 
+2.53.0
+

diff --git a/ledger.spec b/ledger.spec
index 457f604..1aaad09 100644
--- a/ledger.spec
+++ b/ledger.spec
@@ -9,6 +9,8 @@ URL:              https://ledger-cli.org/
 Source0:          https://github.com/ledger/ledger/archive/v%{version}.tar.gz
 
 Patch:            0001-disable-cmake-test.patch
+# required for f43 tests
+Patch:            0002-update-start-method-for-tests.patch
 
 BuildRequires:    boost-devel
 BuildRequires:    cmake
@@ -57,7 +59,6 @@ sed -i -e 's#FIXME:UNDOCUMENTED#FIXMEUNDOCUMENTED#g' doc/ledger3.texi
 %endif
 rm -r lib/utfcpp
 
-
 %build
 %cmake \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \

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

only message in thread, other threads:[~2026-07-16 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-16 12:29 [rpms/ledger] f43: fix: tests on f43 (fixes rb#2405925, rb#2380701, rh#2405078) Ankur Sinha

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