Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734384 - gnome-extra/cinnamon-settings-daemon-4.4.0: elogind is not detected during build
Summary: gnome-extra/cinnamon-settings-daemon-4.4.0: elogind is not detected during b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Matthew Turnbull
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-29 08:45 UTC by Garrett Holmstrom
Modified: 2020-12-27 05:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backport of the relevant upstream change (cinnamon-settings-daemon-4.4.0-elogind.patch,15.32 KB, patch)
2020-07-29 08:50 UTC, Garrett Holmstrom
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Garrett Holmstrom 2020-07-29 08:45:20 UTC
When cinnamon-settings-daemon is built with USE=elogind its configure script checks pkg-config for libsystemd-login but not libelogind, causing it to disable its logind support and fall back to consolekit.  This, in turn, prevents it from following through on power management events such as handling laptop lid closure because consolekit is not installed.  This issue has already been fixed upstream.

Reproducible: Always

Steps to Reproduce:
1.  Build cinnamon-settings-daemon on a laptop with USE=elogind and systemd not installed
2.  Start a new cinnamon session
3.  Set power settings to suspend on lid closure and close the lid
Actual Results:  
System remains online and .xsession-errors logs "Failed to get session for pid: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files" messages

Expected Results:  
Laptop suspends

I tested this by running the configure step on the ebuild with this behavior and observing a config.h file that does not define HAVE_LOGIND until I applied a backport of the upstream patch for this issue.


emerge --info output:

Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.4.48-gentoo x86_64)
=================================================================
System uname: Linux-5.4.48-gentoo-x86_64-Intel-R-_Core-TM-_i9-9880H_CPU_@_2.30GHz-with-gentoo-2.6
KiB Mem:    65536740 total,  61484392 free
KiB Swap:   66390216 total,  66390216 free
Timestamp of repository gentoo: Wed, 29 Jul 2020 06:00:01 +0000
Head commit of repository gentoo: 3223b155cf77e34814ea3215f5881b16efe50e12
Timestamp of repository steam-overlay: Sat, 04 Jul 2020 07:44:31 +0000
Head commit of repository steam-overlay: fcaa8ccf1c2149d9a61137d400e8ccdc82729dbc

Head commit of repository throttled: aea89b0942bf30837e19766ef93206096a4d0c4f

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
ccache version 3.7.10 [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.4-r1::gentoo
dev-util/ccache:          3.7.10::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

local
    location: /var/db/repos/local
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

throttled
    location: /var/db/repos/throttled
    sync-type: git
    sync-uri: https://github.com/erpalma/throttled-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=skylake -mabm -ftree-vectorize -grecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=skylake -mabm -ftree-vectorize -grecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=skylake -mabm -ftree-vectorize -grecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=skylake -mabm -ftree-vectorize -grecord-gcc-switches"
GENTOO_MIRRORS="https://mirrors.rit.edu/gentoo/ https://gentoo.osuosl.org/"
LANG="en_DK.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 audit berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif git gnome-keyring gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb usbredir vim-syntax vorbis wxwidgets x264 xattr xcb xml xv xvid xvmc zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby25" STEAMGAMES="source_engine" USERLAND="GNU" VIDEO_CARDS="nvidia intel vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Garrett Holmstrom 2020-07-29 08:50:54 UTC
Created attachment 651408 [details, diff]
Backport of the relevant upstream change

Attached is a source code patch that resolved this issue for me.  It simply backports the relevant configure script changes.
Comment 2 Larry the Git Cow gentoo-dev 2020-12-27 05:06:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c427f0f90d8c1ca128e216d8bb351e09d29d42c

commit 1c427f0f90d8c1ca128e216d8bb351e09d29d42c
Author:     Matthew S. Turnbull <sparky@bluefang-logic.com>
AuthorDate: 2020-12-24 06:52:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-12-27 05:06:35 +0000

    gnome-extra/cinnamon-settings-daemon: Remove old
    
    Closes: https://bugs.gentoo.org/734384
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Matthew S. Turnbull <sparky@bluefang-logic.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 gnome-extra/cinnamon-settings-daemon/Manifest      |  1 -
 .../cinnamon-settings-daemon-4.4.0.ebuild          | 94 ----------------------
 .../cinnamon-settings-daemon-3.0.1-optional.patch  | 84 -------------------
 .../cinnamon-settings-daemon-4.4.0-systemd.patch   | 36 ---------
 4 files changed, 215 deletions(-)