d7aa78c32f
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
29 lines
744 B
Meson
29 lines
744 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
systemd_coredump_sources = files('''
|
|
coredump.c
|
|
coredump-vacuum.c
|
|
coredump-vacuum.h
|
|
'''.split())
|
|
|
|
if conf.get('HAVE_ELFUTILS') == 1
|
|
systemd_coredump_sources += files(['stacktrace.c',
|
|
'stacktrace.h'])
|
|
endif
|
|
|
|
coredumpctl_sources = files('coredumpctl.c')
|
|
|
|
if conf.get('ENABLE_COREDUMP') == 1 and install_sysconfdir
|
|
install_data('coredump.conf',
|
|
install_dir : pkgsysconfdir)
|
|
endif
|
|
|
|
tests += [
|
|
[['src/coredump/test-coredump-vacuum.c',
|
|
'src/coredump/coredump-vacuum.c',
|
|
'src/coredump/coredump-vacuum.h'],
|
|
[],
|
|
[],
|
|
'ENABLE_COREDUMP', 'manual'],
|
|
]
|