meson: add option to skip installing to $sysconfdir

System Internals / systemd - Jörg Thalheim [thalheim.io] - 12 November 2020 10:21 UTC

This is useful for development where overwriting files out side the configured prefix will affect the host as well as stateless systems such as NixOS that don't let packages install to /etc but handle configuration on their own.

Alternative to https://github.com/systemd/systemd/pull/17501

tested with:

$ mkdir inst build && cd build $ meson \-Dcreate-log-dirs=false \-Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \-Dsysvinit-path=$(realpath ../inst)/etc/init.d \-Drootprefix=$(realpath ../inst) \-Dinstall-sysconfdir=false \
--prefix=$(realpath ../inst) .. $ ninja install

d7aa78c32f meson: add option to skip installing to $sysconfdir
hwdb.d/meson.build | 12 +++++++-----
meson.build | 25 +++++++++++++++++--------
meson_options.txt | 2 ++
network/meson.build | 6 ++++--
src/core/meson.build | 20 ++++++++++++--------
src/coredump/meson.build | 2 +-
src/home/meson.build | 6 ++++--
src/journal-remote/meson.build | 12 ++++++++----
src/journal/meson.build | 6 ++++--
src/kernel-install/meson.build | 23 +++++++++++++----------
src/login/meson.build | 6 ++++--
src/network/meson.build | 6 ++++--
src/oom/meson.build | 6 ++++--
src/pstore/meson.build | 2 +-
src/resolve/meson.build | 6 ++++--
src/timesync/meson.build | 6 ++++--
src/udev/meson.build | 12 ++++++++----
sysctl.d/meson.build | 6 ++++--
tmpfiles.d/meson.build | 2 +-
units/meson.build | 8 +++++---
20 files changed, 111 insertions(+), 63 deletions(-)

Upstream: github.com


  • Share