Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410577 - sys-apps/systemd-sysv-utils is not installable with default profiles
Summary: sys-apps/systemd-sysv-utils is not installable with default profiles
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
Keywords: PMASKED
Depends on:
  Show dependency tree
Reported: 2012-04-02 15:21 UTC by Hristo Venev
Modified: 2015-04-24 19:58 UTC (History)
7 users (show)

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

emerge --info (,18.94 KB, application/x-info)
2014-04-23 09:15 UTC, Vincent-Xavier JUMEL

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Venev 2012-04-02 15:21:15 UTC
The package sys-apps/systemd-sysv-utils cannot exist because it depends on sys-apps/systemd, which depends on sys-apps/sysvinit, which blocks sys-apps/systemd-sysv-utils. As far as I know this is an ebuild bug so emerge --info would be irrelevant.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-02 18:57:55 UTC
1) Please post your `emerge --info' output in a comment next time, even if you /think/ you don't need to.
2) Note that sys-apps/systemd-sysv-utils is package.masked:

# Michał Górny <> (21 Jan 2012)
# Blocks sysvinit yet doesn't provide all tools provided by it.
# Masking until we get the necessary tools out of sysvinit.

Looks all proper to me.
Comment 2 Juergen Rose 2014-03-16 05:47:07 UTC
It seems. that I have the same issue:
root@condor:/usr/local/portage/sci-biology/emboss(94)# emerge -p --update --newuse --deep --with-bdeps=y --exclude gammu @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] app-portage/portage-utils-0.52 [0.51]
[ebuild     U  ] dev-perl/set-scalar-1.280.0 [1.260.0]
[ebuild     U  ] dev-python/pytz-2014.1 [2013.9]
[ebuild     U  ] dev-python/paramiko-1.13.0 [1.12.2]
[ebuild  N     ] dev-java/jgraph-  USE="doc examples -source" 
[ebuild  N     ] dev-java/microba-0.4.4  USE="doc -source" 
[ebuild   R    ] dev-ruby/rubygems-2.0.14  RUBY_TARGETS="-ruby18*" 
[ebuild  N     ] sys-apps/systemd-sysv-utils-208 
[ebuild     U  ] app-text/jabref-2.10-r1 [2.10]
[ebuild     U  ] net-libs/libnfsidmap-0.25-r1 [0.25]
[ebuild     U  ] dev-tex/pgf-3.0.0 [2.10]
[ebuild     U  ] dev-python/six-1.6.1 [1.5.2]
[ebuild     U  ] dev-python/cryptography-0.2.2 [0.2.1]
[ebuild     U  ] app-crypt/seahorse-3.10.2-r1 [3.10.2]
[ebuild     U  ] sys-auth/polkit-0.112-r2 [0.112-r1] USE="-jit%" 
[ebuild     U  ] kde-base/kdm-4.11.7-r1 [4.11.7]
[ebuild   R    ] xfce-base/xfce4-session-4.10.1-r1  USE="nls%*" 
[ebuild     U  ] gnome-base/gnome-shell-3.10.4-r1 [3.10.4]
[ebuild   R    ] dev-ruby/rdoc-4.0.1-r2  RUBY_TARGETS="-ruby18*" 
[ebuild   R    ] dev-ruby/rake-0.9.6-r1  RUBY_TARGETS="-ruby18*" 
[ebuild   R    ] dev-ruby/json-1.8.1  RUBY_TARGETS="-ruby18*" 
[ebuild   R    ] dev-ruby/racc-1.4.11  RUBY_TARGETS="-ruby18*" 
[ebuild   R    ] dev-ruby/builder-3.2.2  RUBY_TARGETS="ruby20* -ruby18*" 
[blocks B      ] sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd-sysv-utils-208)

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

  (sys-apps/sysvinit-2.88-r7::gentoo, installed) pulled in by
    >=sys-apps/sysvinit-2.86-r6 required by (sys-apps/openrc-0.12.4::gentoo, installed)

  (sys-apps/systemd-sysv-utils-208::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/systemd-sysv-utils required by (kde-base/kdm-4.11.7-r1::gentoo, ebuild scheduled for merge)

root@condor:/usr/local/portage/sci-biology/emboss(95)# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.18-r1, 3.13.5-gentoo x86_64)
System uname: Linux-3.13.5-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.2
KiB Mem:     7069616 total,    830164 free
KiB Swap:   50347696 total,  50311348 free
Timestamp of tree: Sun, 16 Mar 2014 05:00:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.4
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo x11 science sunrise lordvan local g-cpan g-octave
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype- googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/lordvan /usr/local/portage /var/lib/cpan /var/lib/g-octave"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate lirc live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl ssse3 startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode upower usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid syslog" DVB_CARDS="tda10045 tda10046lifeview" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" 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"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-03-16 08:17:37 UTC
systemd requires new enough util-linux OR sysvinit. I'd appreciate if you read the ebuild OR updated @world before reporting bugs.
Comment 4 Mike Gilbert gentoo-dev 2014-03-16 14:08:20 UTC
(In reply to Michał Górny from comment #3)

His issue was caused by an odd dep that the KDE team added to kdm. It has since been reverted.
Comment 5 Vincent-Xavier JUMEL 2014-04-23 09:15:53 UTC
Created attachment 375526 [details]
emerge --info
Comment 6 Vincent-Xavier JUMEL 2014-04-23 09:16:43 UTC
I've read the ebuild and I still don't understand why :

zsh/2 1192 % sudo emerge -uDN --with-bdeps=y --exclude calibre @world

These are the packages that would be merged, in order:

Calculating dependencies          ... done!                  
[ebuild  N     ] sys-apps/sysvinit-2.88-r7  USE="(-ibm) (-selinux) -static" 0 kB
[ebuild  N     ] sys-apps/openrc-0.12.4  USE="ncurses pam static-libs tools unicode -debug -netifrc -newnet (-prefix) (-selinux)" 0 kB
[blocks B      ] sys-apps/sysvinit ("sys-apps/sysvinit" is blocking sys-apps/systemd-sysv-utils-212)

Total: 2 packages (2 new), Size of downloads: 0 kB
Conflict: 1 block (1 unsatisfied)

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

  (sys-apps/systemd-sysv-utils-212:0/0::gentoo, installed) pulled in by
    sys-apps/systemd-sysv-utils required by @selected

  (sys-apps/sysvinit-2.88-r7:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-apps/sysvinit-2.86-r6 required by (sys-apps/openrc-0.12.4:0/0::gentoo, ebuild scheduled for merge)

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
Comment 7 Mike Gilbert gentoo-dev 2014-04-23 19:42:06 UTC
(In reply to Vincent-Xavier JUMEL from comment #6)

sys-apps/openrc has since been added to the "system set". You would need to remove it from the system set to be able to install systemd-sysv-utils.

mkdir -p /etc/portage/profile
echo "-*sys-apps/openrc" >> /etc/portage/profile/packages

Note that this will break utilities like binutils-config and gcc-config. As a workaround, you can symlink /etc/init.d/ to /lib/gentoo/
Comment 8 Vincent-Xavier JUMEL 2014-04-28 19:04:36 UTC
Comment 9 Hristo Venev 2014-04-29 06:52:49 UTC
$ qlist -ICv | grep -E 'openrc|systemd-sysv-utils'
Comment 10 Vincent-Xavier JUMEL 2014-04-29 21:13:50 UTC
(In reply to Hristo Venev from comment #9)
> $ qlist -ICv | grep -E 'openrc|systemd-sysv-utils'
> sys-apps/openrc-0.12.4
> sys-apps/systemd-sysv-utils-212

How do you get this ?
Comment 11 Hristo Venev 2014-05-01 13:45:21 UTC
sys-apps/openrc and sys-apps/systemd-sysv-utils can be installed at the same time. This problem has NOTHING to do with sys-apps/openrc. I have no idea why anyone would say anything about sys-apps/openrc

sys-apps/sysvinit blocks sys-apps/systemd-sysv-utils and is a dependency of a package in @system. The solution: package.provided.

Without using package.provided sys-apps/systemd-sysv-utils still cannot be installed. There are two possible solutions:
1. Remove all dependencies on sys-apps/sysvinit from packages in (or (in?)direct dependencies of packages in) @system.
2. Remove sys-apps/systemd-sysv-utils

Removing sys-apps/openrc from @system is not a solution because sys-devel/gcc-config and sys-devel/binutils-config (which are also dependencies of packages in @system) depend on it and sys-apps/sysvinit will still be required by indirect dependencies of packages in @system.

A package that can never be installed without modifying the profile shouldn't exist (at least not in the main portage tree).
Comment 12 Mike Gilbert gentoo-dev 2014-05-01 18:01:22 UTC
As far as I know, the only thing in @system that depends on sysvinit is openrc. What other packages depend on sysvinit on your system?
Comment 13 Mike Gilbert gentoo-dev 2014-05-01 18:12:58 UTC
(In reply to Hristo Venev from comment #11)
> sys-apps/openrc and sys-apps/systemd-sysv-utils can be installed at the same
> time. This problem has NOTHING to do with sys-apps/openrc. I have no idea
> why anyone would say anything about sys-apps/openrc

Have you tried booting openrc without sysvinit installed?

openrc depends on sysvinit, and this dependency cannot be removed. sysvinit blocks systemd-sysv-utils. Therefore, there is no way to have openrc and systemd-sysv-utils installed at the same time without hacking the dependency graph using package.provided.

The current system set pulls in openrc, and by extension sysvinit.

openrc may be removed from the system set once bug 504116 is resolved.
Comment 14 josef.95 2014-05-26 10:30:54 UTC
Hm no, openrc has no hard dependency on sysvinit

from the openrc-0.12.4.ebuild
        !prefix? (
                kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
                kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )

You can unmerge sysvinit and install sys-process/runit

emerge -pvq openrc systemd-sysv-utils
[ebuild   R   ] sys-apps/systemd-sysv-utils-212 
[ebuild   R   ] sys-apps/openrc-0.12.4  USE="ncurses pam unicode -debug -netifrc -newnet (-prefix) (-selinux) -static-libs -tools"

installed without hacking in package.provided
This works fine with systemd and systemd-sysv-utils :)
Comment 15 Alex Xu (Hello71) 2014-07-30 19:02:02 UTC
so this is INVALID?
Comment 16 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2014-08-16 09:25:16 UTC
(In reply to josef.95 from comment #14)
> You can unmerge sysvinit and install sys-process/runit

I confirm this works. Can we stabilize sys-apps/systemd-sysv-utils? Please see bug #520036 .
Comment 17 Mike Gilbert gentoo-dev 2014-08-16 15:37:12 UTC
(In reply to Paweł Hajdan, Jr. from comment #16)
> (In reply to josef.95 from comment #14)
> > You can unmerge sysvinit and install sys-process/runit
> I confirm this works. Can we stabilize sys-apps/systemd-sysv-utils? Please
> see bug #520036 .

That's rather hacky; it seems strange to have people install another alternate init provider just so that they can symlink /sbin/halt to systemctl.

Regardless, I don't think this bug should block stabilization.