all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#54676] [PATCH] gnu: Fix plocate package
@ 2022-04-01 21:32 ykonai via Guix-patches via
  2022-04-05 18:32 ` bug#54676: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: ykonai via Guix-patches via @ 2022-04-01 21:32 UTC (permalink / raw)
  To: 54676

* gnu/packages/search.scm (plocate): Change build options.
---
Current plocate package sets the --sharedstatedir to a store directory, which
causes updatedb and plocate to fail by default since the store is immutable.
This will set the default database path to /var/cache/plocate.db instead.

 gnu/packages/search.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 6f8d673694..87f29c5424 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -487,8 +487,17 @@ (define-public plocate
     (arguments
      `(#:configure-flags
        (list
-        (string-append
-         "--sharedstatedir=" (assoc-ref %outputs "out") "/var"))))
+        ;; Put the database in /var/cache/plocate.db
+        "--sharedstatedir=/var"
+        "-Dinstall_systemd=false"
+        "-Ddbpath=cache/plocate.db")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'remove-cachedirtag
+           (lambda _
+             (substitute* "meson.build"
+               ;; Remove the script adding a "cachedirtag"
+               (("meson.add_install_script") "#")))))))
     (inputs
      (list liburing
            `(,zstd "lib")))

base-commit: a27cef76c29ba6ef0d7c203783b758ea2d5331d7
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#54676: [PATCH] gnu: Fix plocate package
  2022-04-01 21:32 [bug#54676] [PATCH] gnu: Fix plocate package ykonai via Guix-patches via
@ 2022-04-05 18:32 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-04-05 18:32 UTC (permalink / raw)
  To: ykonai; +Cc: 54676-done

Hi,

ykonai <mail@ykonai.net> skribis:

> * gnu/packages/search.scm (plocate): Change build options.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-05 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 21:32 [bug#54676] [PATCH] gnu: Fix plocate package ykonai via Guix-patches via
2022-04-05 18:32 ` bug#54676: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.