mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-auth/sssd: Set the conf dir path explicitly
Without passing the --with-systemdconfdir flag, the configure script will query pkg-config for the directory itself. In the cross-compilation setup that we have, this will result in a path sysroot prepended to the path twice. systemd.eclass has a workaround for this issue, but it does not provide an elegant getter of the system configuration directory, thus we call `_systemd_get_dir` ourselves.
This commit is contained in:
parent
a4373a7c1b
commit
4cf37b6152
@ -195,6 +195,11 @@ multilib_src_configure() {
|
|||||||
myconf+=(
|
myconf+=(
|
||||||
--with-initscript="systemd"
|
--with-initscript="systemd"
|
||||||
--with-systemdunitdir=$(systemd_get_systemunitdir)
|
--with-systemdunitdir=$(systemd_get_systemunitdir)
|
||||||
|
# Flatcar: Set the systemd system
|
||||||
|
# configuration directory explicitly through
|
||||||
|
# _systemd_get_dir, as it will do the right
|
||||||
|
# thing in cross-compilation environment.
|
||||||
|
--with-systemdconfdir=$(_systemd_get_dir systemdsystemconfdir /etc/systemd/system)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
myconf+=(--with-initscript="sysv")
|
myconf+=(--with-initscript="sysv")
|
||||||
|
Loading…
Reference in New Issue
Block a user