Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48715

Summary: No packages depend on modutils
Product: Portage Development Reporter: Mike F <gentoo>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike F 2004-04-22 13:12:35 UTC
'emerge -av depclean' wants to remove modutils.  'qpkg -I -q modutils' shows that no packages depend on modutils.

Given that modutils is a core package for virtually all systems (with the exception of those not using kernel modules), shouldn't it be a package that cannot be removed?
Comment 1 SpanKY gentoo-dev 2004-04-23 18:59:31 UTC
no, depclean shouldnt clean stuff in the system profile
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-04-23 19:11:12 UTC
My guess is that the system in question is running a 2.6 kernel and sys-apps/module-init-tools is the default provider of virtual/modutils. --depclean does take into account system packages, but the system package is "virtual/modutils" so it is happy to clean away sys-apps/modutils. Personally, I think this is correct behaviour.
Comment 3 SpanKY gentoo-dev 2004-04-23 19:27:40 UTC
could you provide `emerge info` Mike F like the bug reporting page says to ?
Comment 4 Mike F 2004-04-24 09:13:22 UTC
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo)=================================================================
System uname: 2.4.25-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm avi berkdb crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline slang spell ssl tcpd truetype x86 xml2 xmms xv zlib"
 
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-04-24 18:48:27 UTC
Can you also please give the output of "emerge -p virtual/modutils"?
Comment 6 Mike F 2004-04-25 14:43:30 UTC
It is now:

[ebuild   R   ] sys-apps/module-init-tools-3.0

I let 'emerge depclean' do it's thing since I filed the bug (thinking that maybe my system was somehow messed up).

Previous to that, it was modutils.  I guess module-init-tools superceded moutils?
Comment 7 Stephen Allen 2004-10-29 18:27:25 UTC
I'm trying to do an "emerge -uD world" and I noticed that the two packages were blocking each other:

[blocks B     ] sys-apps/modutils (from pkg sys-apps/module-init-tools-3.0-r2)
[blocks B     ] sys-apps/module-init-tools (from pkg sys-apps/modutils-2.4.25)

The kernel is 2.4.25.  I unmerged module-init-tools, but the "emerge -uD world" still wants to install it, and they block each other.
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-10-29 18:46:42 UTC
Please provide "emerge info" and "emerge -p virtual/modutils" output please.
Comment 9 Pekka-Matti Nieminen 2004-10-30 08:45:11 UTC
I do have the same bug that Stephen has.

# emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ rsync://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/custom-portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi alsa apache2 apm avi bitmap-fonts crypt dedicated emacs emacs-w3 encode f77 fastcgi fbcon flash gd gdbm gif gphoto2 gpm imap java jpeg leim libwww maildir mmx motif mozilla mpeg mule mysql ncurses nls nocardbus nocd odbc oggvorbis opengl oss pam perl png quicktime readline samba snmp sse ssl tcpd tiff usb x86 xinerama xmms xv zlib"



# emerge -p virtual/modutils

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/modutils-2.4.25

#
#
Comment 10 Pekka-Matti Nieminen 2004-10-30 09:30:14 UTC
I am really sorry for flooding and if this is trivial information for you, but I noticed this:

# emerge -p gentoo-sources

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] sys-apps/modutils (from pkg sys-apps/module-init-tools-3.0-r2)
[ebuild  N    ] sys-apps/module-init-tools-3.0-r2
[ebuild   R   ] sys-kernel/gentoo-sources-2.4.26-r9

#
# emerge -C modutils
[snipped output]
#
# emerge -p gentoo-sources

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-apps/module-init-tools-3.0-r2
[ebuild   R   ] sys-kernel/gentoo-sources-2.4.26-r9

#
# emerge module-init-tools
[snipped successfull build output]
#
# emerge -p gentoo-sources

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-kernel/gentoo-sources-2.4.26-r9

#

So the blocking messages I had (same that Stephen had on comment #7) disappeared.
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2004-10-30 18:08:00 UTC
In the first case, module-init-tools had also been installed, which became the virtual/modutils provider. In the second case, kernels now depend explicitly on module-init-tools meaning that modutils will always block if it is installed and you are installing a kernel ebuild.