Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395409 - virtual/dev-manager-0: emerge --depclean tries to unmerge sys-fs/udev when sys-apps/busybox[mdev] is installed
Summary: virtual/dev-manager-0: emerge --depclean tries to unmerge sys-fs/udev when sy...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: AMD64 Linux
: Normal critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 395319 395427
Blocks:
  Show dependency tree
 
Reported: 2011-12-20 20:50 UTC by Grzegorz {NineX} Krzystek
Modified: 2011-12-20 23:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz {NineX} Krzystek 2011-12-20 20:50:03 UTC
emerge --depclean
!!! 'sys-fs/udev' (virtual/dev-manager) is part of your system profile.
!!! Unmerging it may be damaging to your system.

after udev unmerge system can't boot anymore due no static dev files in my system

Reproducible: Always

Actual Results:  
emerge -n sys-fs/udev (add to world file) fixes problem


ks388000 distfiles # emerge --info
Portage 2.1.10.41 (hardened/linux/amd64, gcc-4.5.3, glibc-2.13-r4, 2.6.38.2-grsec-xxxx-grs-ipv6-64 x86_64)
=================================================================
System uname: Linux-2.6.38.2-grsec-xxxx-grs-ipv6-64-x86_64-Intel-R-_Core-TM-_i5-2300_CPU_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 20 Dec 2011 20:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-ninex
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles metadata-transfer multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/ninex"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl aio amd64 apache2 bash-completion bcmath berkdb bzip2 cairo calendar caps cli context crypt cscope cups curl curlwrappers cxx detex discard-path dkim dovecot-sasl dri dvi2tty dvipdfm exif extra flac flatfile fontconfig force-cgi-redirect ftp gadu games gd gif gmp gnutls gpm graphics hardened humanities iconv icu idn imap intl ipv6 irc ithreads jabber jadetex jpeg jpeg2k justify kpathsea latex latex3 libwww logrotate lua luatex lzma mad mail mhash mmx modules mp3 mudflap multilib music mysql mysqli mysqlnd ncurses netlink network-cron nls nptl nptlonly omega opengl openmp pam pax_kernel pcntl pcre pdo perl plotutils png pppd pstricks publishers python readline reflection science session slang smp sockets spamassassin spell spl sqlite sqlite3 sse sse2 ssl suhosin svg symlink sysfs sysvipc tcpd tex4ht tidy tiff truetype udev unicode urandom vhosts vim-pager vim-syntax vorbis wddx xattr xetex xml xmlreader xmlrpc xmlwriter xmpp xorg xpm xsl zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 deflate dir env expires filter headers log_config mime mime_magic rewrite setenvif unique_id userdir vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2011-12-20 20:55:10 UTC
The virtual/dev-manager dependencies look like this:

 || ( sys-fs/udev sys-fs/devfsd sys-fs/static-dev sys-freebsd/freebsd-sbin )

Do you have another one of those installed, such as sys-fs/devfsd or sys-fs/static-dev? If so, then this behavior is expected.
Comment 2 Grzegorz {NineX} Krzystek 2011-12-20 21:06:33 UTC
(In reply to comment #1)
> The virtual/dev-manager dependencies look like this:
> 
>  || ( sys-fs/udev sys-fs/devfsd sys-fs/static-dev sys-freebsd/freebsd-sbin )
> 
> Do you have another one of those installed, such as sys-fs/devfsd or
> sys-fs/static-dev? If so, then this behavior is expected.

sys-apps/busybox-1.19.0 have IUSE="... +mdev"


ninex@ks388000:~$ cat /usr/portage/virtual/dev-manager/dev-manager-0.ebuild 
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/virtual/dev-manager/dev-manager-0.ebuild,v 1.2 2011/12/20 15:55:18 vapier Exp $

EAPI="2"

DESCRIPTION="Virtual for the device filesystem manager"

SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""

DEPEND=""
RDEPEND="|| (
                sys-apps/busybox[mdev]
                sys-fs/udev
                sys-fs/devfsd
                sys-fs/static-dev
                sys-freebsd/freebsd-sbin
        )"



it is dangerous ;P
Comment 3 Grzegorz {NineX} Krzystek 2011-12-20 21:08:35 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > The virtual/dev-manager dependencies look like this:
> > 
> >  || ( sys-fs/udev sys-fs/devfsd sys-fs/static-dev sys-freebsd/freebsd-sbin )
> > 
> > Do you have another one of those installed, such as sys-fs/devfsd or
> > sys-fs/static-dev? If so, then this behavior is expected.
> 
> sys-apps/busybox-1.19.0 have IUSE="... +mdev"
> 
> 
> ninex@ks388000:~$ cat /usr/portage/virtual/dev-manager/dev-manager-0.ebuild 
> # Copyright 1999-2011 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
> # $Header: /var/cvsroot/gentoo-x86/virtual/dev-manager/dev-manager-0.ebuild,v
> 1.2 2011/12/20 15:55:18 vapier Exp $
> 
> EAPI="2"
> 
> DESCRIPTION="Virtual for the device filesystem manager"
> 
> SLOT="0"
> KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86
> ~sparc-fbsd ~x86-fbsd"
> IUSE=""
> 
> DEPEND=""
> RDEPEND="|| (
>                 sys-apps/busybox[mdev]
>                 sys-fs/udev
>                 sys-fs/devfsd
>                 sys-fs/static-dev
>                 sys-freebsd/freebsd-sbin
>         )"
> 
> 
> 
> it is dangerous ;P

added -mdev my USE reemerged busybox, that solved problem
look at #395319
Comment 4 Zac Medico gentoo-dev 2011-12-20 22:51:08 UTC
Since portage behaves as it's supposed to, given the sys-apps/busybox[mdev] choice in virtual/dev-manager (bug #395319), this bug belongs to base-system since they maintain the virtual.
Comment 5 Ben Kohler gentoo-dev 2011-12-20 23:07:46 UTC
This is big.  Current stable systems all have udev eligible for depclean right now.
Comment 6 SpanKY gentoo-dev 2011-12-20 23:49:54 UTC
i've dropped IUSE=+mdev for all busybox ebuilds, and moved udev to first in the ||() list in the dev-manager virtual

otherwise, if a user has manually built busybox with USE=mdev, then it does satisfy the virtual/dev-manager dependency which means udev could be removed

whether the user wants that behavior is up to them