diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-06-08 23:34:45 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-08-25 16:38:46 +0900 |
| commit | fb76d9ddda7c0ac0e1da54c346d435e2fb283040 (patch) | |
| tree | 30ec3e88aaeebb257a84d6523b03af050cfc6c0e /gnu/packages | |
| parent | 1997b0d3b5a5f810800a01529784c80e1aac2e03 (diff) | |
gnu: bctoolbox: Update to 5.3.57.
* gnu/packages/linphone.scm (bctoolbox): Update to 5.3.57.
[arguments] <configure-flags>: Replace -DENABLE_STATIC=OFF with
-DBUILD_SHARED_LIBS=ON.
<phases>: Use gexps. Use search-input-directory in patch-cmake phase. Adjust
tester file name in check phase override.
Change-Id: I4571c238268220c0ac11f42f3caec3e41c879331
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/linphone.scm | 87 |
1 files changed, 43 insertions, 44 deletions
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm index 5e0d9a280c5..4593e93335a 100644 --- a/gnu/packages/linphone.scm +++ b/gnu/packages/linphone.scm @@ -124,7 +124,7 @@ writing, administering, and running unit tests in C.") (define-public bctoolbox (package (name "bctoolbox") - (version "5.2.49") + (version "5.3.57") (source (origin (method git-fetch) @@ -133,52 +133,51 @@ writing, administering, and running unit tests in C.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0b51308jy5z32gp594r78jvbyrha16sanxdnbcmxgrwnb4myqx5j")))) + (base32 "178axy7gmmi6fzjbz7aaawcx0qg50i4hnn7ab6w642b02vxfr386")))) (build-system cmake-build-system) (outputs '("out" "debug")) (arguments - `(#:configure-flags (list "-DENABLE_STATIC=OFF" - ;; Do not use -Werror, because due to skipping - ;; a test there are unused procedures. - "-DENABLE_STRICT=OFF") - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-cmake - (lambda* (#:key inputs #:allow-other-keys) - ;; Fix decaf dependency (see: - ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3). - (let* ((decaf (assoc-ref inputs "libdecaf"))) - (substitute* (find-files "." "CMakeLists.txt") - (("find_package\\(Decaf CONFIG\\)") - "set(DECAF_FOUND 1)") - (("\\$\\{DECAF_INCLUDE_DIRS\\}") - (string-append decaf "/include/decaf")) - (("\\$\\{DECAF_TARGETNAME\\}") - "decaf"))))) - (add-after 'unpack 'skip-problematic-tests - (lambda _ - ;; The following test relies on networking; disable it. - (substitute* "tester/port.c" - (("[ \t]*TEST_NO_TAG.*bctbx_addrinfo_sort_test\\),") - "")))) - (add-after 'unpack 'fix-installed-resource-directory-detection - (lambda _ - ;; There's some broken logic in tester.c that checks if CWD, or - ;; if its parent exist, and if so, sets the prefix where the test - ;; resources are looked up to; disable it (see: - ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/4). - (substitute* "src/tester.c" - (("if \\(file_exists\\(\".\"\\)\\)") - "if (NULL)") - (("if \\(file_exists\\(\"..\"\\)\\)") - "if (NULL)")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (with-directory-excursion "tester" - (invoke "./bctoolbox_tester")))))))) - (inputs - (list bcunit libdecaf mbedtls-lts)) + (list + #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON" + ;; Do not use -Werror, because due to skipping + ;; a test there are unused procedures. + "-DENABLE_STRICT=OFF") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake + (lambda* (#:key inputs #:allow-other-keys) + ;; Fix decaf dependency (see: + ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3). + (substitute* (find-files "." "CMakeLists.txt") + (("find_package\\(Decaf CONFIG\\)") + "set(DECAF_FOUND 1)") + (("\\$\\{DECAF_INCLUDE_DIRS\\}") + (search-input-directory inputs "include/decaf")) + (("\\$\\{DECAF_TARGETNAME\\}") + "decaf")))) + (add-after 'unpack 'skip-problematic-tests + (lambda _ + ;; The following test relies on networking; disable it. + (substitute* "tester/port.c" + (("[ \t]*TEST_NO_TAG.*bctbx_addrinfo_sort_test\\),") + "")))) + (add-after 'unpack 'fix-installed-resource-directory-detection + (lambda _ + ;; There's some broken logic in tester.c that checks if CWD, or + ;; if its parent exist, and if so, sets the prefix where the test + ;; resources are looked up to; disable it (see: + ;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/4). + (substitute* "src/tester.c" + (("if \\(file_exists\\(\".\"\\)\\)") + "if (NULL)") + (("if \\(file_exists\\(\"..\"\\)\\)") + "if (NULL)")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "tester" + (invoke "./bctoolbox-tester")))))))) + (inputs (list bcunit libdecaf mbedtls-lts)) (synopsis "Belledonne Communications Tool Box") (description "BcToolBox is an utilities library used by Belledonne Communications software like belle-sip, mediastreamer2 and linphone.") |
