From: Michal Privoznik Date: Tue, 25 Feb 2025 16:49:20 +0000 (+0100) Subject: meson: Generate runstatedir according to newer standard X-Git-Tag: v11.2.0-rc1~291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5299ddf86121d3c792ca271ffcb54900eb19dc3;p=thirdparty%2Flibvirt.git meson: Generate runstatedir according to newer standard While previously FHS 2.3 defined /var/run as a place to store runtime information [1] it's no longer 2004 and newer specification was released which favors /run [2]. Since it was released 10 years ago, maybe it's time we start honouring it. On majority of Linux systems (if not all), /var/run is a symlink to /run anyways. Users can still pass old location via -Drunstatedir. 1: https://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#VARRUNRUNTIMEVARIABLEDATA 2: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrangé --- diff --git a/meson.build b/meson.build index 95c294947d..2d76a0846c 100644 --- a/meson.build +++ b/meson.build @@ -82,7 +82,7 @@ endif runstatedir = get_option('runstatedir') if runstatedir == '' - runstatedir = localstatedir / 'run' + runstatedir = '/run' endif initconfdir = get_option('initconfdir')