sys-auth/sssd: move runstatedir option from configure to make

Now that the upstream sssd 2.3.1 does not support `--runstatedir` option
from its configure script, we need to remove the option, to unblock the
configure issue like `unrecognized option --runstatedir`.
Instead we need to pass `runstatedir=` to emake commands.
This commit is contained in:
Dongsu Park 2020-11-06 13:52:06 +01:00
parent 7dbd4ac634
commit 58ccfd5208

View File

@ -142,7 +142,6 @@ multilib_src_configure() {
myconf+=( myconf+=(
--localstatedir="${EPREFIX}"/var --localstatedir="${EPREFIX}"/var
--runstatedir="${EPREFIX}"/run
--with-pid-path="${EPREFIX}"/run --with-pid-path="${EPREFIX}"/run
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir) --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
@ -223,7 +222,8 @@ multilib_src_configure() {
multilib_src_compile() { multilib_src_compile() {
if multilib_is_native_abi; then if multilib_is_native_abi; then
default # Flatcar: add runstatedir to make commands to avoid configure error
default runstatedir="${EPREFIX}"/run
use doc && emake docs use doc && emake docs
if use man || use nls; then if use man || use nls; then
emake update-po emake update-po
@ -237,8 +237,9 @@ multilib_src_compile() {
multilib_src_install() { multilib_src_install() {
if multilib_is_native_abi; then if multilib_is_native_abi; then
# Flatcar: add sysconfdir # Flatcar: add runstatedir, sysconfdir
emake -j1 DESTDIR="${D}" sysconfdir="/usr/share" "${_at_args[@]}" install emake -j1 DESTDIR="${D}" runstatedir="${EPREFIX}"/run \
sysconfdir="/usr/share" "${_at_args[@]}" install
if use python; then if use python; then
python_optimize python_optimize
python_fix_shebang "${ED}" python_fix_shebang "${ED}"