From b7c1a259815e97beeb9f60b8991fde87c31abf64 Mon Sep 17 00:00:00 2001 From: Liliana Marie Prikler Date: Fri, 17 Mar 2023 23:57:22 +0100 Subject: [PATCH] gnu: packagekit: Fix installation directory for bash completions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this patch, packagekit would attempt to install bash completions to another store directory, invoking pkexec in the process and raising a cryptic error. * gnu/packages/freedesktop.scm (packagekit)[#:phases]: Add ‘fix-bash-completion-dir’. --- gnu/packages/freedesktop.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 9ba53cd044..9256dac0e0 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -1006,7 +1006,15 @@ (define-public packagekit (build-system meson-build-system) (arguments (list #:tests? #f - #:configure-flags #~'("-Dsystemd=false" "-Doffline_update=false"))) + #:configure-flags #~'("-Dsystemd=false" "-Doffline_update=false") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-bash-completion-dir + (lambda _ + (substitute* "contrib/meson.build" + (("bash_.*_dep\\.get_.*\\('completionsdir', .*\\)") + "join_paths(get_option('prefix'), 'share', + 'bash-completion', 'completions')"))))))) (native-inputs (list bash-completion docbook-xsl -- 2.39.2