Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED gnome3 systemd udev and many other things
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Tue Aug 06, 2013 6:54 pm    Post subject: SOLVED gnome3 systemd udev and many other things Reply with quote

SOLVED for me. Read my last post in this thread for some tips that may or may not help.


Got a new Lenovo Yoga 11s. Nice. Started to put gentoo on. Took me a couple of days to get uefi stuff to work. Another couple to get wifi. No ethernet. After that I install X. Install twm and xterm to check - no problems.

Next gnome3:
root@go:emerge gnome3

After a few package.use edits:

Code:
...
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-206, sys-auth/consolekit-0.4.6)

Total: 404 packages (1 upgrade, 388 new, 12 in new slots, 3 reinstalls, 1 uninstall), Size of downloads: 621,442 kB
Conflict: 2 blocks (1 unsatisfied)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-auth/pambase:0

  (sys-auth/pambase-20120417-r2::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (sys-auth/pambase-20120417-r2::gentoo, ebuild scheduled for merge) pulled in by
    sys-auth/pambase[consolekit] required by (sys-auth/polkit-0.111::gentoo, ebuild scheduled for merge)
    sys-auth/pambase[systemd] required by (gnome-base/gdm-3.8.4::gentoo, ebuild scheduled for merge)

dev-util/gtk-doc-am:0

  (dev-util/gtk-doc-am-1.18::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-util/gtk-doc-am-1.19::gentoo, ebuild scheduled for merge) pulled in by
    ~dev-util/gtk-doc-am-1.19 required by (dev-util/gtk-doc-1.19::gentoo, ebuild scheduled for merge)

virtual/udev:0

  (virtual/udev-206::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (virtual/udev-206::gentoo, ebuild scheduled for merge) pulled in by
    >=virtual/udev-143[hwdb] required by (media-sound/pulseaudio-4.0::gentoo, ebuild scheduled for merge)
    >=virtual/udev-197[gudev,hwdb] required by (sys-fs/udisks-1.0.4-r5::gentoo, ebuild scheduled for merge)
    >=virtual/udev-197[gudev,hwdb] required by (sys-fs/udisks-2.1.0::gentoo, ebuild scheduled for merge)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/systemd-206-r1::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-apps/systemd-206[gudev?,introspection?,kmod?,selinux?,static-libs(-)?] (>=sys-apps/systemd-206[gudev,introspection,kmod]) required by (virtual/udev-206::gentoo, ebuild scheduled for merge)
    sys-apps/systemd required by (gnome-base/gnome-settings-daemon-3.8.4::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-31 required by (gnome-base/gnome-control-center-3.8.4.1-r1::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-183 required by (net-misc/networkmanager-0.9.8.2-r3::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-186 required by (sys-apps/accountsservice-0.6.34::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-44-r1[pam] required by (sys-auth/pambase-20120417-r2::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-31 required by (gnome-base/gnome-shell-3.8.4::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-183 required by (gnome-base/gnome-session-3.8.4::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-186[pam] required by (gnome-base/gdm-3.8.4::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-39 required by (media-sound/pulseaudio-4.0::gentoo, ebuild scheduled for merge)
    sys-apps/systemd required by (gnome-base/gvfs-1.16.3::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-38 required by (gnome-extra/gnome-system-monitor-3.8.2.1::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-44 required by (x11-misc/colord-0.1.34::gentoo, ebuild scheduled for merge)
    sys-apps/systemd required by (virtual/service-manager-0::gentoo, installed)
    >=sys-apps/systemd-200 required by (sys-power/upower-0.9.21::gentoo, ebuild scheduled for merge)
    >=sys-apps/systemd-206[gudev?,introspection?,kmod?,selinux?,static-libs(-)?] (>=sys-apps/systemd-206[gudev,introspection,kmod]) required by (virtual/udev-206::gentoo, installed)
    >=sys-apps/systemd-197 required by (sys-fs/udisks-2.1.0::gentoo, ebuild scheduled for merge)

  (sys-auth/consolekit-0.4.6::gentoo, ebuild scheduled for merge) pulled in by
    sys-auth/consolekit required by (net-misc/networkmanager-0.9.8.2-r3::gentoo, ebuild scheduled for merge)
    sys-auth/consolekit required by (net-wireless/bluez-4.101-r5::gentoo, ebuild scheduled for merge)
    >=sys-auth/consolekit-0.4.5_p2012[pam] required by (sys-auth/pambase-20120417-r2::gentoo, ebuild scheduled for merge)
    sys-auth/consolekit[policykit] required by (sys-auth/polkit-0.111::gentoo, ebuild scheduled for merge)
...


Lots of stuff cut from top and bottom, about 400 lines. I can post the whole thing somewhere but I am not familiar with how to do it.

My make.conf
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

#USE="X acpi also avahi bluetooth consolekit dbus fuse jpeg pam png\
#     sound udev upcall usb\
#     bindist mmx sse sse2 mmxext"

USE="X acpi alsa avahi bluetooth consolekit -cups dbus dhcpcd ffmpeg\
     fuse gdu gnome gstreamer gtk gtk3 gudev -hpcups hwdb\
     introspection laptop\
     jpeg libkms (multilib) -mtp -musicbrainz pam png policykit\
     -pulseaudio resolvconf -samba sendto sound systemd udev udisks\
     upower usb -kde -qt4\
     vala -xinerama\
     bindist mmx mmxext sse sse2\
     -gdm"

ACCEPT_KEYWORDS="~amd64"

#GENTOO_MIRRORS="rsync://mirror.mcs.anl.gov/gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo http://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
GENTOO_MIRRORS="http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"

VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics"


systemd is not installed. I would like to use it though. systemd and udev block each other no matter what I try.

I have consulted the forums and systemd wiki. The gentoo handbook was mostly silent about systemd if not completely silent. The "Gnome Configuration Howto" was completely silent about systemd. The systemd wiki seemed to be about a new install and not a replacement of udev etc.

As always I can post more informations as necessary.

Help appreciated.

Thanks

Gene


Last edited by imesg on Thu Aug 08, 2013 6:09 am; edited 1 time in total
Back to top
View user's profile Send private message
aim nano
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2006
Posts: 131
Location: Jackson, MS

PostPosted: Tue Aug 06, 2013 8:29 pm    Post subject: Reply with quote

Quote:
Lots of stuff cut from top and bottom, about 400 lines. I can post the whole thing somewhere but I am not familiar with how to do it.


To post the whole thing:

Code:
emerge wgetpaste


then:

Code:
emerge -avp gnome3 | wgetpaste


or

Code:
cat /etc/portage/make.conf | wgetpaste


You might also try:

Code:
emerge -ask --backtrack=30 gnome3


as suggested:

Quote:
You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.


From the emerge manpage:

Quote:
--backtrack=COUNT
Specifies an integer number of times to backtrack if dependency calculation fails due to a conflict or an unsatisfied dependency (default: '10').

_________________
Unanswered posts need love too.
--
~ # emerge -pv gentoo-love
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Tue Aug 06, 2013 9:22 pm    Post subject: Reply with quote

aim nano wrote:
Quote:
Lots of stuff cut from top and bottom, about 400 lines. I can post the whole thing somewhere but I am not familiar with how to do it.


To post the whole thing:

Code:
emerge wgetpaste




emerge output http://bpaste.net/show120596

make.conf http://bpaste.net/show/120597

backtrack=30 gave the same output.

Thanks for the help aim nano

Gene
Back to top
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 565
Location: münchen.de

PostPosted: Tue Aug 06, 2013 10:02 pm    Post subject: Reply with quote

Systemd uses a consolekit replacement called logind. So you have to remove the consolekit use flag from your make.conf

And take a look at the Gentoo Wiki Systemd page.
Quote:
It is necessary to install sys-apps/systemd before enabling the flag. Otherwise, circular dependencies will prevent Portage from continuing


First install systemd, then add the systemd use flag, then update world.
_________________
# cd /pub/
# more beer
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Wed Aug 07, 2013 8:51 pm    Post subject: Reply with quote

[quote="forrestfunk81"]
Quote:
Systemd uses a consolekit replacement called logind. So you have to remove the consolekit use flag from your make.conf


Ok. Tried this. No workee. Same result as before.

Quote:
And take a look at the Gentoo Wiki Systemd page.

Quote:
It is necessary to install sys-apps/systemd before enabling the flag. Otherwise, circular dependencies will prevent Portage from continuing


Read this first thing. Unable to install systemd.

Quote:
First install systemd, then add the systemd use flag, then update world.


Unable to install systemd.

Thanks for the reply but I need more clues.

Gene
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Thu Aug 08, 2013 12:14 am    Post subject: Reply with quote

imesg wrote:
aim nano wrote:
Quote:
Lots of stuff cut from top and bottom, about 400 lines. I can post the whole thing somewhere but I am not familiar with how to do it.


To post the whole thing:

Code:
emerge wgetpaste




emerge output http://bpaste.net/show120596

make.conf http://bpaste.net/show/120597

backtrack=30 gave the same output.

Thanks for the help aim nano

Gene



OK, got something a little bit more managable. Did an emerge -vuDN world. Then emerge systemd:

Code:
Calculating dependencies  ... done!
[ebuild  NS    ] app-text/docbook-xml-dtd-4.2-r2 [4.1.2-r6]
[ebuild  N     ] sys-apps/systemd-206-r1  USE="acl filecaps firmware-loader gudev introspection kmod pam policykit tcpd -audit -cryptsetup -doc -gcrypt -http -lzma -openrc -python -qrcode (-selinux) {-test} -vanilla -xattr" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"
[uninstall     ] sys-fs/udev-206
[blocks b      ] sys-fs/udev ("sys-fs/udev" is blocking sys-apps/systemd-206-r1)
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is blocking sys-fs/udev-206, sys-auth/consolekit-0.4.6)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/systemd-206-r1::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/systemd required by (virtual/service-manager-0::gentoo, installed)
    systemd
    >=sys-apps/systemd-206[gudev?,introspection?,kmod?,selinux?,static-libs(-)?] (>=sys-apps/systemd-206[gudev,introspection,kmod]) required by (virtual/udev-206::gentoo, installed)

  (sys-auth/consolekit-0.4.6::gentoo, installed) pulled in by
    >=sys-auth/consolekit-0.4.5_p2012[pam] required by (sys-auth/pambase-20120417-r2::gentoo, installed)
    sys-auth/consolekit[policykit] required by (sys-auth/polkit-0.111::gentoo, installed)


make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

#USE="X acpi also avahi bluetooth consolekit dbus fuse jpeg pam png\
#     sound udev upcall usb\
#     bindist mmx sse sse2 mmxext"

USE="X acpi alsa avahi bluetooth -cups dbus dhcpcd ffmpeg\
     fuse gdu gnome gstreamer gtk gtk3 gudev -hpcups hwdb\
     introspection laptop\
     jpeg libkms (multilib) -mtp -musicbrainz pam png policykit\
     -pulseaudio resolvconf -samba sendto sound udev udisks\
     upower usb -kde -qt4\
     vala -xinerama\
     bindist mmx mmxext sse sse2\
     -gdm"

#experimentally removed or added
#consolekit systemd

ACCEPT_KEYWORDS="~amd64"

#GENTOO_MIRRORS="rsync://mirror.mcs.anl.gov/gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo http://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
GENTOO_MIRRORS="http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"

VIDEO_CARDS="intel"
INPUT_DEVICES="evdev synaptics"


Still need advice about what to do next.

Thanks,

Gene
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Thu Aug 08, 2013 1:02 am    Post subject: Reply with quote

The [blocks B ] part of your output says that systemd cannot be installed on the same system as udev. You must choose one or the other. To choose udev, use emerge -C udev and then use emerge -1av systemd
since systemd should not go in your world file. It is of the utmost importance you don't reboot without one or the other installed. The results would be rather unfortunate.

You may find this enlightening
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Thu Aug 08, 2013 2:22 am    Post subject: Reply with quote

The Doctor wrote:
The [blocks B ] part of your output says that systemd cannot be installed on the same system as udev. You must choose one or the other. To choose udev, use emerge -C udev and then use emerge -1av systemd
since systemd should not go in your world file. It is of the utmost importance you don't reboot without one or the other installed. The results would be rather unfortunate.

You may find this enlightening


Thanks for addressing my problem "The Doctor". I am leary of emerge -C udev with all of that stuff underneath about consolekit etc. If I emerge -C udev will the emerge systemd work afterwards? I am not sure what the systemd and consolekit stuff means.

Thanks,

Gene
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Thu Aug 08, 2013 4:59 am    Post subject: Reply with quote

Yes, in this case it is safe, but you are quite correct to be wary of using emerge -C on anything you didn't install. Indeed, emerge -c is safer for any purpose since it will not break your system. However, in this case you do need to break it before you can fix it.

udev doesn't actually do anything important once you system is running. What it does do is populate /dev when you boot up. It also manages anything you need to hotplug, a usb stick or cdrom say. When you remove it you will remove the ability to do this, however nothing else really needs udev to work. python and gcc will continue to function so you can emerge systemd. If that fails, you can always restore udev to try another day.

consolkit is something I don't really understand but it doesn't seem to critical to anything important since it can be removed at compile time.

To translate you output: the package pambase requires consolkit built with the pam use flag active. Consolekit with policykit is required by polkit.

You may need to do some acrobatics regarding pam, but I *think* it should self resolve. If it doesn't , try removing the consolkit use flag from pambase and reinstalling it. If that is innsuficient, it may work to add the systemd use flag to pambase and polkit. That would change them at the same time. If you still get complaints, it should then be safe to emerge -C consolkit, but you may want to have rescue media standing by. Messing with pam is important for authentication and if I am wrong it could leave you locked out of your system. The good news is that if you chroot in you would be able to fix everything by emerging systemd and updating world.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Thu Aug 08, 2013 5:09 am    Post subject: Reply with quote

consolkit? I bet you mean consolekit :wink:

I'm interested in this topic 'cos I'd like to use systemd too but I'm a dumbass so I am scared as hell :oops:
_________________
cogito ergo sum
Back to top
View user's profile Send private message
imesg
Guru
Guru


Joined: 12 Jul 2002
Posts: 444

PostPosted: Thu Aug 08, 2013 6:06 am    Post subject: Reply with quote

OK, I have systemd installed. My problem was a failure to run "emerge -uvND world" before starting an systemd install. After I did that I got down to some small problems mostly because I had not done the "emerger -uvNd world" and experimented with several different USE flags in package.use and make.conf that needed undoing. After I got that all figured systemd installed.

Thanks "The Doctor" for encourageing the "emerge -C udev" this was a worrisome prospect. But it went OK.

I am booting efi kernels with the command line set at 'Processor type and features -> Built-in kernel command string'. Do not use quotes in this string, it wil not work.

Thanks all,

Gene
Back to top
View user's profile Send private message
aim nano
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2006
Posts: 131
Location: Jackson, MS

PostPosted: Thu Sep 05, 2013 3:43 pm    Post subject: Reply with quote

I'm about to make the jump to systemd hyperspace on one of my boxes too. I will post back later with results.
_________________
Unanswered posts need love too.
--
~ # emerge -pv gentoo-love
Back to top
View user's profile Send private message
aim nano
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2006
Posts: 131
Location: Jackson, MS

PostPosted: Tue Sep 10, 2013 5:51 am    Post subject: Reply with quote

I am proceeding per: http://wiki.gentoo.org/wiki/Systemd

First curiosity was that when I

Quote:
emerge --ask systemd


Portage seemed to complain about the udev block. The blocks were highlighted in blue, but portage allowed me to continue merging...and simply unmerged udev automatically.

systemd threw a warning as well: CONFIG_HOTPLUG: is not set when it should be.
but am ignoring it for now.

Next up: initramfs.
_________________
Unanswered posts need love too.
--
~ # emerge -pv gentoo-love
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
Page 1 of 1

 
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