diff options
author | ykonai <mail@ykonai.net> | 2022-04-01 23:32:04 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-04-05 20:41:41 +0200 |
commit | 84e0cbbc9cbf7e73344969a90ada5b82bd2fe2fc (patch) | |
tree | 407e1a10469909b7681d33f85f13788813b66124 /gnu | |
parent | d15a601a85c85431a691c2a3f85b9e6e0948a540 (diff) |
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>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/search.scm | 13 |
1 files 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"))) |