[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/18: gnu: smartdns: Update to 43.
From: |
guix-commits |
Subject: |
06/18: gnu: smartdns: Update to 43. |
Date: |
Tue, 29 Aug 2023 08:54:34 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 5a20470800f3d73cc29b5d45e5e0b3f3e28c1c14
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sat Aug 12 21:27:35 2023 +0800
gnu: smartdns: Update to 43.
* gnu/packages/dns.scm (smartdns): Update to 43.
[arguments]<#:tests?>: Enable tests.
<#:test-target>: Set to "test".
<#:make-flags>: Set "VER".
<#:phases>: Add phase 'skip-unavailable-tests, 'prepare-test-dir,
'enter-test-dir, 'leave-test-dir.
[native-inputs]: Add googletest, isc-bind:utils.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/dns.scm | 35 ++++++++++++++++++++++++++++++-----
1 file changed, 30 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index d6bea61ca7..51e88e29bb 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -1273,7 +1273,7 @@ nameservers other than libc.")
(define-public smartdns
(package
(name "smartdns")
- (version "42")
+ (version "43")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -1285,18 +1285,43 @@ nameservers other than libc.")
((".*SYSTEMDSYSTEMUNITDIR.*") "")))
(sha256
(base32
- "17j0h5l7gig6rzk8b9180jwrx5khpnrylacjxvnnpgsi2725k8lq"))))
+ "0s789l6i4yirmarg80mknc1pp65rz01ky9f7gidgclkfcwzz41l3"))))
(build-system gnu-build-system)
(arguments
- (list #:tests? #f ;no tests
+ (list #:test-target "test"
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target))
(string-append "DESTDIR=" #$output)
- "PREFIX=''")
+ "PREFIX=''"
+ (string-append "VER=" #$version))
#:phases
#~(modify-phases %standard-phases
- (delete 'configure))))
+ (delete 'configure)
+ (add-after 'unpack 'skip-unavailable-tests
+ (lambda _
+ (with-directory-excursion "test/cases"
+ ;; Tests try to open /etc/resolv.conf
+ (substitute* "test-bind.cc"
+ ;; Bind.tls
+ (("smartdns::Server server_wrap;" all)
+ (string-append "GTEST_SKIP();" all)))
+ ;; Tests use ICMP ping.
+ (substitute* (find-files ".")
+ ((".*PING_TYPE_ICMP.*" all)
+ (string-append "GTEST_SKIP();" all)))
+ (delete-file "test-speed-check.cc"))))
+ ;; Compiled .o files in build phase can't be used for tests.
+ (add-after 'skip-unavailable-tests 'prepare-test-dir
+ (lambda _
+ (copy-recursively "." "../test")))
+ (add-before 'check 'enter-test-dir
+ (lambda _
+ (chdir "../test/test")))
+ (add-after 'check 'leave-test-dir
+ (lambda _
+ (chdir "../../source"))))))
(inputs (list openssl))
+ (native-inputs (list googletest `(,isc-bind "utils")))
(home-page "https://github.com/pymumu/smartdns")
(synopsis "Local DNS server")
(description
- branch master updated (cf6abf50db -> 62eafea1a6), guix-commits, 2023/08/29
- 02/18: gnu: bundler: Update to 2.4.18., guix-commits, 2023/08/29
- 07/18: gnu: ccid: Update to 1.5.2., guix-commits, 2023/08/29
- 06/18: gnu: smartdns: Update to 43.,
guix-commits <=
- 10/18: gnu: waybar: Update to 0.9.20., guix-commits, 2023/08/29
- 15/18: gnu: opencv: Update to 4.8.0, guix-commits, 2023/08/29
- 01/18: gnu: guix-build-coordinator: Update to 0-88.cbded42., guix-commits, 2023/08/29
- 17/18: gnu: font-sarasa-gothic: Update to 0.41.7., guix-commits, 2023/08/29
- 05/18: gnu: dino: Update to 0.4.3., guix-commits, 2023/08/29
- 13/18: gnu: looking-glass-client: Update to B6., guix-commits, 2023/08/29
- 03/18: gnu: librecast: Update to 0.7-RC3., guix-commits, 2023/08/29
- 04/18: gnu: lcsync: Update to 0.2.1., guix-commits, 2023/08/29
- 08/18: gnu: emacs-flim-lb: Update to 1.14.9-137.80b8121., guix-commits, 2023/08/29
- 16/18: gnu: tuxedo-keyboard: Update to 3.2.10., guix-commits, 2023/08/29