[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: plocate: Build with "--sharedstatedir=/var".
From: |
guix-commits |
Subject: |
11/13: gnu: plocate: Build with "--sharedstatedir=/var". |
Date: |
Tue, 5 Apr 2022 14:43:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 84e0cbbc9cbf7e73344969a90ada5b82bd2fe2fc
Author: ykonai <mail@ykonai.net>
AuthorDate: Fri Apr 1 23:32:04 2022 +0200
gnu: plocate: Build with "--sharedstatedir=/var".
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 (plocate): Change build options.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 @@ conflict with slocate compatibility.")
(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")))
- 06/13: gnu: python-dotenv: Update to 0.20.0., (continued)
- 06/13: gnu: python-dotenv: Update to 0.20.0., guix-commits, 2022/04/05
- 08/13: gnu: python-w3lib: Fix build., guix-commits, 2022/04/05
- 02/13: gnu: curlie: Update to 1.6.9, guix-commits, 2022/04/05
- 01/13: gnu: xmonad-next: Change #:phases to gexp., guix-commits, 2022/04/05
- 04/13: gnu: celluloid: Update to 0.23., guix-commits, 2022/04/05
- 05/13: gnu: linux: Allow kconfig options to be strings, guix-commits, 2022/04/05
- 07/13: gnu: python-gst: Fix the concatenation of install path., guix-commits, 2022/04/05
- 09/13: gnu: pantheon-calculator: Update to 1.7.2., guix-commits, 2022/04/05
- 10/13: gnu: phodav: Use libsoup 2 instead of libsoup 3., guix-commits, 2022/04/05
- 12/13: services: messaging: Fix two copy-paste mistakes; avoid warnings., guix-commits, 2022/04/05
- 11/13: gnu: plocate: Build with "--sharedstatedir=/var".,
guix-commits <=
- 13/13: gnu: l2md: Update to 9db252bc., guix-commits, 2022/04/05