me
/
guix
Archived
1
0
Fork 0

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>
master
ykonai 2022-04-01 23:32:04 +02:00 committed by Ludovic Courtès
parent d15a601a85
commit 84e0cbbc9c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 2 deletions

View File

@ -487,8 +487,17 @@ conflict with slocate compatibility.")
(arguments (arguments
`(#:configure-flags `(#:configure-flags
(list (list
(string-append ;; Put the database in /var/cache/plocate.db
"--sharedstatedir=" (assoc-ref %outputs "out") "/var")))) "--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 (inputs
(list liburing (list liburing
`(,zstd "lib"))) `(,zstd "lib")))