Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
ledger


Commits:
3ce31bbf by Carl Smedstad at 2025-12-27T19:03:15+01:00
upgpkg: 3.4.1-2: Python 3.14 rebuild

- - - - -


5 changed files:

- .SRCINFO
- + LICENSES/BSD-3-Clause.txt
- PKGBUILD
- REUSE.toml
- + ledger-python-3.14.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = ledger
        pkgdesc = Double-entry accounting system with a command-line reporting 
interface
        pkgver = 3.4.1
-       pkgrel = 1
+       pkgrel = 2
        url = https://ledger-cli.org
        arch = i686
        arch = x86_64
@@ -14,7 +14,9 @@ pkgbase = ledger
        depends = mpfr
        optdepends = emacs: emacs interface
        optdepends = python: python library
-       source = 
ledger-3.4.1.tar.gz::https://github.com/ledger/ledger/archive/v3.4.1.tar.gz
+       source = 
https://github.com/ledger/ledger/archive/v3.4.1/ledger-3.4.1.tar.gz
+       source = ledger-python-3.14.patch
        sha256sums = 
1cf012cdc8445cab0efc445064ef9b2d3f46ed0165dae803c40fe3d2b23fdaad
+       sha256sums = 
9b2c51327666dc60b572e544ff02a69a39011d849bcdaf72dc4fc9193a81b68e
 
 pkgname = ledger


=====================================
LICENSES/BSD-3-Clause.txt
=====================================
@@ -0,0 +1,11 @@
+Copyright (c) <year> <owner>. 
+
+Redistribution and use in source and binary forms, with or without 
modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this 
list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation 
and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


=====================================
PKGBUILD
=====================================
@@ -9,7 +9,7 @@
 
 pkgname=ledger
 pkgver=3.4.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Double-entry accounting system with a command-line reporting 
interface'
 arch=(i686 x86_64)
 url='https://ledger-cli.org'
@@ -20,8 +20,18 @@ optdepends=(
        'emacs: emacs interface'
        'python: python library'
 )
-source=("ledger-$pkgver.tar.gz::https://github.com/ledger/ledger/archive/v$pkgver.tar.gz";)
-sha256sums=('1cf012cdc8445cab0efc445064ef9b2d3f46ed0165dae803c40fe3d2b23fdaad')
+source=(
+  "https://github.com/ledger/ledger/archive/v$pkgver/$pkgname-$pkgver.tar.gz";
+  "$pkgname-python-3.14.patch"
+)
+sha256sums=('1cf012cdc8445cab0efc445064ef9b2d3f46ed0165dae803c40fe3d2b23fdaad'
+            '9b2c51327666dc60b572e544ff02a69a39011d849bcdaf72dc4fc9193a81b68e')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  patch -Np1 < ../$pkgname-python-3.14.patch
+}
 
 build() {
        cd "$pkgname-$pkgver"
@@ -38,7 +48,7 @@ build() {
 check() {
        cd "$pkgname-$pkgver"
 
-       cmake --build build --target test
+  ctest --test-dir build --output-on-failure
 }
 
 package() {


=====================================
REUSE.toml
=====================================
@@ -20,3 +20,11 @@ path = [
 ]
 SPDX-FileCopyrightText = "Arch Linux contributors"
 SPDX-License-Identifier = "0BSD"
+
+[[annotations]]
+path = [
+    "ledger-python-3.14.patch",
+]
+SPDX-FileCopyrightText = "ledger contributors"
+SPDX-License-Identifier = "BSD-3-Clause"
+


=====================================
ledger-python-3.14.patch
=====================================
@@ -0,0 +1,19 @@
+diff --unified --recursive --text --new-file 
ledger-3.4.1.orig/test/RegressTests.py ledger-3.4.1/test/RegressTests.py
+--- ledger-3.4.1.orig/test/RegressTests.py     2025-12-27 18:55:00.666121277 
+0100
++++ ledger-3.4.1/test/RegressTests.py  2025-12-27 18:57:20.813574788 +0100
+@@ -11,6 +11,7 @@
+ 
+ multiproc = False
+ try:
++    import multiprocessing
+     from multiprocessing import Pool
+     multiproc = True
+ except:
+@@ -203,6 +204,7 @@
+ 
+ if __name__ == '__main__':
+     if multiproc:
++        multiprocessing.set_start_method('fork')
+         pool = Pool(args.jobs*2)
+     else:
+         pool = None



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ledger/-/commit/3ce31bbfe8832401d6040bc4f8dfb86d78646ebc

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ledger/-/commit/3ce31bbfe8832401d6040bc4f8dfb86d78646ebc
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to