Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emerge blocks on an unmerged package
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
elwoodp
n00b
n00b


Joined: 06 Jan 2009
Posts: 4

PostPosted: Tue Jan 06, 2009 6:06 pm    Post subject: [solved] emerge blocks on an unmerged package Reply with quote

I'm trying to get rid of ssmtp and install courier. They block each other, reasonably enough, but even after I successfully unmerge ssmtp, emerge still reports the block. I'm summarizing the commands here; the full output is given below.

Code:
server ~ # emerge mail-mta/courier
Calculating dependencies... done!
[ebuild  N    ] dev-libs/pth-2.0.7-r1  USE="-debug"
.....
[ebuild  N    ] mail-mta/courier-0.59.0  USE="crypt ipv6 nls pam -fam -fax -ldap -mailwrapper -mysql -norewrite -postgres -spell -web -webmail"
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/courier-0.59.0)
...


So, let's remove ssmtp.

Code:
server ~ # emerge -C ssmtp

 mail-mta/ssmtp
    selected: 2.62-r3
   protected: none
     omitted: none
....
<<<          dir /etc/ssmtp
--- !empty   dir /etc
>>> Regenerating /etc/ld.so.cache...
 * GNU info directory index is up-to-date.
server ~ # emerge --search ssmtp
...
*  mail-mta/ssmtp
      Latest version available: 2.62-r3
      Latest version installed: [ Not Installed ]
      Size of files: 55 kB
....
server ~ # esearch ssmtp
...
*  mail-mta/ssmtp
      Latest version available: 2.61-r2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
...


I don't know what to make of the fact the emerge --search and esearch find different versions of ssmtp, but neither one is installed. But emerge seems to forget that when I try to install courier again

Code:
emerge mail-mta/courier
...
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/courier-0.59.0)
...


I'm sorry if I'm missing something obvious. I'd really like to get this to work. I'd appreciate any advice you can give me.

I'm sending emerge --info below, followed by a complete output from the above commands.

Code:
server ~ # emerge --info
Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Timestamp of tree: Fri, 19 Dec 2008 19:00:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.fslutd.org/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog jack midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg 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="actions 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 cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


----------------------------------------------------------------------------------------------------------------------
Full version of the commands.
----------------------------------------------------------------------------------------------------------------------
Code:
server ~ # emerge mail-mta/courier
Calculating dependencies... done!
[ebuild  N    ] dev-libs/pth-2.0.7-r1  USE="-debug"
[ebuild  N    ] net-libs/courier-authlib-0.60.6  USE="berkdb crypt gdbm pam -debug -ldap -mysql -postgres -vpopmail"
[ebuild  N    ] app-crypt/pinentry-0.7.5  USE="ncurses -caps -gtk -qt3"
[ebuild  N    ] dev-libs/libksba-1.0.3 
[ebuild  N    ] dev-libs/libassuan-1.0.4 
[ebuild  N    ] app-crypt/gnupg-2.0.9  USE="bzip2 nls -doc -ldap -openct -pcsc-lite (-selinux) -smartcard"
[ebuild  N    ] mail-mta/courier-0.59.0  USE="crypt ipv6 nls pam -fam -fax -ldap -mailwrapper -mysql -norewrite -postgres -spell -web -webmail"
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/courier-0.59.0)

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

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked

server ~ # emerge -C ssmtp

 mail-mta/ssmtp
    selected: 2.62-r3
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging mail-mta/ssmtp-2.62-r3...
No package files given... Grabbing a set.
<<<          obj /usr/share/man/man8/ssmtp.8.bz2
<<<          obj /usr/share/doc/ssmtp-2.62-r3/TLS.bz2
<<<          obj /usr/share/doc/ssmtp-2.62-r3/README.bz2
<<<          obj /usr/share/doc/ssmtp-2.62-r3/INSTALL.bz2
<<<          obj /usr/share/doc/ssmtp-2.62-r3/DESC.bz2
<<<          obj /usr/share/doc/ssmtp-2.62-r3/CHANGELOG_OLD.bz2
<<<          obj /usr/sbin/ssmtp
<<<          sym /usr/sbin/sendmail
<<<          sym /usr/lib/sendmail
<<<          sym /usr/bin/sendmail
<<<          sym /usr/bin/newaliases
<<<          sym /usr/bin/mailq
<<<          obj /etc/ssmtp/ssmtp.conf
<<<          obj /etc/ssmtp/revaliases
--- !empty   dir /usr/share/man/man8
--- !empty   dir /usr/share/man
<<<          dir /usr/share/doc/ssmtp-2.62-r3
--- !empty   dir /usr/share/doc
--- !empty   dir /usr/share
--- !empty   dir /usr/sbin
--- !empty   dir /usr/lib
--- !empty   dir /usr/bin
--- !empty   dir /usr
<<<          dir /etc/ssmtp
--- !empty   dir /etc
>>> Regenerating /etc/ld.so.cache...
 * GNU info directory index is up-to-date.
server ~ # emerge --search ssmtp
Searching...   
[ Results for search key : ssmtp ]
[ Applications found : 1 ]
 
*  mail-mta/ssmtp
      Latest version available: 2.62-r3
      Latest version installed: [ Not Installed ]
      Size of files: 55 kB
      Homepage:      ftp://ftp.debian.org/debian/pool/main/s/ssmtp/
      Description:   Extremely simple MTA to get mail off the system to a Mailhub
      License:       GPL-2


server ~ # esearch ssmtp
[ Results for search key : ssmtp ]
[ Applications found : 1 ]

*  mail-mta/ssmtp
      Latest version available: 2.61-r2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
      Homepage:    ftp://ftp.debian.org/debian/pool/main/s/ssmtp/
      Description: Extremely simple MTA to get mail off the system to a Mailhub
      License:     GPL-2


server ~ #  emerge mail-mta/courier
Calculating dependencies... done!
[ebuild  N    ] dev-libs/pth-2.0.7-r1  USE="-debug"
[ebuild  N    ] net-libs/courier-authlib-0.60.6  USE="berkdb crypt gdbm pam -debug -ldap -mysql -postgres -vpopmail"
[ebuild  N    ] app-crypt/pinentry-0.7.5  USE="ncurses -caps -gtk -qt3"
[ebuild  N    ] dev-libs/libksba-1.0.3 
[ebuild  N    ] mail-mta/ssmtp-2.62-r3  USE="ipv6 ssl -maxsysuid -md5sum"
[ebuild  N    ] dev-libs/libassuan-1.0.4 
[ebuild  N    ] app-crypt/gnupg-2.0.9  USE="bzip2 nls -doc -ldap -openct -pcsc-lite (-selinux) -smartcard"
[ebuild  N    ] mail-mta/courier-0.59.0  USE="crypt ipv6 nls pam -fam -fax -ldap -mailwrapper -mysql -norewrite -postgres -spell -web -webmail"
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/courier-0.59.0)

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

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked


Last edited by elwoodp on Tue Jan 06, 2009 11:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Jan 06, 2009 6:27 pm    Post subject: Reply with quote

Try --tree to find out if there is a package that wants ssmtp. Enabling mailwrapper for courier might help too
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
elwoodp
n00b
n00b


Joined: 06 Jan 2009
Posts: 4

PostPosted: Tue Jan 06, 2009 8:51 pm    Post subject: So is this a circular dependence? How can I deal with that? Reply with quote

Thank you for the --tree suggestion:
Code:
server ~ # emerge --tree mail-mta/courier

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

Calculating dependencies... done!
[ebuild  N    ] mail-mta/courier-0.59.0  USE="crypt ipv6 nls pam -fam -fax -ldap -mailwrapper -mysql -norewrite -postgres -spell -web -webmail"
[ebuild  N    ]  app-crypt/gnupg-2.0.9  USE="bzip2 nls -doc -ldap -openct -pcsc-lite (-selinux) -smartcard"
[ebuild  N    ]   mail-mta/ssmtp-2.62-r3  USE="ipv6 ssl -maxsysuid -md5sum"
[ebuild  N    ]   dev-libs/libksba-1.0.3 
[ebuild  N    ]   app-crypt/pinentry-0.7.5  USE="ncurses -caps -gtk -qt3"
[ebuild  N    ]   dev-libs/libassuan-1.0.4 
[ebuild  N    ]  net-libs/courier-authlib-0.60.6  USE="berkdb crypt gdbm pam -debug -ldap -mysql -postgres -vpopmail"
[nomerge      ] dev-libs/libassuan-1.0.4 
[ebuild  N    ]  dev-libs/pth-2.0.7-r1  USE="-debug"
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/courier-0.59.0)
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
. . .

Am I reading this correctly that the problem is a cycle?

courier -needs-> gnupg -needs-> ssmtp -conflicts-> courier

How can I deal with that?

I also tried mailwrapper, which just changed things around a bit:

Code:
server ~ # USE="mailwrapper" emerge --tree mail-mta/courier

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

Calculating dependencies... done!
[ebuild  N    ] mail-mta/courier-0.59.0  USE="crypt ipv6 mailwrapper nls pam -fam -fax -ldap -mysql -norewrite -postgres -spell -web -webmail"
[ebuild  N    ]  net-mail/mailwrapper-0.2.1 
[ebuild  N    ]  app-crypt/gnupg-2.0.9  USE="bzip2 nls -doc -ldap -openct -pcsc-lite (-selinux) -smartcard"
[ebuild  N    ]   mail-mta/ssmtp-2.62-r3  USE="ipv6 ssl -maxsysuid -md5sum"
[ebuild  N    ]   dev-libs/libksba-1.0.3 
[ebuild  N    ]   app-crypt/pinentry-0.7.5  USE="ncurses -caps -gtk -qt3"
[ebuild  N    ]   dev-libs/libassuan-1.0.4 
[ebuild  N    ]  net-libs/courier-authlib-0.60.6  USE="berkdb crypt gdbm pam -debug -ldap -mysql -postgres -vpopmail"
[nomerge      ] dev-libs/libassuan-1.0.4 
[ebuild  N    ]  dev-libs/pth-2.0.7-r1  USE="-debug"
[blocks B     ] net-mail/mailwrapper (is blocking mail-mta/ssmtp-2.62-r3)
[blocks B     ] mail-mta/courier (is blocking mail-mta/ssmtp-2.62-r3)
. . .


Any advice would be appreciated.
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Tue Jan 06, 2009 9:03 pm    Post subject: Reply with quote

You're reading it right, but gnupg doesn't need ssmtp, just some mta (such as courier or ssmtp). The way to solve this is to first install courier in a way so that it does not need gnupg, then reinstall it with the options you really want.
Code:
USE=-crypt emerge courier
emerge courier
There's not really a good alternative. You need courier installed before you can install gnupg, and you need gnupg installed before you can install courier with USE=crypt.
Back to top
View user's profile Send private message
elwoodp
n00b
n00b


Joined: 06 Jan 2009
Posts: 4

PostPosted: Tue Jan 06, 2009 10:18 pm    Post subject: [solved] If it's worth building once... Reply with quote

That did it, thanks for your help.

Portage seems to be quite good at expressing dependences. Does it not have a way to express an abstract target like "some mta"?
Back to top
View user's profile Send private message
TrueDFX
Retired Dev
Retired Dev


Joined: 02 Jun 2004
Posts: 1348

PostPosted: Tue Jan 06, 2009 11:12 pm    Post subject: Reply with quote

It does: virtual/mta. This is what gnupg depends on already, so when you don't have an mta installed yet (even if you're in the process of installing one), portage will try to emerge ssmtp, and when you do have an mta (after USE=-crype emerge courier), portage stops trying to emerge ssmtp.
Back to top
View user's profile Send private message
elwoodp
n00b
n00b


Joined: 06 Jan 2009
Posts: 4

PostPosted: Tue Jan 06, 2009 11:45 pm    Post subject: Is it supposed to handle it this way? Reply with quote

It would be nice if emerge noticed that the final target was an MTA, so it would know not to try loading another one.

Anyway, thanks again.
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