guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit 602e7ad5b956e6741bf24a746b3f755312386883
Author: Dariqq <[email protected]>
AuthorDate: Mon Jan 19 08:54:13 2026 +0000
gnu: unity-test: Add option for supporting 64bit integers.
* gnu/packages/check.scm (unity-test): Add patch and enable 64bit integer
option.
* gnu/packages/patches/unity-test-support-int64.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register patch-
Change-Id: Ib432c9112c3476e03f7607259c2dfe00ef98a90c
Signed-off-by: Ludovic Courtès <[email protected]>
Fixes: guix/guix#5673
Merges: #5675
---
gnu/local.mk | 1 +
gnu/packages/check.scm | 6 ++-
.../patches/unity-test-support-int64.patch | 47 ++++++++++++++++++++++
3 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 25dac1c333..caaaa8cf03 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2426,6 +2426,7 @@ dist_patch_DATA =
\
%D%/packages/patches/uftrace-fix-tests.patch \
%D%/packages/patches/ultrastar-deluxe-no-freesans.patch \
%D%/packages/patches/unity-test-set-subdir-correctly.patch \
+ %D%/packages/patches/unity-test-support-int64.patch \
%D%/packages/patches/ungoogled-chromium-extension-search-path.patch \
%D%/packages/patches/ungoogled-chromium-RUNPATH.patch \
%D%/packages/patches/ungoogled-chromium-system-nspr.patch \
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 9027f9ec2e..520f601982 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3410,11 +3410,13 @@ portable to just about any platform.")
(file-name (git-file-name name version))
(sha256
(base32 "1s0jj9f2zav49mn9ib90idcmb6hq93aczbqysn5hj6binjmrnjw3"))
- (patches (search-patches
"unity-test-set-subdir-correctly.patch"))))
+ (patches (search-patches "unity-test-set-subdir-correctly.patch"
+ "unity-test-support-int64.patch"))))
(build-system meson-build-system)
(arguments
(list #:configure-flags
- #~(list "-Dsupport_double=true")
+ #~(list "-Dsupport_double=true"
+ "-Dsupport_int64=true")
#:phases
#~(modify-phases %standard-phases
(add-after 'patch-source-shebangs 'patch-more-shebangs
diff --git a/gnu/packages/patches/unity-test-support-int64.patch
b/gnu/packages/patches/unity-test-support-int64.patch
new file mode 100644
index 0000000000..596a4ed548
--- /dev/null
+++ b/gnu/packages/patches/unity-test-support-int64.patch
@@ -0,0 +1,47 @@
+Upstream status: https://github.com/ThrowTheSwitch/Unity/pull/823
+
+From 4d35efd1bc5ecfa67d73bf81e64ba54c08ed5318 Mon Sep 17 00:00:00 2001
+From: Dariqq <[email protected]>
+Date: Tue, 20 Jan 2026 18:10:14 +0000
+Subject: [PATCH] meson: Add option for UNITY_SUPPORT_64
+
+---
+ meson.build | 5 +++++
+ meson_options.txt | 1 +
+ 2 files changed, 6 insertions(+)
+
+diff --git a/meson.build b/meson.build
+index 6585129..633beb3 100644
+--- a/meson.build
++++ b/meson.build
+@@ -26,6 +26,7 @@ project('unity', 'c',
+ build_fixture = get_option('extension_fixture')
+ build_memory = get_option('extension_memory')
+ support_double = get_option('support_double')
++support_int64 = get_option('support_int64')
+
+ unity_args = []
+ unity_src = []
+@@ -48,6 +49,10 @@ if support_double
+ unity_args += '-DUNITY_INCLUDE_DOUBLE'
+ endif
+
++if support_int64
++ unity_args += '-DUNITY_SUPPORT_64'
++endif
++
+ unity_lib = static_library(meson.project_name(),
+ sources: unity_src,
+ c_args: unity_args,
+diff --git a/meson_options.txt b/meson_options.txt
+index 8e66784..d8ab7a7 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -1,3 +1,4 @@
+ option('extension_fixture', type: 'boolean', value: 'false', description:
'Whether to enable the fixture extension.')
+ option('extension_memory', type: 'boolean', value: 'false', description:
'Whether to enable the memory extension.')
+ option('support_double', type: 'boolean', value: 'false', description:
'Whether to enable double precision floating point assertions.')
++option('support_int64', type: 'boolean', value: false, description: 'Whether
to enable support for 64bit integers. false means autodetect.')
+--
+2.52.0
+