build-system/gnu: Fix patch-dot-desktop-files regexp.
When patching .desktop files, Exec= values beginning with "/", (or spaces or newline characters) will result in BINARY matching the empty string. Changing "*", meaning 0 or more, to "+", meaning 1 or more, ensures it will match a basename of at least length 1, or nothing. * guix/build/gnu-build-system.scm (patch-dot-desktop-files): Substitute ‘+’ for ‘*’. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>master
parent
77759234a3
commit
685110045c
|
@ -727,9 +727,9 @@ which cannot be found~%"
|
|||
;; UTF-8-encoded.
|
||||
(with-fluids ((%default-port-encoding "UTF-8"))
|
||||
(substitute* files
|
||||
(("^Exec=([^/[:blank:]\r\n]*)(.*)$" _ binary rest)
|
||||
(("^Exec=([^/[:blank:]\r\n]+)(.*)$" _ binary rest)
|
||||
(string-append "Exec=" (which binary) rest))
|
||||
(("^TryExec=([^/[:blank:]\r\n]*)(.*)$" _ binary rest)
|
||||
(("^TryExec=([^/[:blank:]\r\n]+)(.*)$" _ binary rest)
|
||||
(string-append "TryExec="
|
||||
(which binary) rest)))))))))
|
||||
outputs))
|
||||
|
|
Reference in New Issue