The environment:

3 years old gentoo system

The problem:

ACCEPT_KEYWORDS=~x86 USE="bzip2 mysql postgres sqlite imap" emerge -pv php<br></br><br></br>Calculating dependencies... done!<br></br>[ebuild  N    ] net-mail/mailwrapper-0.2.1  7 kB <br></br>[ebuild  N    ] net-nds/openldap-2.3.36  USE="berkdb crypt gdbm ipv6 perl readline ssl tcpd -debug -kerberos -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd" 3,710 kB <br></br>[ebuild  N    ] mail-mta/ssmtp-2.61-r2  USE="ipv6 mailwrapper ssl -md5sum" 53 kB <br></br>[ebuild     U ] dev-lang/php-5.2.2-r1 [5.1.6-r6] USE="apache2 berkdb bzip2 cli crypt gdbm iconv imap ipv6 ldap* mysql ncurses nls pcre postgres readline reflection session snmp* spl sqlite ssl truetype unicode* xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter% -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc -java-external -json% -kerberos -ldap-sasl% -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap -sockets -solid -spell* -suhosin% -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external% (-apache%) (-filepro%) (-hardenedphp%) (-hyperwave-api%) (-informix%) (-memlimit%) (-ming%) (-sasl%) (-vm-goto%) (-vm-switch%)" 7,151 kB <br></br>[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/qmail-1.03-r13)<br></br>

The solution:

cat /etc/portage/package.mask<br></br>mail-mta/ssmtp<br></br>mail-mta/netqmail<br></br><br></br>ACCEPT_KEYWORDS=~x86 USE="bzip2 mysql postgres sqlite imap" emerge -pv php<br></br><br></br>These are the packages that would be merged, in order:<br></br><br></br>Calculating dependencies... done!<br></br>[ebuild  N    ] net-nds/openldap-2.3.36  USE="berkdb crypt gdbm ipv6 perl readline ssl tcpd -debug -kerberos -minimal -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd" 3,710 kB <br></br>[ebuild     U ] dev-lang/php-5.2.2-r1 [5.1.6-r6] USE="apache2 berkdb bzip2 cli crypt gdbm iconv imap ipv6 ldap* mysql ncurses nls pcre postgres readline reflection session snmp* spl sqlite ssl truetype unicode* xml zlib -adabas -bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter% -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc -java-external -json% -kerberos -ldap-sasl% -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap -sockets -solid -spell* -suhosin% -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external% (-apache%) (-filepro%) (-hardenedphp%) (-hyperwave-api%) (-informix%) (-memlimit%) (-ming%) (-sasl%) (-vm-goto%) (-vm-switch%)" 7,151 kB <br></br>