Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are we supposed to be transitioning to elogind?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Fri Mar 22, 2019 3:26 pm    Post subject: Are we supposed to be transitioning to elogind? Reply with quote

Just curious. I'm running KDE and OpenRC. I have no interest in migrating to systemd. Should I be transitioning to elogind as a replacement for something else (consolekit maybe)? I notice the elogind USE flag is enabled by default.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Fri Mar 22, 2019 3:32 pm    Post subject: Reply with quote

You can choose whether to use elogind or consolekit with OpenRC.
I think that elogind is active by default because you can use wayland session with it
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Fri Mar 22, 2019 3:36 pm    Post subject: Reply with quote

Thank you, that link cleared it up. Appreciate the help.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Mar 22, 2019 4:45 pm    Post subject: Reply with quote

Well. xorg-server would have ideally waited with default-enabling elogind for the day that we make the transition with desktop profile.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Fri Mar 22, 2019 6:12 pm    Post subject: Reply with quote

asturm wrote:
Well. xorg-server would have ideally waited with default-enabling elogind for the day that we make the transition with desktop profile.
I got an update today where xorg-server is enforcing +elogind. What's up with that? Is it left hand not talking to right hand?
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 467
Location: New Mexico

PostPosted: Fri Mar 22, 2019 7:19 pm    Post subject: Reply with quote

Apparently I can't use X without elogind and dbus. Why must I use stuff from the systemd[umb] people?
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Fri Mar 22, 2019 7:32 pm    Post subject: Reply with quote

Just checking on my system, there isn't any reason why you can't disable that use flag, it is only defaulted to be enabled not forced (forced/masked use flags will be in ()'s ). Though I noticed it seems the devs are trying again to break the systems, by getting rid of suid on it all over (didn't remove the USE flag, more of default to off)...
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 467
Location: New Mexico

PostPosted: Fri Mar 22, 2019 8:02 pm    Post subject: Reply with quote

ct85711 wrote:
Just checking on my system, there isn't any reason why you can't disable that use flag, it is only defaulted to be enabled not forced (forced/masked use flags will be in ()'s ). Though I noticed it seems the devs are trying again to break the systems, by getting rid of suid on it all over (didn't remove the USE flag, more of default to off)...


Lol, that's what I tried, e.g. setting -elogind in make.conf. Then allowed the monster rebuild of 67 packages.

$ startx gave:
Code:
parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
in the log file

My trusty backup drive knows nothing about this. The way the "Internet" is going I prefer reading mail with [al]Pine and reading news with Lynx or w3m. ;)
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Mar 22, 2019 8:08 pm    Post subject: Reply with quote

wuzzerd wrote:
Why must I use stuff from the systemd[umb] people?

elogind upstream is a fellow Gentoo user.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1166
Location: /run/user/1000

PostPosted: Fri Mar 22, 2019 8:58 pm    Post subject: Reply with quote

So, if one doesn't use KDE / GNOME / Wayland why the must use ?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Mar 22, 2019 9:00 pm    Post subject: Reply with quote

There is no must use. It is a USE use. It is currently just default enabled in an ~arch version of xorg-server, which is currently debated about.

It is not about Plasma and Gnome alone though; I believe it is the only option going forward with Cinnamon/Mate (or what they are called) as well if you want to avoid systemd. And consolekit seems to be pretty much dead.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1166
Location: /run/user/1000

PostPosted: Fri Mar 22, 2019 9:47 pm    Post subject: Reply with quote

Ah ok, I was reading earlier someone said xorg is enforcing it.
I'll check it out soon myself.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Fri Mar 22, 2019 10:13 pm    Post subject: Reply with quote

My bad. Its not enforced but default on. So, if you have -elogind in make.conf, its all fine.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1166
Location: /run/user/1000

PostPosted: Fri Mar 22, 2019 10:16 pm    Post subject: Reply with quote

Well, reports are true, just found that out myself.
It's not enforced but it's default, problem is that with -elogind in make.conf xorg wouldn't start, permission denied.
Removing -elogind from make.conf and all is good.

So, I guess there's some work to be done here in order for -elogind to work.
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Fri Mar 22, 2019 11:54 pm    Post subject: Reply with quote

kajzer wrote:
So, I guess there's some work to be done here in order for -elogind to work.

For the record, per commits bdd4b33 and 3497dfa, the change that took place was: USE="elogind -suid".

So to rollback the changes, what you wanted was probably: USE="-elogind suid" (specifically for x11-base/xorg-server and not in make.conf).

Of course, as of commit a50bfd2 this is now moot.
_________________
Dantrell B.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1166
Location: /run/user/1000

PostPosted: Sat Mar 23, 2019 12:17 am    Post subject: Reply with quote

"-elogind suid" works.
Thanks!
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 467
Location: New Mexico

PostPosted: Sat Mar 23, 2019 2:24 am    Post subject: Reply with quote

Thanks, a50bfd2 came out when I wasn't looking and saved the day.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Sat Mar 23, 2019 6:22 am    Post subject: Reply with quote

Will consolekit be deprecated someday soon by favoring elogind?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sat Mar 23, 2019 10:04 am    Post subject: Reply with quote

apparently consolekit hasn't been maintained for a few years now...

https://www.freedesktop.org/wiki/Software/ConsoleKit/
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Sat Mar 23, 2019 10:24 am    Post subject: Reply with quote

The paint has been coming off of consolekit installs for a long time now. After the switch to elogind is made I will make no promises for keeping consolekit support in Plasma.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sat Mar 23, 2019 12:36 pm    Post subject: Reply with quote

bunder wrote:
apparently consolekit hasn't been maintained for a few years now...

https://www.freedesktop.org/wiki/Software/ConsoleKit/

Well, not as long ago as that Web page indicates, as it was forked in 2014 and is now referred to as ConsoleKit2:

https://github.com/ConsoleKit2/ConsoleKit2

It is the ConsoleKit2 package that is used in Gentoo, as can be seen in the sys-auth/consolekit ebuild:

Code:
$ head -n 15 /usr/portage/sys-auth/consolekit/consolekit-1.2.1.ebuild
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit autotools libtool linux-info pam xdg-utils

MY_PN=ConsoleKit2
MY_P=${MY_PN}-${PV}

DESCRIPTION="Framework for defining and tracking users, login sessions and seats"
HOMEPAGE="https://github.com/ConsoleKit2/ConsoleKit2 https://www.freedesktop.org/wiki/Software/ConsoleKit"
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"

So it has not been updated in only a year.

That said, even though my installations were working OK with OpenRC+Consolekit, I was forced to migrate from ConsoleKit to elogind anyway because I use Skype, which requires either systemd or OpenRC+elogind.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Mar 23, 2019 12:50 pm    Post subject: Reply with quote

Just to clarify, on today's sync I get: x11-base/xorg-server-1.20.4:0/1.20.4::gentoo USE="glamor ipv6 suid udev xorg -debug -dmx -doc -elogind% -kdrive -libressl -minimal (-selinux) -static-libs -sys -wayland -xcsecurity -xephyr -xnest -xvfb" 0 KiB

Total: 66 packages (15 upgrades, 51 reinstalls), Size of downloads: 165,707 KiB along with the rebuilds now showing the (-python3_4%) USE flag.

It seems that xorg-server already has both -elogind% and suid set. So- am I good to go? What's my future consolekit status on my ~amd64 KDE and OpenRC systems? Some of the above posts seemed a bit contradictory and confusing- am I just missing something? I'm on default/linux/amd64/17.0/desktop/plasma profile.

https://wiki.gentoo.org/wiki/KDE#Session_tracker helped my understanding somewhat. Will there be an eselect news item for this, or an announcement when and if we must move to elogin and/or/ drop consolekit?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
nick_gentoo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2019
Posts: 140

PostPosted: Sat Mar 23, 2019 1:02 pm    Post subject: Reply with quote

wrc1944 wrote:
Some of the above posts seemed a bit contradictory and confusing- am I just missing something? I'm on default/linux/amd64/17.0/desktop/plasma profile.

The elogind and -suid flags were briefly set on xorg-server and were later on reverted. Some people synced after the initial changes and before the revert, and this triggered some updates and raised the question of the initial post.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Mar 23, 2019 1:15 pm    Post subject: Reply with quote

Thanks nick_gentoo,
That explains much in my case. What's the consensus about ~amd64 kde users just moving to elogind as explained here? https://wiki.gentoo.org/wiki/Elogind

Any reason or pitfalls not to do so, such as booting problems, etc.? Any estimates on when we will have to adopt elogind?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sat Mar 23, 2019 2:01 pm    Post subject: Reply with quote

wrc1944 wrote:
Any reason or pitfalls not to do so, such as booting problems, etc.?

The only difference I have noticed on my two laptops running KDE under Gentoo (amd64 and ~amd64, respectively) is explained in the following post: https://forums.gentoo.org/viewtopic-p-8267346.html#8267346
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum