From 4cf37b61523dc9f2c29564efb95690cc73e49422 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 9 Nov 2021 12:32:34 +0100 Subject: [PATCH] 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. --- .../coreos-overlay/sys-auth/sssd/sssd-2.3.1-r3.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/sssd-2.3.1-r3.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/sssd-2.3.1-r3.ebuild index cff3ef1eaa..b7edbb9742 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/sssd-2.3.1-r3.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/sssd-2.3.1-r3.ebuild @@ -195,6 +195,11 @@ multilib_src_configure() { myconf+=( --with-initscript="systemd" --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 myconf+=(--with-initscript="sysv")