<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>96632</bug_id>
          
          <creation_ts>2005-06-20 11:28 0000</creation_ts>
          <short_desc>a little help to run xmail!</short_desc>
          <delta_ts>2005-06-29 14:18:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>TEST-REQUEST</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>97405</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>strites@gmail.com</reporter>
          <assigned_to>net-mail@gentoo.org</assigned_to>
          <cc>jakub@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>strites@gmail.com</who>
            <bug_when>2005-06-20 11:28:26 0000</bug_when>
            <thetext>This program compiled well in the amd64 platform and it maked succesfully the    
tests.    
   
It created the /chroot/xmail/var/MailRoot/ folder.  
  
/chroot/xmail/var/MailRoot/bin/XMail exixts.  
  
The variables in /etc/conf.d/xmail are all OK (fot what regards the path)  
  
The problem is here:  
  
        start-stop-daemon --start -c xmail -r ${CHROOT} \  
                --startas ${MAIL_EXEC} --pidfile=${MAIL_PID} -- \  
                ${MAIL_CMD_LINE}  
  
  
From /etc/conf.d/xmail  
  
  
CHROOT=&quot;/chroot/xmail&quot;  
MAIL_ROOT=/var/MailRoot  
export CHROOT MAIL_ROOT  
  
# variables for simplicity sake  
MAIL_NAME=XMail  
MAIL_EXEC=/var/MailRoot/bin/$MAIL_NAME  
MAIL_PID=/var/run/$MAIL_NAME.pid  
  
I&apos;m not sure, but I think this is not related to the &quot;amd64&quot;, or yes? 

Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS=x86 emerge xmail  
2.(a base configuration) 
3./etc/init.d/xmail start 
 
  
Actual Results:  
* Re-caching dependency info (mtimes differ)... 
 * Starting XMail ... 
start-stop-daemon: Unable to start /var/MailRoot/bin/XMail: No such file or 
directory 
 


Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64) 
================================================================= 
System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 10 2005, 12:36:42)] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r4 
ACCEPT_KEYWORDS=&quot;amd64&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-march=k8 -O2 -pipe&quot; 
CHOST=&quot;x86_64-pc-linux-gnu&quot; 
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot; 
CXXFLAGS=&quot;-march=k8 -O2 -pipe&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms 
strict test&quot; 
GENTOO_MIRRORS=&quot;ftp://gentoo.inode.at/source http://gentoo.osuosl.org&quot; 
LINGUAS=&quot;it&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/zugaina-portage /usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot; 
USE=&quot;amd64 X aac aalib acpi alsa altra_var1 altra_var2 arts audiofile avi 
bash-completion berkdb bidi bitmap-fonts canna cdr chasen cjk crypt cups curl 
dvb dvd dvdr dvdread encode fam fbcon ffmpeg flac font-server foomatic fortran 
freewnn ftp gd gdbm ggi gif gphoto2 gpm gtk gtk2 icq imagemagick imap imlib 
immqt-bc java javascript jikes jp2 jpeg junit kde lzw lzw-tiff mad maildir 
matroska mp3 mpeg msn ncurses nls nptl nvidia ogg oggvorbis openal opengl oss 
pam pdflib perl png ppds python qt quicktime readline real sdl spell ssl tcpd 
tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis 
xine xml2 xmms xpm xrandr xv xvid yahoo zlib linguas_it userland_GNU 
kernel_linux elibc_glibc&quot; 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-20 11:39:35 0000</bug_when>
            <thetext>Definitely not amd654 specific, I had the same problem on x86 when I tried last;
the whole thing is pretty *ahem* non-standard. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>strites@gmail.com</who>
            <bug_when>2005-06-21 04:30:21 0000</bug_when>
            <thetext>so I&apos;m changing description accordingly ;) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>strites@gmail.com</who>
            <bug_when>2005-06-23 04:40:29 0000</bug_when>
            <thetext>the problem seems to be in the chroot (/chroot/xmail) and in the change of user 
(xmail). 
 
I did a initscript without these 2 and it runs. (as root and without 
chroot :/ ) 
 
Is there a way to get it working as planned by portage? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-29 11:05:47 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; the problem seems to be in the chroot (/chroot/xmail) and in the change of user 
&gt; (xmail). 

Maybe we found the problem, so two questions:

1/ Do you have net-firewall/iptables installed?

2/ Is CONFIG_IP_NF_TARGET_REDIRECT enabled (either as a module or compiled into
kernel) on your box?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-29 13:20:28 0000</bug_when>
            <thetext>Created an attachment (id=62262)
Added RDEPEND on net-firewall/iptables and checks for needed kernel config
options
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langthang@gentoo.org</who>
            <bug_when>2005-06-29 14:18:21 0000</bug_when>
            <thetext>I commited new ebuild with the fix (without revision bump), please wait for an
hour or so, sync portage tree, reemerge xmail then try again.
Jacob, thanks for the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62262</attachid>
            <date>2005-06-29 13:20 0000</date>
            <desc>Added RDEPEND on net-firewall/iptables and checks for needed kernel config options</desc>
            <filename>xmail-1.21.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHhtYWlsLTEuMjEuZWJ1aWxkLm9yaWcJMjAwNS0wMS0yNyAxODoyNTozNS4wMDAwMDAwMDAg
KzAxMDAKKysrIHhtYWlsLTEuMjEuZWJ1aWxkCTIwMDUtMDYtMjkgMjI6MDQ6MjkuMDAwMDAwMDAw
ICswMjAwCkBAIC0yLDcgKzIsNyBAQAogIyBEaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2Yg
dGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYyCiAjICRIZWFkZXI6IC92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