pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update patches to suit Ledger src code changes



Module Name:	pkgsrc-wip
Committed By:	atomicules <base%atomicules.co.uk@localhost>
Pushed By:	atomicules
Date:		Mon Dec 8 09:07:14 2025 +0000
Changeset:	52634bde6b45498ea9fefc9af7054a79db4812a0

Modified Files:
	ledger/patches/patch-CMakeLists.txt
	ledger/patches/patch-src_CMakeLists.txt
	ledger/patches/patch-src_main.cc

Log Message:
Update patches to suit Ledger src code changes

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=52634bde6b45498ea9fefc9af7054a79db4812a0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ledger/patches/patch-CMakeLists.txt     | 14 +++++++-------
 ledger/patches/patch-src_CMakeLists.txt |  8 ++++----
 ledger/patches/patch-src_main.cc        | 10 +++++-----
 3 files changed, 16 insertions(+), 16 deletions(-)

diffs:
diff --git a/ledger/patches/patch-CMakeLists.txt b/ledger/patches/patch-CMakeLists.txt
index ae7a6cbf3f..b41d9c0c97 100644
--- a/ledger/patches/patch-CMakeLists.txt
+++ b/ledger/patches/patch-CMakeLists.txt
@@ -2,14 +2,14 @@ $NetBSD: patch-CMakeLists.txt,v 1.3 2025/10/17 08:50:14 wiz Exp $
 
 boost 1.89 made system header-only.
 
---- CMakeLists.txt.orig	2025-10-17 08:46:39.605560063 +0000
+--- CMakeLists.txt.orig	2025-12-07 21:55:32.197385336 +0000
 +++ CMakeLists.txt
-@@ -90,7 +90,7 @@ endif()
+@@ -87,7 +87,7 @@ endif()
  
  # Set BOOST_ROOT to help CMake to find the right Boost version
- find_package(Boost 1.49.0
--  REQUIRED date_time filesystem system iostreams regex unit_test_framework
-+  REQUIRED date_time filesystem iostreams regex unit_test_framework
-   ${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide)
+ find_package(Boost ${Required_Boost_Version}
+-  REQUIRED date_time filesystem iostreams regex unit_test_framework
++  REQUIRED date_time filesystem regex unit_test_framework
+   ${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide
+   CONFIG)
  
- # enable Boost::nowide library (for UTF8 command line args on Windows)
diff --git a/ledger/patches/patch-src_CMakeLists.txt b/ledger/patches/patch-src_CMakeLists.txt
index b4bf915e9d..cebaebdb8b 100644
--- a/ledger/patches/patch-src_CMakeLists.txt
+++ b/ledger/patches/patch-src_CMakeLists.txt
@@ -2,15 +2,15 @@ $NetBSD: patch-src_CMakeLists.txt,v 1.1 2020/06/15 16:54:38 adam Exp $
 
 Fix problem with install_name.
 
---- src/CMakeLists.txt.orig	2020-05-18 05:30:10.000000000 +0000
+--- src/CMakeLists.txt.orig	2025-12-07 21:56:45.707667635 +0000
 +++ src/CMakeLists.txt
-@@ -277,8 +277,7 @@ if (BUILD_LIBRARY)
+@@ -194,8 +194,8 @@ if(BUILD_LIBRARY)
    add_library(libledger SHARED ${LEDGER_SOURCES})
    add_ledger_library_dependencies(libledger)
    set_target_properties(libledger PROPERTIES
 -    PREFIX ""
--    INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
+     INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
 +    OUTPUT_NAME "ledger"
      VERSION ${Ledger_VERSION_MAJOR}
      SOVERSION ${Ledger_VERSION_MAJOR})
- 
+   set_source_files_properties(
diff --git a/ledger/patches/patch-src_main.cc b/ledger/patches/patch-src_main.cc
index 722780c0c2..aaa9d9a31b 100644
--- a/ledger/patches/patch-src_main.cc
+++ b/ledger/patches/patch-src_main.cc
@@ -5,14 +5,14 @@ consumers of devel/readline and by consumers of devel/editline, via
 buildlink3 magic.  The only reason editline/readline.h may exist is to
 allow both devel/readline and devel/editline to coexist.
 
---- src/main.cc.orig	2023-03-03 10:49:39.000000000 +0000
+--- src/main.cc.orig	2025-12-07 21:59:44.630131187 +0000
 +++ src/main.cc
 @@ -40,7 +40,7 @@
  #endif
  
- #ifdef HAVE_EDIT
+ #if HAVE_EDIT
 -#include <editline/readline.h>
 +#include <readline/readline.h>
- #endif
- 
- using namespace ledger;
+ #elif HAVE_READLINE
+ #include <readline/readline.h>
+ #include <readline/history.h>


Home | Main Index | Thread Index | Old Index