Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 651408 Details for
Bug 734384
gnome-extra/cinnamon-settings-daemon-4.4.0: elogind is not detected during build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Backport of the relevant upstream change
cinnamon-settings-daemon-4.4.0-elogind.patch (text/plain), 15.32 KB, created by
Garrett Holmstrom
on 2020-07-29 08:50:54 UTC
(
hide
)
Description:
Backport of the relevant upstream change
Filename:
MIME Type:
Creator:
Garrett Holmstrom
Created:
2020-07-29 08:50:54 UTC
Size:
15.32 KB
patch
obsolete
>--- cinnamon-settings-daemon-4.4.0/configure.ac.elogind 2020-07-29 01:23:10.871538586 -0700 >+++ cinnamon-settings-daemon-4.4.0/configure.ac 2020-07-29 01:23:44.723362115 -0700 >@@ -395,11 +395,19 @@ AC_ARG_ENABLE([logind], > > have_logind=no > if test x$enable_logind != xno ; then >- PKG_CHECK_MODULES(LOGIND, [libsystemd-login], [have_logind=yes], [have_logind=no]) >+ PKG_CHECK_MODULES(LOGIND, [libsystemd-login], [have_logind=yes], [ >+ PKG_CHECK_MODULES(LOGIND, [libsystemd], [have_logind=yes], [ >+ PKG_CHECK_MODULES(LOGIND, [libelogind], [have_logind=yes], [have_logind=no]) >+ ]) >+ ]) > fi > > if test x$have_logind = xyes; then > AC_DEFINE(HAVE_LOGIND, 1, [Define if logind is supported]) >+else >+ if test x$enable_logind = xyes; then >+ AC_MSG_ERROR([logind support requested but neither systemd or elogind were not found]) >+ fi > fi > > AC_SUBST(LOGIND_CFLAGS) >--- cinnamon-settings-daemon-4.4.0/configure.elogind 2020-07-29 01:30:44.896165188 -0700 >+++ cinnamon-settings-daemon-4.4.0/configure 2020-07-29 01:31:44.040854790 -0700 >@@ -23030,6 +23030,126 @@ fi > # Put the nasty error message in config.log where it belongs > echo "$LOGIND_PKG_ERRORS" >&5 > >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 >+$as_echo_n "checking for libsystemd... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5 >+$as_echo_n "checking for libelogind... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ > have_logind=no > elif test $pkg_failed = untried; then > { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >@@ -23042,12 +23162,328 @@ else > $as_echo "yes" >&6; } > have_logind=yes > fi >+ >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5 >+$as_echo_n "checking for libelogind... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ >+ have_logind=no >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ have_logind=no >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi >+ >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi >+ >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 >+$as_echo_n "checking for libsystemd... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5 >+$as_echo_n "checking for libelogind... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ >+ have_logind=no >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ have_logind=no >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi >+ >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+ >+pkg_failed=no >+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelogind" >&5 >+$as_echo_n "checking for libelogind... " >&6; } >+ >+if test -n "$LOGIND_CFLAGS"; then >+ pkg_cv_LOGIND_CFLAGS="$LOGIND_CFLAGS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_CFLAGS=`$PKG_CONFIG --cflags "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+if test -n "$LOGIND_LIBS"; then >+ pkg_cv_LOGIND_LIBS="$LOGIND_LIBS" >+ elif test -n "$PKG_CONFIG"; then >+ if test -n "$PKG_CONFIG" && \ >+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelogind\""; } >&5 >+ ($PKG_CONFIG --exists --print-errors "libelogind") 2>&5 >+ ac_status=$? >+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 >+ test $ac_status = 0; }; then >+ pkg_cv_LOGIND_LIBS=`$PKG_CONFIG --libs "libelogind" 2>/dev/null` >+ test "x$?" != "x0" && pkg_failed=yes >+else >+ pkg_failed=yes >+fi >+ else >+ pkg_failed=untried >+fi >+ >+ >+ >+if test $pkg_failed = yes; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ >+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then >+ _pkg_short_errors_supported=yes >+else >+ _pkg_short_errors_supported=no >+fi >+ if test $_pkg_short_errors_supported = yes; then >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libelogind" 2>&1` >+ else >+ LOGIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libelogind" 2>&1` >+ fi >+ # Put the nasty error message in config.log where it belongs >+ echo "$LOGIND_PKG_ERRORS" >&5 >+ >+ have_logind=no >+elif test $pkg_failed = untried; then >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 >+$as_echo "no" >&6; } >+ have_logind=no >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi >+ >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi >+ >+else >+ LOGIND_CFLAGS=$pkg_cv_LOGIND_CFLAGS >+ LOGIND_LIBS=$pkg_cv_LOGIND_LIBS >+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 >+$as_echo "yes" >&6; } >+ have_logind=yes >+fi > fi > > if test x$have_logind = xyes; then > > $as_echo "#define HAVE_LOGIND 1" >>confdefs.h > >+else >+ if test x$enable_logind = xyes; then >+ as_fn_error $? "logind support requested but neither systemd or elogind were not found" "$LINENO" 5 >+ fi > fi > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 734384
: 651408