Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (eba6664ab935c2f36b0b4c6469517017e113f006)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (eba6664ab935c2f36b0b4c6469517017e113f006)
  • Date: Sun, 9 Nov 2025 12:23:39 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

utils/ledger/DETAILS | 4
utils/ledger/HISTORY | 7 +
utils/ledger/patches/0001-Fix-build-against-Boost-1.87.patch | 65
----------
utils/ledger/patches/0001-Fix-build-with-Boost-1.85.0.patch | 26 ----
utils/ledger/patches/0001-Fix-compilation-with-Boost-1.76.patch | 41 ------
5 files changed, 9 insertions(+), 134 deletions(-)

New commits:
commit eba6664ab935c2f36b0b4c6469517017e113f006
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

ledger 3.4.1

diff --git a/utils/ledger/DETAILS b/utils/ledger/DETAILS
index 74ce0d0..f30e8f4 100755
--- a/utils/ledger/DETAILS
+++ b/utils/ledger/DETAILS
@@ -1,6 +1,6 @@
SPELL=ledger
- VERSION=3.3.2
-
SOURCE_HASH=sha512:d5d7058f0e9a02ad1d46e6780675d446070824b321f0f4c1ea6ac0c3dd4f11f259113bc36cbc796e4bb6d0a7898d6a68a25cce639e27a2b2434eec11a612ecb0
+ VERSION=3.4.1
+
SOURCE_HASH=sha512:e6e3565e422d720d6d35cae17f334e9f66a969be96a8e6e99afcae31d25f34bfce6d55c516267d1d1d459f00b492cc606d7cd8493f9c5e8520cb460d45ac9fab
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION

SOURCE_URL=(https://github.com/${SPELL}/${SPELL}/archive/v$VERSION.tar.gz)
diff --git a/utils/ledger/HISTORY b/utils/ledger/HISTORY
index c4ec779..5bc59df 100644
--- a/utils/ledger/HISTORY
+++ b/utils/ledger/HISTORY
@@ -1,3 +1,10 @@
+2025-11-09 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: updated spell to 3.4.1
+ * patches/0001-Fix-build-against-Boost-1.87.patch,
+ patches/0001-Fix-build-with-Boost-1.85.0.patch,
+ patches/0001-Fix-compilation-with-Boost-1.76.patch:
+ removed, no longer needed
+
2025-05-08 Ismael Luceno <ismael AT sourcemage.org>
* BUILD: fixed build with CMake 4
suppressed warnings about deprecated feature with boost 1.88
diff --git a/utils/ledger/patches/0001-Fix-build-against-Boost-1.87.patch
b/utils/ledger/patches/0001-Fix-build-against-Boost-1.87.patch
deleted file mode 100644
index a55ee85..0000000
--- a/utils/ledger/patches/0001-Fix-build-against-Boost-1.87.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From 1ce2e0ddd268efbe1e058a5bff7cb788b9b8c75d Mon Sep 17 00:00:00 2001
-From: Ismael Luceno <ismael AT iodev.co.uk>
-Date: Tue, 7 Jan 2025 18:44:40 +0100
-Subject: [PATCH] Fix build against Boost 1.87
-
-Upstream-Status: Pending
-Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
----
- src/filters.cc | 2 +-
- src/utils.h | 14 ++++++--------
- 2 files changed, 7 insertions(+), 9 deletions(-)
-
-diff --git a/src/filters.cc b/src/filters.cc
-index f725c2474bc5..1fb2e7fabe88 100644
---- a/src/filters.cc
-+++ b/src/filters.cc
-@@ -238,7 +238,7 @@ void anonymize_posts::render_commodity(amount_t& amt)
- void anonymize_posts::operator()(post_t& post)
- {
- boost::uuids::detail::sha1 sha;
-- unsigned int message_digest[5];
-+ unsigned char message_digest[20];
- bool copy_xact_details = false;
-
- if (last_xact != post.xact) {
-diff --git a/src/utils.h b/src/utils.h
-index b09377b8f9ca..6672183ec21d 100644
---- a/src/utils.h
-+++ b/src/utils.h
-@@ -607,16 +607,14 @@ inline int peek_next_nonws(std::istream& in) {
- *_p = '\0'; \
- }
-
--inline string to_hex(unsigned int * message_digest, const int len = 1)
-+inline string to_hex(const unsigned char message_digest[], int len = 20)
- {
- std::ostringstream buf;
-
-- for(int i = 0; i < 5 ; i++) {
-- buf.width(8);
-- buf.fill('0');
-+ buf.width(len);
-+ buf.fill('0');
-+ for(int i = 0; i < len ; i++) {
- buf << std::hex << message_digest[i];
-- if (i + 1 >= len)
-- break; // only output the first LEN dwords
- }
- return buf.str();
- }
-@@ -627,9 +625,9 @@ inline string sha1sum(const string& str)
-
- sha.process_bytes(str.c_str(), str.length());
-
-- unsigned int message_digest[5];
-+ unsigned char message_digest[20];
- sha.get_digest(message_digest);
-- return to_hex(message_digest, 5);
-+ return to_hex(message_digest);
- }
-
- extern const string version;
---
-2.47.1
-
diff --git a/utils/ledger/patches/0001-Fix-build-with-Boost-1.85.0.patch
b/utils/ledger/patches/0001-Fix-build-with-Boost-1.85.0.patch
deleted file mode 100644
index c8f78fe..0000000
--- a/utils/ledger/patches/0001-Fix-build-with-Boost-1.85.0.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 1da89f6ffb44a44257b9774c4ceb71e7b495d677 Mon Sep 17 00:00:00 2001
-From: Michael Cho <michael AT michaelcho.dev>
-Date: Thu, 25 Apr 2024 11:29:49 -0400
-Subject: [PATCH] Fix build with Boost 1.85.0
-
-Signed-off-by: Michael Cho <michael AT michaelcho.dev>
-Signed-off-by: Ismael Luceno <ismael AT iodev.co.uk>
----
- src/system.hh.in | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/src/system.hh.in b/src/system.hh.in
-index 05f28fc24804..070f1cd4a402 100644
---- a/src/system.hh.in
-+++ b/src/system.hh.in
-@@ -140,7 +140,6 @@
- #include <boost/date_time/posix_time/posix_time_io.hpp>
- #include <boost/date_time/gregorian/gregorian_io.hpp>
-
--#include <boost/filesystem/convenience.hpp>
- #include <boost/filesystem/exception.hpp>
- #include <boost/filesystem/fstream.hpp>
- #include <boost/filesystem/operations.hpp>
---
-2.46.0
-
diff --git a/utils/ledger/patches/0001-Fix-compilation-with-Boost-1.76.patch
b/utils/ledger/patches/0001-Fix-compilation-with-Boost-1.76.patch
deleted file mode 100644
index 3181768..0000000
--- a/utils/ledger/patches/0001-Fix-compilation-with-Boost-1.76.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 69e6b89cf8d2820d28174e7ffaea1c59a0f84d3f Mon Sep 17 00:00:00 2001
-From: Sam James <sam AT gentoo.org>
-Date: Mon, 14 Jun 2021 12:37:58 +0000
-Subject: [PATCH] Fix compilation with Boost 1.76
-
-We were previously relying on an indirect include within Boost headers. We're
-using scoped_ptr which is defined in <boost/smart_ptr/scoped_ptr.hpp>.
-
-Bug: https://bugs.gentoo.org/790176
-Closes: https://github.com/ledger/ledger/issues/2030
----
- src/expr.cc | 2 ++
- src/format.h | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/src/expr.cc b/src/expr.cc
-index c8945d3da..c19bba98a 100644
---- a/src/expr.cc
-+++ b/src/expr.cc
-@@ -35,6 +35,8 @@
- #include "parser.h"
- #include "scope.h"
-
-+#include <boost/smart_ptr/scoped_ptr.hpp>
-+
- namespace ledger {
-
- expr_t::expr_t() : base_type()
-diff --git a/src/format.h b/src/format.h
-index 15431cf11..48c690bec 100644
---- a/src/format.h
-+++ b/src/format.h
-@@ -45,6 +45,8 @@
- #include "expr.h"
- #include "unistring.h"
-
-+#include <boost/smart_ptr/scoped_ptr.hpp>
-+
- namespace ledger {
-
- class unistring;


  • [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (eba6664ab935c2f36b0b4c6469517017e113f006), Ismael Luceno, 11/09/2025

Archive powered by MHonArc 2.6.24.

Top of Page