diff options
| author | Ahmad Jarara <ajarara@fastmail.com> | 2026-05-20 19:52:05 -0400 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-08-17 11:00:32 +0200 |
| commit | ebba73d4f78140c9489b71583376d59cf0a28951 (patch) | |
| tree | e6d0e04bd2808474cb62b2d601527199cfd06445 /gnu | |
| parent | 81e27f18589d0e4a6c9a50479c49cf4c94beb881 (diff) | |
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 <csantosb@inventati.org>
Modified-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/compression.scm | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 76a80432609..a70e2b1bb8b 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | ;;; Copyright © 2021 Vincent Legoll <vincent.legoll@gmail.com> | 34 | ;;; Copyright © 2021 Vincent Legoll <vincent.legoll@gmail.com> |
| 35 | ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> | 35 | ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> |
| 36 | ;;; Copyright © 2021, 2024-2025 Maxim Cournoyer <maxim@guixotic.coop> | 36 | ;;; Copyright © 2021, 2024-2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 37 | ;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io> | 37 | ;;; Copyright © 2021, 2026 Ahmad Jarara <ajarara@fastmail.com> |
| 38 | ;;; Copyright © 2022 Greg Hogan <code@greghogan.com> | 38 | ;;; Copyright © 2022 Greg Hogan <code@greghogan.com> |
| 39 | ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com> | 39 | ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com> |
| 40 | ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com> | 40 | ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com> |
| @@ -3201,17 +3201,13 @@ can append files to the end of such compressed archives.") | |||
| 3201 | "00ibddiy62kbs9wl52c35j0hbqanx6pi7lvzkpzmbsizkj8mhp1p")))) | 3201 | "00ibddiy62kbs9wl52c35j0hbqanx6pi7lvzkpzmbsizkj8mhp1p")))) |
| 3202 | (build-system cmake-build-system) | 3202 | (build-system cmake-build-system) |
| 3203 | (arguments | 3203 | (arguments |
| 3204 | '(#:tests? #f | 3204 | (list |
| 3205 | #:configure-flags | 3205 | #:configure-flags |
| 3206 | (let* ((out (assoc-ref %outputs "out")) | 3206 | #~'("-DWITH_TESTS=ON" |
| 3207 | (lib (string-append out "/lib"))) | 3207 | "-DBUILD_SHARED_LIBS=ON"))) |
| 3208 | (list | ||
| 3209 | "-DCMAKE_BUILD_TYPE=Release" | ||
| 3210 | "-DBUILD_SHARED_LIBS=ON" | ||
| 3211 | "-DCBOR_CUSTOM_ALLOC=ON" | ||
| 3212 | (string-append "-DCMAKE_INSTALL_LIBDIR=" lib) | ||
| 3213 | (string-append "-DCMAKE_INSTALL_RPATH=" lib))))) | ||
| 3214 | (synopsis "The C library for parsing and generating CBOR") | 3208 | (synopsis "The C library for parsing and generating CBOR") |
| 3209 | (native-inputs | ||
| 3210 | (list cmocka)) | ||
| 3215 | (description | 3211 | (description |
| 3216 | "@acronym{CBOR, The Concise Binary Object Representation} is a data format | 3212 | "@acronym{CBOR, The Concise Binary Object Representation} is a data format |
| 3217 | whose design goals include the possibility of extremely small code size, fairly | 3213 | whose design goals include the possibility of extremely small code size, fairly |
