guix_mirror_bot pushed a commit to branch crypto-team
in repository guix.
commit 5c370e1e3f42d1978c56a23eb0a49a1a56d94e15
Author: Ahmad Jarara <[email protected]>
AuthorDate: Wed May 20 19:52:05 2026 -0400
gnu: libcbor: Enable tests.
* gnu/packages/compression.scm (libcbor):
[arguments]: Switch to G-Expressions.
<#:tests?>: Unset #f.
<#:configure-flags>: Remove redundant CMAKE_BUILD_TYPE,
CMAKE_INSTALL_LIBDIR, and CMAKE_INSTALL_RPATH configure flags.
Remove CBOR_CUSTOM_ALLOC flag; add "-DWITH_TESTS=ON".
[inputs]: Add cmocka.
Merges guix/guix!8743
Change-Id: I673c2d44a1533424e201c14a3becbb80065d870e
Signed-off-by: Cayetano Santos <[email protected]>
Modified-by: Cayetano Santos <[email protected]>
---
gnu/packages/compression.scm | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 83e3f58a26..62e08baaff 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -34,7 +34,7 @@
;;; Copyright © 2021 Vincent Legoll <[email protected]>
;;; Copyright © 2021 Simon Tournier <[email protected]>
;;; Copyright © 2021, 2024-2025 Maxim Cournoyer <[email protected]>
-;;; Copyright © 2021 Ahmad Jarara <[email protected]>
+;;; Copyright © 2021, 2026 Ahmad Jarara <[email protected]>
;;; Copyright © 2022 Greg Hogan <[email protected]>
;;; Copyright © 2022 Zhu Zihao <[email protected]>
;;; Copyright © 2021 Foo Chuan Wei <[email protected]>
@@ -3175,17 +3175,13 @@ can append files to the end of such compressed
archives.")
"00ibddiy62kbs9wl52c35j0hbqanx6pi7lvzkpzmbsizkj8mhp1p"))))
(build-system cmake-build-system)
(arguments
- '(#:tests? #f
- #:configure-flags
- (let* ((out (assoc-ref %outputs "out"))
- (lib (string-append out "/lib")))
- (list
- "-DCMAKE_BUILD_TYPE=Release"
- "-DBUILD_SHARED_LIBS=ON"
- "-DCBOR_CUSTOM_ALLOC=ON"
- (string-append "-DCMAKE_INSTALL_LIBDIR=" lib)
- (string-append "-DCMAKE_INSTALL_RPATH=" lib)))))
+ (list
+ #:configure-flags
+ #~'("-DWITH_TESTS=ON"
+ "-DBUILD_SHARED_LIBS=ON")))
(synopsis "The C library for parsing and generating CBOR")
+ (native-inputs
+ (list cmocka))
(description
"@acronym{CBOR, The Concise Binary Object Representation} is a data format
whose design goals include the possibility of extremely small code size, fairly