emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54676: closed ([PATCH] gnu: Fix plocate package)


From: GNU bug Tracking System
Subject: bug#54676: closed ([PATCH] gnu: Fix plocate package)
Date: Tue, 05 Apr 2022 18:33:02 +0000

Your message dated Tue, 05 Apr 2022 20:32:29 +0200
with message-id <87zgkzidoi.fsf@gnu.org>
and subject line Re: bug#54676: [PATCH] gnu: Fix plocate package
has caused the debbugs.gnu.org bug report #54676,
regarding [PATCH] gnu: Fix plocate package
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
54676: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54676
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Fix plocate package Date: Fri, 1 Apr 2022 23:32:04 +0200
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#54676: [PATCH] gnu: Fix plocate package Date: Tue, 05 Apr 2022 20:32:29 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

ykonai <mail@ykonai.net> skribis:

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

Applied, thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]