gnucash-on-osx master: Patches to go along with 6b39a51.
John Ralls
jralls at code.gnucash.org
Sun Mar 30 15:05:23 EDT 2025
Updated via https://github.com/Gnucash/gnucash-on-osx/commit/6fb683ba (commit)
from https://github.com/Gnucash/gnucash-on-osx/commit/5ebc5a81 (commit)
commit 6fb683ba5ad72421c65f817a6d114ed724d88c8d
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Mar 30 12:05:13 2025 -0700
Patches to go along with 6b39a51.
diff --git a/patches/gwenhywfar-5.12.0-endianfns.patch b/patches/gwenhywfar-5.12.0-endianfns.patch
new file mode 100644
index 0000000..f9bb0db
--- /dev/null
+++ b/patches/gwenhywfar-5.12.0-endianfns.patch
@@ -0,0 +1,32 @@
+--- a/src/base/endianfns.h 2017-08-07 12:02:11
++++ b/src/base/endianfns.h 2025-02-22 12:54:45
+@@ -38,6 +38,29 @@
+
+ # define GWEN_ENDIAN_LE64TOH(x) (x)
+ # define GWEN_ENDIAN_HTOLE64(x) (x)
++
++#elif defined(__APPLE__)
++/* inspired by https://stackoverflow.com/questions/20813028/endian-h-not-found-on-mac-osx */
++#include <libkern/OSByteOrder.h>
++
++#define GWEN_ENDIAN_HTOLE16(x) OSSwapHostToLittleInt16(x)
++#define GWEN_ENDIAN_LE16TOH(x) OSSwapLittleToHostInt16(x)
++
++#define GWEN_ENDIAN_HTOLE32(x) OSSwapHostToLittleInt32(x)
++#define GWEN_ENDIAN_LE32TOH(x) OSSwapLittleToHostInt32(x)
++
++#define GWEN_ENDIAN_HTOLE64(x) OSSwapHostToLittleInt64(x)
++#define GWEN_ENDIAN_LE64TOH(x) OSSwapLittleToHostInt64(x)
++
++#define GWEN_ENDIAN_HTOBE16(x) OSSwapHostToBigInt16(x)
++#define GWEN_ENDIAN_BE16TOH(x) OSSwapBigToHostInt16(x)
++
++#define GWEN_ENDIAN_HTOBE32(x) OSSwapHostToBigInt32(x)
++#define GWEN_ENDIAN_BE32TOH(x) OSSwapBigToHostInt32(x)
++
++#define GWEN_ENDIAN_HTOBE64(x) OSSwapHostToBigInt64(x)
++#define GWEN_ENDIAN_BE64TOH(x) OSSwapBigToHostInt64(x)
++
+ #else
+ /* for Linux and others use definitions from endian.h */
+ # include <endian.h>
diff --git a/patches/gwenhywfar-5.12.0-libgcrypt-config.patch b/patches/gwenhywfar-5.12.0-libgcrypt-config.patch
new file mode 100644
index 0000000..16b49ff
--- /dev/null
+++ b/patches/gwenhywfar-5.12.0-libgcrypt-config.patch
@@ -0,0 +1,23 @@
+--- a/configure.ac 2024-12-17 10:57:39
++++ b/configure.ac 2025-02-22 12:43:49
+@@ -678,12 +678,15 @@
+ ;;
+ *)
+ AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION",
+- [have_gcrypt="yes"], [have_gcrypt="no"])
+- if test "$have_gcrypt" != "yes"; then
+- AC_MSG_ERROR([
++ [], [
++ PKG_CHECK_MODULES([LIBGCRYPT], [libgcrypt >= ${NEED_LIBGCRYPT_VERSION}], [
++ AC_SUBST(LIBGCRYPT_CFLAGS)
++ AC_SUBST(LIBGCRYPT_LIBS)
++ ],
++ [AC_MSG_ERROR([
+ **** Libgcrypt is required for Gwenhywfar. Please install it (including devel packages)
+- **** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)])
+- fi
++ **** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)])])
++ ])
+ ;;
+ esac
+
Summary of changes:
patches/gwenhywfar-5.12.0-endianfns.patch | 32 ++++++++++++++++++++++++
patches/gwenhywfar-5.12.0-libgcrypt-config.patch | 23 +++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 patches/gwenhywfar-5.12.0-endianfns.patch
create mode 100644 patches/gwenhywfar-5.12.0-libgcrypt-config.patch
More information about the gnucash-changes
mailing list