Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373905 - emerge should suggest to use --tree for blocker troubleshooting
Summary: emerge should suggest to use --tree for blocker troubleshooting
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 300071
  Show dependency tree
 
Reported: 2011-07-03 12:04 UTC by Martin Mokrejš
Modified: 2013-05-09 07:49 UTC (History)
2 users (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 Martin Mokrejš 2011-07-03 12:04:46 UTC
I just unmerged netqmail on my system and still wonder why virtual/mta required it. I even unmerged virtual/mta but no luck.

In the end I emerged sendmail hoping virtual/mta will be recreated and the blockage released. No.


At the moment I have:

[blocks B      ] mail-mta/sendmail ("mail-mta/sendmail" is blocking mail-mta/netqmail-1.06)
[blocks B      ] mail-mta/netqmail ("mail-mta/netqmail" is blocking mail-mta/sendmail-8.14.5)

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

  (mail-mta/sendmail-8.14.5::gentoo, installed) pulled in by
    mail-mta/sendmail required by @selected
    mail-mta/sendmail required by (virtual/mta-0::gentoo, installed)

  (mail-mta/netqmail-1.06::gentoo, ebuild scheduled for merge) pulled in by
    ~mail-mta/netqmail-1.06 required by (virtual/qmail-1.03::gentoo, ebuild scheduled for merge)
    mail-mta/netqmail required by (virtual/mta-0::gentoo, installed)


I still do not understand where does the netqmail requirement come from.


Portage 2.1.10.3 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.39.1 i686)
=================================================================
System uname: Linux-2.6.39.1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 01 Jul 2011 11:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.6-r1, 2.7.1-r1, 3.1.3, 3.2
dev-util/cmake:           2.8.4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            3.3.6-r1, 4.2.4-r1, 4.3.5, 4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo x-portage science
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Nero-EULA-US skype-eula AdobeFlash AdobeFlash-10 AdobeFlash-10.1 PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4m -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/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="-O2 -march=pentium4m -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs cz"
MAKEOPTS="-j4"
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/portage /home/mmokrejs/proj/sci"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache apache2 apng audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cdda cddb cdparanoia cdr cgi clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dhcp dia directfb djbfft dri dts dv dvb dvd dvdr dvdread emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fontconfig fortran fpx ftp gcj gd gdbm gdu ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gtk gtkhtml hdf hdf5 hp2xx i8x0 iconv icu id3 id3tag ieee1394 imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos ladspa lame lapack laptop lcms leim libcaca libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mplayer mudflap mule musepack mxdatetime mysql mysqli nat ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric objc ogg opengl openmp openssl pam pango parport pcmcia pcntl pcre pdf perl php plotutils plugin png pnm policykit postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reiserfs romio rpm samba sasl scanner scp sdl seamonkey server session sftp sift slp smime sndfile soap sockets spell sqlite srt sse sse2 ssl startup-notification static-libs subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd theora threads tidy tiff tk transcode truetype udev unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wavpack wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dbd deflate dir disk_cache env expires ext_filter file_cache filter headers icu ident imagemap include info log_config mem_cache mime mime_magic php rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="en cs cz" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 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 Martin Mokrejš 2011-07-03 13:51:26 UTC
I synced my portage tree and meanwhile I found that in the list of packages to be updated by 'emerge -uN world' is qmailadmin. Although it was not listed as the package causing the block I unmerged qmailadmin (bug #373909) and now I do not get the problem anymore.
Comment 2 Zac Medico gentoo-dev 2011-07-03 18:28:23 UTC
You could have used the emerge --tree option to find out that qmailadmin was pulling in virtual/qmail.
Comment 3 Martin Mokrejš 2011-07-07 09:57:24 UTC
I see I have also installed net-mail/qmail-lint-0.55.

# emerge -uNDf --tree world

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

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "mail-mta/qmail".
(dependency required by "net-mail/qmail-lint-0.55" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
# emerge -uNDpv --tree world

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

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "mail-mta/qmail".
(dependency required by "net-mail/qmail-lint-0.55" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
#
Comment 4 Zac Medico gentoo-dev 2011-07-07 10:18:04 UTC
Maybe we should make the unsolved blocker message suggest to use the --tree option for troubleshooting purposes.
Comment 5 Martin Mokrejš 2011-09-08 18:52:23 UTC
On another machine am giving rid of qmail. The emerge output is still not helpful as it does not mention in the error message those package which were tagged with "nomerge", whatever that means. ;)

# emerge -uND --keep-going world --tree

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


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

Calculating dependencies... done!
[cut]
[nomerge       ] net-mail/qmail-qfilter-2.1-r1 
[ebuild  N     ]  virtual/qmail-1.03 
[cut]
[nomerge       ] net-mail/qmail-notify-0.93-r1 
[nomerge       ]  virtual/qmail-1.03 
[ebuild  N     ]   mail-mta/netqmail-1.06-r1  USE="ssl -authcram -gencertdaily -highvolume -mailwrapper -qmail-spp -vanilla" 
[cut]
[blocks B      ] mail-mta/netqmail ("mail-mta/netqmail" is blocking mail-mta/sendmail-8.14.5)
[blocks B      ] mail-mta/netqmail ("virtual/mta" is blocking mail-mta/netqmail-1.06-r1)

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

  (mail-mta/sendmail-8.14.5::gentoo, installed) pulled in by
    mail-mta/sendmail required by @selected
    mail-mta/sendmail required by (virtual/mta-0::gentoo, ebuild scheduled for merge)

  (mail-mta/netqmail-1.06-r1::x-portage, ebuild scheduled for merge) pulled in by
    ~mail-mta/netqmail-1.06 required by (virtual/qmail-1.03::gentoo, ebuild scheduled for merge)
    mail-mta/netqmail required by (virtual/mta-0::gentoo, ebuild scheduled for merge)

  (virtual/mta-0::gentoo, ebuild scheduled for merge) pulled in by
    =virtual/mta-0 required by (mail-client/mailx-8.1.2.20050715-r3::gentoo, installed)
    virtual/mta required by (mail-client/mailx-8.1.2.20050715-r3::gentoo, installed)
    =virtual/mta-0 required by (dev-lang/php-5.2.17::gentoo, installed)
    virtual/mta required by (dev-lang/php-5.2.17::gentoo, installed)
    virtual/mta required by (sys-process/vixie-cron-4.1-r11::gentoo, installed)
    =virtual/mta-0 required by (sys-process/vixie-cron-4.1-r11::gentoo, installed)
    =virtual/mta-0 required by (app-crypt/gnupg-2.0.18::gentoo, ebuild scheduled for merge)
    virtual/mta required by (app-crypt/gnupg-2.0.18::gentoo, ebuild scheduled for merge)
    virtual/mta required by (app-admin/sudo-1.8.2::gentoo, ebuild scheduled for merge)
    =virtual/mta-0 required by (app-admin/sudo-1.8.2::gentoo, ebuild scheduled for merge)



Second, I would like emerge to print those packages in red color in the initial listing of packages, not only in the "Error" section. It is hard to find where those blocked packages appear in the long listing and the Error output is useless as it seems the culprit now are those "nomerge" packages already installed.

Portage 2.1.10.4 here.
Comment 6 Zac Medico gentoo-dev 2011-09-08 19:16:06 UTC
(In reply to comment #5)
> On another machine am giving rid of qmail. The emerge output is still not
> helpful as it does not mention in the error message those package which were
> tagged with "nomerge", whatever that means. ;)

The "nomerge" indicates that the package is being displayed as a dependency (or reverse dependency) that will not be merged.

> These are the packages that would be merged, in reverse order:
> 
> Calculating dependencies... done!
> [cut]
> [nomerge       ] net-mail/qmail-qfilter-2.1-r1 
> [ebuild  N     ]  virtual/qmail-1.03 
> [cut]
> [nomerge       ] net-mail/qmail-notify-0.93-r1 
> [nomerge       ]  virtual/qmail-1.03 
> [ebuild  N     ]   mail-mta/netqmail-1.06-r1  USE="ssl -authcram -gencertdaily
> -highvolume -mailwrapper -qmail-spp -vanilla" 

If you want to remove qmail then you have to remove it at the roots. You can see 
net-mail/qmail-qfilter-2.1-r1 and net-mail/qmail-notify-0.93-r1 displayed as roots in the above output. Make sure you don't have those in /var/lib/portage/world. You can use emerge --deselect to remove them from world.  If it's not world pulling them in, then you should check for reverse dependencies like this:

  emerge -pv --depclean net-mail/qmail-qfilter net-mail/qmail-notify
Comment 7 Martin Mokrejš 2011-09-08 19:28:59 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > On another machine am giving rid of qmail. The emerge output is still not
> > helpful as it does not mention in the error message those package which were
> > tagged with "nomerge", whatever that means. ;)
> 
> The "nomerge" indicates that the package is being displayed as a dependency (or
> reverse dependency) that will not be merged.
> 
> > These are the packages that would be merged, in reverse order:
> > 
> > Calculating dependencies... done!
> > [cut]
> > [nomerge       ] net-mail/qmail-qfilter-2.1-r1 
> > [ebuild  N     ]  virtual/qmail-1.03 
> > [cut]
> > [nomerge       ] net-mail/qmail-notify-0.93-r1 
> > [nomerge       ]  virtual/qmail-1.03 
> > [ebuild  N     ]   mail-mta/netqmail-1.06-r1  USE="ssl -authcram -gencertdaily
> > -highvolume -mailwrapper -qmail-spp -vanilla" 
> 
> If you want to remove qmail then you have to remove it at the roots. You can
> see 
> net-mail/qmail-qfilter-2.1-r1 and net-mail/qmail-notify-0.93-r1 displayed as
> roots in the above output. Make sure you don't have those in
> /var/lib/portage/world. You can use emerge --deselect to remove them from
> world.  If it's not world pulling them in, then you should check for reverse
> dependencies like this:
> 
>   emerge -pv --depclean net-mail/qmail-qfilter net-mail/qmail-notify

Hmm, so why doesn't emerge include those "roots" automagically in the Error section? This is exactly why something got pulled in and the knowledge how to figure out is left upon the user to figure out why is something included. And of course, emerge could also inspect /var/lib/portage/world for me then, right? ;-)

Too late, I did emerge --unmerge to get rid of those two "root" packages meanwhile.
Comment 8 Martin Mokrejš 2011-12-20 19:51:03 UTC
I am getting into same issues on different machines where I installed qmail in the past. For example, now I have:

[nomerge       ] virtual/qmail-1.03  [0]
[ebuild  N     ]  mail-mta/netqmail-1.06-r1  USE="ssl -authcram -gencertdaily -highvolume -mailwrapper -qmail-spp -vanilla" 332 kB [2]
[ebuild  N     ]   sys-process/daemontools-0.76-r7  USE="(-selinux) -static" 44 kB [0]
[blocks B      ] mail-mta/netqmail ("mail-mta/netqmail" is blocking mail-mta/sendmail-8.14.5-r1)
[blocks B      ] virtual/mta ("virtual/mta" is blocking mail-mta/netqmail-1.06-r1)

I unmerged virtual/daemontools, sys-apps/ucspi-tcp, sys-apps/ucspi-ssl, ...

Well, in the end, net-mail/qmhandle was the other culprit on another machine. :(

[nomerge       ] net-mail/qmhandle-1.3.2  [0]
[ebuild  N     ]  virtual/qmail-1.03  0 kB [0]



The following did not help me out, probably I still don't understand what you told me:

# emerge --depclean sys-apps/ucspi-tcp sys-apps/ucspi-ssl sys-process/daemontools
--- Couldn't find 'sys-apps/ucspi-ssl' to depclean.
--- Couldn't find 'sys-process/daemontools' to depclean.
--- Couldn't find 'sys-apps/ucspi-tcp' to depclean.
>>> No packages selected for removal by depclean

#
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-09 07:49:29 UTC
(In reply to comment #4)
> Maybe we should make the unsolved blocker message suggest to use the --tree
> option for troubleshooting purposes.

Yes, but since the syntax may be unknown to the user you may need to include a short explanation (or point to relevant documentation) that shows how they need to read it.