From a222592c08909b67ff2334f617a7b273cc5ab082 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 20 Mar 2021 21:28:22 +1100 Subject: [PATCH 1/2] gnu: calibre: Don't install junk temporary files. * gnu/packages/ebook.scm (calibre): [arguments]: Unset XDG_DATA_HOME just for installing rapydscript so that Qtwebengine temporary files aren't put in /share/. Moving the phase until after the install phase prevents breaking .desktop file installation. --- gnu/packages/ebook.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 25a31c9a65..b55af5c865 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -282,8 +282,10 @@ sip-include-dirs = [\"" pyqt "/share/sip" "\"]"))) ;; AssertionError: b'Skia/PDF' not found in b'' : Print to PDF failed (setenv "SKIP_QT_BUILD_TEST" "true") #t))) - (add-after 'build 'build-extra + (add-after 'install 'install-rapydscript (lambda* (#:key inputs #:allow-other-keys) + ;; Unset so QtWebengine doesn't dump temporary files here. + (unsetenv "XDG_DATA_HOME") (invoke "python" "setup.py" "rapydscript") #t)) (add-after 'install 'install-man-pages -- 2.30.2