]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: add option to skip installing to $sysconfdir
authorJörg Thalheim <joerg@thalheim.io>
Thu, 12 Nov 2020 07:01:39 +0000 (08:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Nov 2020 10:21:46 +0000 (11:21 +0100)
commitd7aa78c32f076c305ceeb183fc06eb1de0960deb
treed7d262549dff0b1e195b1367616995241370d821
parentfaa73d4e0c8095fedd98ff29851b9634810ff97e
meson: add option to skip installing to $sysconfdir

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
20 files changed:
hwdb.d/meson.build
meson.build
meson_options.txt
network/meson.build
src/core/meson.build
src/coredump/meson.build
src/home/meson.build
src/journal-remote/meson.build
src/journal/meson.build
src/kernel-install/meson.build
src/login/meson.build
src/network/meson.build
src/oom/meson.build
src/pstore/meson.build
src/resolve/meson.build
src/timesync/meson.build
src/udev/meson.build
sysctl.d/meson.build
tmpfiles.d/meson.build
units/meson.build