From a52154eba50a0338af423809e147cfe7da1468bd Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 21 Aug 2016 23:37:13 +0300 Subject: Change default and add explanatory comment for why we do that. --- mesonbuild/coredata.py | 6 +++++- test cases/common/12 data/meson.build | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index ae3db6d..2f1875f 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -211,7 +211,11 @@ builtin_options = { 'datadir' : [ UserStringOption, 'Data file directory.', 'share' ], 'mandir' : [ UserStringOption, 'Manual page directory.', 'share/man' ], 'localedir' : [ UserStringOption, 'Locale data directory.', 'share/locale' ], - 'sysconfdir' : [ UserStringOption, 'Sysconf data directory.', '/etc' ], + # Sysconfdir is a bit special. It defaults to ${prefix}/etc but nobody + # uses that. Instead they always set it manually to /etc. This default + # value is thus pointless and not really used but we set it to this + # for consistency with other systems. + 'sysconfdir' : [ UserStringOption, 'Sysconf data directory.', 'etc' ], 'werror' : [ UserBooleanOption, 'Treat warnings as errors.', False ], 'warning_level' : [ UserComboOption, 'Compiler warning level to use.', [ '1', '2', '3' ], '1'], 'layout' : [ UserComboOption, 'Build directory layout.', ['mirror', 'flat' ], 'mirror' ], diff --git a/test cases/common/12 data/meson.build b/test cases/common/12 data/meson.build index bd1fbf6..80f3835 100644 --- a/test cases/common/12 data/meson.build +++ b/test cases/common/12 data/meson.build @@ -1,6 +1,6 @@ project('data install test', 'c') install_data(sources : 'datafile.dat', install_dir : 'share/progname') -install_data(sources : 'etcfile.dat', install_dir : get_option('sysconfdir')) +install_data(sources : 'etcfile.dat', install_dir : '/etc') subdir('vanishing') -- cgit v1.1