Chema Alonso wrote:
dhk escribió:
I want to install sendmail, but when ssmtp is installed a file collision with mailer.conf is detected. ssmtp was also installed previously with -mailwrapper in the USE and has since been unmerged. The problem started when taking -mailwrapper out of the ssmtp USE variable. The emerge trace for ssmtp is below. How can I ignore the collision and get everything installed?

Thanks,
Dave

# emerge ssmtp
Calculating dependencies... done!
 >>> Verifying ebuild Manifests...

 >>> Emerging (1 of 1) mail-mta/ssmtp-2.61-r2 to /
 * ssmtp_2.61.orig.tar.gz RMD160 SHA1 SHA256 size ;-) ...   [ ok ]
 * checking ebuild checksums ;-) ...   [ ok ]
 * checking auxfile checksums ;-) ...   [ ok ]
 * checking miscfile checksums ;-) ...   [ ok ]
 * checking ssmtp_2.61.orig.tar.gz ;-) ...   [ ok ]
 >>> Unpacking source...
>>> Unpacking ssmtp_2.61.orig.tar.gz to /var/tmp/portage/mail-mta/ssmtp-2.61-r2/work
 * Applying ssmtp-2.61-bug127592.patch ...   [ ok ]
 >>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mail-mta/ssmtp-2.61-r2/work/ssmtp-2.61 ... ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc/ssmtp --enable-ssl --enable-inet6 --disable-md5auth --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
creating cache ./config.cache
checking for gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler (x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe ) works... yes checking whether the C compiler (x86_64-pc-linux-gnu-gcc -march=k8 -O2 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for limits.h... yes
checking for strings.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for obsolete openlog... no
checking for working const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for gethostname in -lnsl... yes
checking for socket in -lsocket... no
checking return type of signal handlers... void
checking for vprintf... yes
checking for gethostname... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
rm -f ssmtp *.o md5auth/*.o core
x86_64-pc-linux-gnu-gcc -Wall -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1 -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\" -march=k8 -O2 -pipe -c -o ssmtp.o ssmtp.c
ssmtp.c: In function 'ssmtp':
ssmtp.c:1376: warning: pointer targets in passing argument 1 of 'to64frombits' differ in signedness ssmtp.c:1376: warning: pointer targets in passing argument 2 of 'to64frombits' differ in signedness ssmtp.c:1385: warning: pointer targets in passing argument 1 of 'to64frombits' differ in signedness ssmtp.c:1385: warning: pointer targets in passing argument 2 of 'to64frombits' differ in signedness
ssmtp.c: In function 'smtp_open':
ssmtp.c:990: warning: 's' may be used uninitialized in this function
ssmtp.c: In function 'header_parse':
ssmtp.c:735: warning: 'q' may be used uninitialized in this function
x86_64-pc-linux-gnu-gcc -Wall -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1 -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\" -march=k8 -O2 -pipe -c -o arpadate.o arpadate.c x86_64-pc-linux-gnu-gcc -Wall -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBNSL=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1 -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\" -march=k8 -O2 -pipe -c -o base64.o base64.c x86_64-pc-linux-gnu-gcc -o ssmtp ssmtp.o arpadate.o base64.o -lnsl -lssl
 >>> Source compiled.
 >>> Test phase [not enabled]: mail-mta/ssmtp-2.61-r2

>>> Install ssmtp-2.61-r2 into /var/tmp/portage/mail-mta/ssmtp-2.61-r2/image/ category mail-mta >>> Completed installing ssmtp-2.61-r2 into /var/tmp/portage/mail-mta/ssmtp-2.61-r2/image/

ecompressdir: bzip2 -9 /usr/share/man
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/sbin/ssmtp
* checking 14 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * package mail-mta/ssmtp-2.61-r2 NOT merged
 *
 * Detected file collision(s):
 *
 *     /etc/mail/mailer.conf
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * net-mail/mailwrapper-0.2.1
 *     /etc/mail/mailer.conf

 * Messages for package mail-mta/ssmtp-2.61-r2:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * package mail-mta/ssmtp-2.61-r2 NOT merged
 *
 * Detected file collision(s):
 *
 *     /etc/mail/mailer.conf
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * net-mail/mailwrapper-0.2.1
 *     /etc/mail/mailer.conf

Hi!

By reading this bug I managed to install sendmail. It helped me a lot.

http://bugs.gentoo.org/167952

I Hope it helps.

Cheers!
That worked. I put everything back the way it was. I remove (emerge -C) mailwrapper and then put the USE back so it would not use mailwrapper. Then moved ssmtp: mv /usr/portage/mail-mta/ssmtp /usr/portage/mail-mta/ssmtp.orig . When I did an emerge -p sendmail everything looked good and without the -p it installed just fine. I think I'll leave the ssmtp as ssmtp.orig unless someone see a reason to put it back.

Thanks again.
--
gentoo-user@lists.gentoo.org mailing list

Reply via email to