[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: docker: Substitute LookPath of literals generally.
From: |
guix-commits |
Subject: |
01/01: gnu: docker: Substitute LookPath of literals generally. |
Date: |
Wed, 9 Jan 2019 21:15:36 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit 65a7e35cb530c9da434ebab06d59aa97b9e66f63
Author: Danny Milosavljevic <address@hidden>
Date: Thu Jan 10 03:12:32 2019 +0100
gnu: docker: Substitute LookPath of literals generally.
* gnu/packages/docker.scm (docker)[arguments]<#:phases>[patch-paths]:
Substitute LookPath of literals generally.
---
gnu/packages/docker.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm
index d06a894..472da0e 100644
--- a/gnu/packages/docker.scm
+++ b/gnu/packages/docker.scm
@@ -311,7 +311,14 @@ network attachments.")
(substitute-LookPath "blkid" "util-linux" "/sbin/blkid")
(substitute-LookPath "unpigz" "pigz" "/bin/unpigz")
(substitute-LookPath "iptables" "iptables" "/sbin/iptables")
- (substitute-LookPath "ip" "iproute2" "/sbin/ip")))
+ (substitute-LookPath "ip" "iproute2" "/sbin/ip"))
+ ;; Make compilation fail when, in future versions, Docker
+ ;; invokes other programs we don't know about and thus don't
+ ;; substitute.
+ (substitute* source-files
+ (("LookPath\\(\"zfs\"\\)") "LooxPath(\"zfs\")")
+ (("LookPath\\(\"") "Guix_doesnt_want_LookPath\\(\"")
+ (("LooxPath") "LookPath")))
#t))
(add-after 'patch-paths 'delete-failing-tests
(lambda _