Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325123 - app-misc/email2trac does not allow configuration of MTA user
Summary: app-misc/email2trac does not allow configuration of MTA user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 332785
  Show dependency tree
 
Reported: 2010-06-22 21:53 UTC by Daniel Westermann-Clark
Modified: 2010-08-22 07:35 UTC (History)
1 user (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 Daniel Westermann-Clark 2010-06-22 21:53:26 UTC
app-misc/email2trac-1.4.0 does not allow configuration of the MTA user. It looks like the configure script changed from version 1.3.2 to version 1.4.0:

./configure --help
[...]
  --with-mta_user=USER    Specify the name of the user that your MTA use,
                          default=nobody
[...]

The ebuild references --with-MTA_user.

Reproducible: Always

Steps to Reproduce:
1. Set EMAIL2TRAC_MTA_USER="postfix" in /etc/portage/env/app-misc/email2trac
2. emerge -av app-misc/email2trac

Actual Results:  
Below, note that the ./configure line shows --with-MTA_user=postfix but the compilation step shows -DMTA_USER=\"nobody\".

>>> Emerging (1 of 1) app-misc/email2trac-1.4.0
 * email2trac-1.4.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                        [ ok ]
 * checking auxfile checksums ;-) ...                                       [ ok ]
 * checking miscfile checksums ;-) ...                                      [ ok ]
 * CPV:  app-misc/email2trac-1.4.0
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
 * You can set the following variables in make.conf:
 *  - EMAIL2TRAC_TRAC_USER (default: apache)
 *  - EMAIL2TRAC_MTA_USER (default: nobody)
>>> Unpacking source...
>>> Unpacking email2trac-1.4.0.tar.gz to /var/tmp/portage/app-misc/email2trac-1.4.0/work
>>> Source unpacked in /var/tmp/portage/app-misc/email2trac-1.4.0/work
>>> Preparing source in /var/tmp/portage/app-misc/email2trac-1.4.0/work/email2trac-1.4.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-misc/email2trac-1.4.0/work/email2trac-1.4.0 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --sysconfdir=/etc/email2trac/ --with-trac_user=apache --with-MTA_user=postfix
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether x86_64-pc-linux-gnu-gcc needs -traditional... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating email2trac.py
config.status: creating delete_spam.py
>>> Source configured.

>>> Compiling source in /var/tmp/portage/app-misc/email2trac-1.4.0/work/email2trac-1.4.0 ...
make -j3
x86_64-pc-linux-gnu-gcc -DMTA_USER=\"nobody\" -DTRAC_USER=\"apache\" -DTRAC_SCRIPT_NAME=\"email2trac\" -DTRAC_SCRIPT_PATH=\"/usr/bin\" -DDEBUG=0 -o run_email2trac run_email2trac.c
>>> Source compiled.
>>> Test phase [not enabled]: app-misc/email2trac-1.4.0

>>> Install email2trac-1.4.0 into /var/tmp/portage/app-misc/email2trac-1.4.0/image/ category app-misc
make -j3 DESTDIR=/var/tmp/portage/app-misc/email2trac-1.4.0/image/ install
if [ ! -f  /var/tmp/portage/app-misc/email2trac-1.4.0/image///etc/email2trac//email2trac.conf ] ; \
        then \ 
                ./install-sh -c -m 644 -o root email2trac.conf /var/tmp/portage/app-misc/email2trac-1.4.0/image///etc/email2trac//email2trac.conf ;\
        fi
./install-sh -d /var/tmp/portage/app-misc/email2trac-1.4.0/image//usr/bin
for script in delete_spam.py email2trac.py ; \
        do \   
          name=`basename $script '.py'` ;\
          ./install-sh -m 755 -o root $script  /var/tmp/portage/app-misc/email2trac-1.4.0/image//usr/bin/$name ;\
        done   
./install-sh -m 4111 -o  root run_email2trac /var/tmp/portage/app-misc/email2trac-1.4.0/image//usr/bin
>>> Completed installing email2trac-1.4.0 into /var/tmp/portage/app-misc/email2trac-1.4.0/image/

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/bin/run_email2trac

>>> Installing (1 of 1) app-misc/email2trac-1.4.0

 * checking 4 files for package collisions
 * >>> SetUID: [chmod go-r] /usr/bin/run_email2trac ...                                                                                                [ ok ]
--- /etc/
--- /etc/email2trac/
>>> /etc/email2trac/._cfg0000_email2trac.conf
--- /usr/
--- /usr/bin/  
>>> /usr/bin/email2trac
>>> /usr/bin/delete_spam
>>> /usr/bin/run_email2trac
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /usr/bin/run_email2trac
--- replaced obj /usr/bin/email2trac
--- replaced obj /usr/bin/delete_spam
--- replaced dir /usr/bin
--- replaced dir /usr
--- replaced obj /etc/email2trac/email2trac.conf
--- replaced dir /etc/email2trac
--- replaced dir /etc
>>> Original instance of package unmerged safely.

Expected Results:  
email2trac should use the correct MTA user.

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32.9 x86_64)
=================================================================
System uname: Linux-2.6.32.9-x86_64-Intel-R-_Xeon-R-_CPU_E5450_@_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 22 Jun 2010 10:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news notitles parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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="/var/lib/layman/dwc /var/lib/layman/ufl-webadmin /var/lib/layman/dwc-perl-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cxx dri emacs fortran gdbm iconv java maildir mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sqlite sse sse2 ssl sysfs tcpd unicode usb vhosts xml 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 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 dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2010-08-22 07:35:58 UTC
fixed, thanks