gnu: libreoffice: Fix ‘soffice’ in a pure environment.

* gnu/packages/libreoffice.scm (libreoffice)[arguments]: Refer to grep
and coreutils by absolute file name in the soffice launcher script.
This commit is contained in:
Tobias Geerinckx-Rice 2020-02-21 05:19:27 +01:00
parent dd6114dfc5
commit d5f344c987
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1034,6 +1034,14 @@ (define-public libreoffice
"solenv/gbuild/platform/unxgcc.mk")
(("/bin/sh") (which "sh")))
;; Use store references for strictly necessary commands,
;; but not for optional tools like gdb and valgrind.
(for-each (lambda (command)
(substitute* "desktop/scripts/soffice.sh"
(((format #f"~a " command))
(format #f "~a " (which command)))))
(list "dirname" "grep" "uname"))
;; GPGME++ headers are installed in a gpgme++ subdirectory, but
;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
;; find them on the include path without a prefix.