gnu: docker: Harmonize LookPath regexes.
* gnu/packages/docker.scm (docker)[phases]: In the patch-paths phase, update the regexes used by SUBSTITUTE-LOOKPATH and SUBSTITUTE-COMMAND to match at the start of the word, like it's done later.
This commit is contained in:
parent
1b14e1bccd
commit
3f280d3950
|
@ -372,7 +372,7 @@ built-in registry server of Docker.")
|
|||
((substitute-LookPath source-text package
|
||||
relative-path)
|
||||
#`(substitute* source-files
|
||||
((#,(string-append "exec\\.LookPath\\(\""
|
||||
((#,(string-append "\\<exec\\.LookPath\\(\""
|
||||
(syntax->datum
|
||||
#'source-text)
|
||||
"\")"))
|
||||
|
@ -386,11 +386,12 @@ built-in registry server of Docker.")
|
|||
((substitute-LookPath source-text package
|
||||
relative-path)
|
||||
#`(substitute* source-files
|
||||
((#,(string-append "exec\\.Command\\(\""
|
||||
((#,(string-append "\\<(re)?exec\\.Command\\(\""
|
||||
(syntax->datum
|
||||
#'source-text)
|
||||
"\""))
|
||||
(string-append "exec.Command(\""
|
||||
"\"") _ re?)
|
||||
(string-append (if re? re? "")
|
||||
"exec.Command(\""
|
||||
(assoc-ref inputs package)
|
||||
relative-path
|
||||
"\""))))))))
|
||||
|
|
Loading…
Reference in New Issue