From: Steinar H. Gunderson Date: Thu, 27 Jan 2022 13:00:16 +0000 (+0100) Subject: Revert "Make entire path for plocate database configurable" X-Git-Tag: 1.1.15~4 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=df2c52d164aaf03fd74fe72cdb8a47c59d2c11a7;p=plocate Revert "Make entire path for plocate database configurable" Breaks configure. This reverts commit d45acc377040e80dc517dbdcbf3cfcb06eab8c09. --- diff --git a/meson.build b/meson.build index 8dc2393..435cd0a 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,8 @@ project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std= add_project_arguments('-DGROUPNAME="' + get_option('locategroup') + '"', language: 'cpp') add_project_arguments('-DUPDATEDB_CONF="/etc/updatedb.conf"', language: 'cpp') -dbfile = join_paths(get_option('sharedstatedir'), get_option('dbpath')) +dbdir = join_paths(get_option('sharedstatedir'), 'plocate') +dbfile = join_paths(dbdir, 'plocate.db') add_project_arguments('-DDBFILE="' + dbfile + '"', language: 'cpp') add_project_arguments('-DPACKAGE_NAME="plocate"', language: 'cpp') add_project_arguments('-DPACKAGE_VERSION="' + meson.project_version() + '"', language: 'cpp') diff --git a/meson_options.txt b/meson_options.txt index a9f3358..8ac13c5 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,4 +3,3 @@ option('install_systemd', type: 'boolean', value: true, description: 'Install sy option('systemunitdir', type: 'string', description: 'Where to install systemd units to (default: autodetect)') option('locategroup', type: 'string', value: 'plocate', description: 'Group that the install script will use for the .db file') option('updatedb_progname', type: 'string', value: 'updatedb', description: 'Binary name of updatedb') -option('dbpath', type: 'string', value: 'plocate/plocate.db', description: 'Path to plocate database relative to "sharedstatedir"')