Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517780 - mail-filter/mimedefang - ?
Summary: mail-filter/mimedefang - ?
Status: RESOLVED DUPLICATE of bug 514412
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 12:11 UTC by Vieri
Modified: 2019-04-24 12:59 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 Vieri 2014-07-22 12:11:23 UTC
postfix and mimedefang cannot be installed with a single emerge command.

# emerge --ask postfix mimedefang

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

Calculating dependencies... done!
[ebuild  N     ] app-arch/libarchive-3.1.2-r1  USE="acl bzip2 e2fsprogs iconv lzma xattr zlib -expat -lzo -nettle -static-libs"
[ebuild  N    ~] mail-filter/mimedefang-2.75  USE="clamav poll"
[ebuild  N     ] dev-util/cmake-2.8.12.2  USE="ncurses -emacs -qt4 (-qt5) {-test}"
[ebuild  N     ] dev-db/mysql-5.1.70  USE="big-tables cluster community perl ssl -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static {-test} -xtradb"
[ebuild  N     ] virtual/mysql-5.1  USE="-embedded -minimal -static"
[ebuild  N     ] dev-perl/DBD-mysql-4.20.0  USE="-embedded"
[ebuild  N     ] mail-mta/postfix-2.10.3  USE="berkdb hardened ldap mysql pam sasl ssl -cdb -doc -dovecot-sasl -ldap-bind -mbox -memcached -nis -postgres (-selinux) -sqlite -vda"

Would you like to merge these packages? [Yes/No]


"emerge" should not try to install mimedefang BEFORE postfix.

Since it tries to emerge mimedefang first, the configure phase of this package will fail because it will complain it can't find the sendmail binary (provided by postfix).

The mimedefang ebuild may not correctly depend on postfix/sendmail.

Also take a look at forum post at http://forums.gentoo.org/viewtopic-p-7587712.html#7587712
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-22 19:11:06 UTC
(In reply to Vieri from comment #0)
> postfix and mimedefang cannot be installed with a single emerge command.

Sure they can.

> # emerge --ask postfix mimedefang

1) Please post your `emerge --info' output in a comment.

> "emerge" should not try to install mimedefang BEFORE postfix.
> 
> Since it tries to emerge mimedefang first, the configure phase of this
> package will fail because it will complain it can't find the sendmail binary
> (provided by postfix).

Lots of packages provide the sendmail binary.

2) Please attach the entire mimedefang build log to this bug report.

> The mimedefang ebuild may not correctly depend on postfix/sendmail.

That's obvious. It's doubtful and indeed quite fishy that mimedefang would /require/ a sendmail binary. It probably just checks whether it's there (which shouldn't be fatal). Please address the two points above.
Comment 2 Vieri 2014-07-22 22:13:33 UTC
# emerge --info
Portage 2.2.8-r1 (hardened/linux/x86, gcc-4.7.3, glibc-2.17, 3.14.5-hardened-r2 i686)
=================================================================
System uname: Linux-3.14.5-hardened-r2-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.2
KiB Mem:     1029292 total,    617216 free
KiB Swap:     524220 total,    522896 free
Timestamp of tree: Fri, 18 Jul 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/gnupg/qualified.txt /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl ads apache2 berkdb bzip2 cli cluster cracklib crypt cxx dri freetds gdbm hardened iconv ipv6 jbig kerberos ldap logrotate modules ncurses nls nptl odbc openmp openrc pam pax_kernel pcre pic radius readline samba session ssl tcpd unicode urandom winbind x86 xattr xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es_ES es" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, SYNC, USE_PYTHON
Comment 3 Vieri 2014-07-22 22:21:21 UTC
(In reply to Jeroen Roovers from comment #1)
> 2) Please attach the entire mimedefang build log to this bug report.
> 
> > The mimedefang ebuild may not correctly depend on postfix/sendmail.
> 
> That's obvious. It's doubtful and indeed quite fishy that mimedefang would
> /require/ a sendmail binary. It probably just checks whether it's there
> (which shouldn't be fatal). Please address the two points above.

Unfortunately I had to move on with the installation and emerged postfix first and then emerged the rest of the packages, including mimedefang. Therefore I can't currently post the mimedefang build log but I do recall reading it and noticing an "econf failure" right after mimedefang's configure script reported that no sendmail binary was found on the system.
That failure aborted the installation of mimedefang.

I'm planning on reinstalling from scratch another server next week so I can post the log then.
As an alternative I could unmerge postfix and mimedefang and try to emerge them together and send the log if it fails again.
Will try that tomorrow.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-23 01:28:53 UTC
You should save build logs when you intend to file bug reports.
Comment 5 Vieri 2014-07-23 06:42:39 UTC
(In reply to Jeroen Roovers from comment #4)
> You should save build logs when you intend to file bug reports.

Right. My mistake.

Now I can't reproduce the original problem (ie. "emerge postfix mimedefang") but I can reproduce part of it.
If I unmerge both postfix and mimedefang and then emerge mimedefang alone then I get the same econf fatal error.

As you can see below the configure script fails if it doesn't find the 'sendmail' program. Hence emerge aborts. Shouldn't the mimedefang ebuild *require* a virtual package that provides 'sendmail'?

# cat /var/tmp/portage/mail-filter/mimedefang-2.75/temp/build.log
 * Package:    mail-filter/mimedefang-2.75
 * Repository: gentoo
 * Maintainer: net-mail@gentoo.org
 * USE:        abi_x86_32 clamav elibc_glibc kernel_linux poll userland_GNU x86
 * FEATURES:   nostrip preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mimedefang-2.75.tar.gz to /var/tmp/portage/mail-filter/mimedefang-2.75/work
>>> Source unpacked in /var/tmp/portage/mail-filter/mimedefang-2.75/work
>>> Preparing source in /var/tmp/portage/mail-filter/mimedefang-2.75/work/mimedefang-2.75 ...
 * Applying mimedefang-2.72-ldflags.patch ...                                                                                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/mail-filter/mimedefang-2.75/work/mimedefang-2.75 ...
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --with-user=defang --enable-poll --enable-clamav --enable-clamd
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/lib/portage/bin/ebuild-helpers/xattr/install -c
checking for perl... /usr/bin/perl
checking whether socklen_t is defined... yes
checking for Perl installation variable prefix... /usr
checking for Perl installation variable siteprefix... /usr/local
checking for Perl installation variable vendorprefix... /usr
checking for Perl installation variable installarchlib... /usr/lib/perl5/5.16.3/i686-linux
checking for Perl installation variable installprivlib... /usr/lib/perl5/5.16.3
checking for Perl installation variable installbin... /usr/bin
checking for Perl installation variable installman1dir... /usr/share/man/man1
checking for Perl installation variable installman3dir... /usr/share/man/man3
checking for Perl installation variable installscript... /usr/bin
checking for Perl installation variable installsitearch... /usr/local/lib/perl5/5.16.3/i686-linux
checking for Perl installation variable installsitelib... /usr/local/lib/perl5/5.16.3
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for wait3 that fills in rusage... yes
checking for nm... /usr/bin/nm
checking for Perl module IO::Socket... ok
checking for Perl module MIME::Tools 5.410 ()... ok
checking for Perl module MIME::WordDecoder... ok
checking for Perl module Digest::SHA1... ok
checking for Perl module Mail::SpamAssassin 3.0 or better... yes
checking for Perl module HTML::Parser... yes
checking for Perl module Archive::Zip... yes
checking MIME-Tools version... 5.504
checking for Perl module Sys::Syslog... ok
checking for Perl module Unix::Syslog... no
checking for Perl module ExtUtils::Embed... ok
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking whether stdint.h defines uint32_t... yes
checking whether sys/types.h defines uint32_t... no
checking whether sig_atomic_t is defined... yes
checking whether i686-pc-linux-gnu-gcc accepts -pthread... yes
checking if we can embed a Perl interpreter in C... yes
checking if it is safe to destroy and recreate a Perl interpreter... yes
checking for res_init in -lresolv... no
checking for htons in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for pthread_once in -lpthread... yes
checking for initgroups... yes
checking for getpwnam_r... yes
checking for setrlimit... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for readdir_r... yes
checking for pathconf... yes
checking for inet_ntop... yes
checking for antivir... /bin/false
checking for vascan... /bin/false
checking for uvscan... /bin/false
checking for bdc... /bin/false
checking for sweep... /bin/false
checking for savscan... /bin/false
checking for vscan... /bin/false
checking for kavscanner... /bin/false
checking for clamscan... /usr/bin/clamscan
checking for AvpLinux... /bin/false
checking for kavdaemon... /bin/false
checking for aveclient... /bin/false
checking for csav... /bin/false
checking for fsav... /bin/false
checking for f-prot... /bin/false
checking for fpscan... /bin/false
checking for sophie... /bin/false
checking for nvcc... /bin/false
checking for clamd... /usr/sbin/clamd
checking for trophie... /bin/false
checking for nod32cli... /bin/false
checking for sendmail... no
checking for rm... /bin/rm
configure: WARNING: Oops.. I couldn't find the 'sendmail' program.  Please install it.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/mail-filter/mimedefang-2.75/work/mimedefang-2.75/config.log
 * ERROR: mail-filter/mimedefang-2.75::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2201:  Called econf '--with-user=defang' '--enable-poll' '--enable-clamav' '--enable-clamd'
 *   phase-helpers.sh, line  584:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=mail-filter/mimedefang-2.75::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-filter/mimedefang-2.75::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-filter/mimedefang-2.75/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-filter/mimedefang-2.75/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-filter/mimedefang-2.75/work/mimedefang-2.75'
 * S: '/var/tmp/portage/mail-filter/mimedefang-2.75/work/mimedefang-2.75'
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-24 12:59:00 UTC

*** This bug has been marked as a duplicate of bug 514412 ***