public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ledger] f43: fix: tests on f43 (fixes rb#2405925, rb#2380701, rh#2405078)
Date: Thu, 16 Jul 2026 12:29:11 GMT	[thread overview]
Message-ID: <178420495187.1.12899715237915838630.rpms-ledger-f522267b202f@fedoraproject.org> (raw)

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} \

                 reply	other threads:[~2026-07-16 12:29 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=178420495187.1.12899715237915838630.rpms-ledger-f522267b202f@fedoraproject.org \
    --to=sanjay.ankur@gmail.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