Skip to content
Snippets Groups Projects
Unverified Commit 2d431b01 authored by Tobias Geerinckx-Rice's avatar Tobias Geerinckx-Rice
Browse files

gnu: dns: Return #t instead of something undefined.

* gnu/packages/dns.scm (yadifa, knot)[arguments]: Return #t after calling
‘substitute*’.
(knot)[source]: Return #t after calling ‘delete-file-recursively’.
parent 7dbd75b3
No related branches found
No related tags found
No related merge requests found
...@@ -294,8 +294,10 @@ (define-public yadifa ...@@ -294,8 +294,10 @@ (define-public yadifa
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
(add-before 'configure 'omit-example-configurations (add-before 'configure 'omit-example-configurations
(lambda _ (substitute* "Makefile.in" (lambda _
((" (etc|var)") ""))))) (substitute* "Makefile.in"
((" (etc|var)") ""))
#t)))
#:configure-flags (list "--sysconfdir=/etc" "--localstatedir=/var" #:configure-flags (list "--sysconfdir=/etc" "--localstatedir=/var"
"--enable-shared" "--disable-static" "--enable-shared" "--disable-static"
"--enable-messages" "--enable-ctrl" "--enable-messages" "--enable-ctrl"
...@@ -334,7 +336,8 @@ (define-public knot ...@@ -334,7 +336,8 @@ (define-public knot
(("contrib/dnstap ") "")) (("contrib/dnstap ") ""))
(with-directory-excursion "src/contrib" (with-directory-excursion "src/contrib"
(for-each delete-file-recursively (for-each delete-file-recursively
(list "dnstap" "lmdb"))))))) (list "dnstap" "lmdb")))
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)))
...@@ -354,7 +357,8 @@ (define-public knot ...@@ -354,7 +357,8 @@ (define-public knot
(add-before 'configure 'disable-directory-pre-creation (add-before 'configure 'disable-directory-pre-creation
(lambda _ (lambda _
;; Don't install empty directories like ‘/etc’ outside the store. ;; Don't install empty directories like ‘/etc’ outside the store.
(substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true")))) (substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true"))
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment