Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70137 - postfix 2.1.5-r1 fails to install, absolute path error
Summary: postfix 2.1.5-r1 fails to install, absolute path error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tuan Van (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-05 00:25 UTC by micron
Modified: 2004-11-08 15:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
postfix-2.1.5-r1.ebuild (postfix-2.1.5-r1.ebuild,7.32 KB, text/plain)
2004-11-05 12:39 UTC, Tuan Van (RETIRED)
Details
postfix-2.1.5-r1.ebuild (postfix-2.1.5-r1.ebuild,7.32 KB, text/plain)
2004-11-05 12:56 UTC, Tuan Van (RETIRED)
Details
postfix installation log (postfix-install.log,6.39 KB, text/plain)
2004-11-07 00:57 UTC, micron
Details
postfix install log - correct version (postfix-install.log,6.36 KB, text/plain)
2004-11-08 01:24 UTC, micron
Details
postfix latest output (postfix-install.log,339.35 KB, text/plain)
2004-11-08 12:24 UTC, micron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description micron 2004-11-05 00:25:56 UTC
postfix compile successfully but it doesn't merge.
Here's the output:

>>> Test phase [not enabled]: mail-mta/postfix-2.1.5-r1

>>> Install postfix-2.1.5-r1 into /var/tmp/portage/postfix-2.1.5-r1/image/ category mail-mta
postfix-install: Error: "" should be "no" or an absolute path name.

!!! ERROR: mail-mta/postfix-2.1.5-r1 failed.
!!! Function src_install, Line 161, Exitcode 1
!!! postfix-install failed
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1.emerge postfix
2.
3.

Actual Results:  
Postfix doesn't install itself 

Expected Results:  
Having postfix installed 

Portage 2.0.51-r2 (default-linux/x86/2004.0, gcc-3.3.4, 
glibc-2.3.4.20040808-r1, 2.6.5 i686) 
================================================================= 
System uname: 2.6.5 i686 Celeron (Coppermine) 
Gentoo Base System version 1.4.16 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox sfperms" 
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ 
http://gentoo.oregonstate.edu" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X apache2 avi berkdb bitmap-fonts crypt cups esd evms2 f77 fam foomaticdb 
gdbm gif gpm gtk gtk2 imap imlib java jpeg junit ldap libg++ libwww mad 
maildir motif mpeg ncurses nls pam pdflib perl postgres python qt readline 
samba sasl slang ssl svga tcltk tcpd tiff truetype x86 xml2 xv zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-11-05 08:10:56 UTC
Is this a upgrade or fresh install? I can't reproduce with a fresh install?
Comment 2 micron 2004-11-05 08:27:20 UTC
It's an upgrade.
I'm already running mail-mta/postfix-2.1.3

I've tried to unmerge postfix-2.1.3 and then emerge the newer one but nothig changed: still the same error
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-11-05 08:42:59 UTC
please post the output of `grep -vE '^#|^$' /etc/postfix/main.cf`.
Comment 4 micron 2004-11-05 10:06:29 UTC
Here's the output:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = unixum.unixum.no-ip.org
mydomain = unixum.no-ip.org
inet_interfaces = all
mydestination = $myhostname, $mydomain, $myhostname.$mydomain, localhost, localhost.localdomain, localhost.$mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.10.0/24, 127.0.0.0/8
relay_domains = $mydestination
relayhost = [smtp.tiscali.it]
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
home_mailbox = .maildir/

mailbox_command = /usr/bin/procmail -a $DOMAIN

header_checks = regexp:/etc/postfix/header_checks
content_filter = smtp-amavis:[127.0.0.1]:10024
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.0.16-r1/readme
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains, reject
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_security_options = noanonymous
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_daemon_random_source = dev:/dev/urandom
tls_random_source = dev:/dev/urandom
Comment 5 Tuan Van (RETIRED) gentoo-dev 2004-11-05 12:39:05 UTC
Created attachment 43358 [details]
postfix-2.1.5-r1.ebuild

Please try the attached ebuild. If you have FEATURES="strict" in
/etc/make.conf, you have to run `ebuild /path/to/postfix-2.1.5-r1.ebuild
digest` again.
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-11-05 12:56:43 UTC
Created attachment 43359 [details]
postfix-2.1.5-r1.ebuild

oops. missing a "\"
Comment 7 micron 2004-11-06 01:27:50 UTC
I've downloaded your second ebuild.
I'm aware of "local-ebuild" procedure, so I created a ney postfix's dir under my /urs/local/portage. Next I made an ebuild xxx digest but I got a problem: using latest stable portage (2.0.51-r2) I wasn't able to digest the files 'cause of miissing patch files. So I made an emerge -f /.../xxx.ebuild to fetch this missing files but it didn't fetch anything because there was no digest file.
It seems a dog eating his tail...
Do you now how to solve this problem without copying teh original dir and then replacing the original ebuild with the mofied one?

However I tested the new ebuild and I got the same error... :(
Comment 8 Tuan Van (RETIRED) gentoo-dev 2004-11-06 10:39:01 UTC
please do this assumed you didn't change any of the default PORTAGE paths.
# cd /usr/portage/mail-mta/postfix/    #not the local overlay.
# FEATURES="-userpriv -usersanbox" ebuild postfix-2.1.5-r1.ebuild clean install
# cd /var/tmp/portage/postfix-2.1.5-r1/work/postfix-2.1.5/
# /bin/sh -x postfix-install -non-interactive install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ daemon_directory=/usr/lib/postfixprogram_directory=/usr/lib/postfix config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme manpage_directory=/usr/share/man mail_owner=postfix setgid_group=postdrop > /tmp/postfix-install.log 2>&1

then attached the /tmp/postfix-install.log here. Thanks.
Comment 9 micron 2004-11-07 00:57:06 UTC
Created attachment 43457 [details]
postfix installation log

Here's the wanted log
Comment 10 Tuan Van (RETIRED) gentoo-dev 2004-11-07 17:53:04 UTC
In previous comment, I did a copy and paste and I lost a space. Please try again  and attach the new log here. Sorry.

cd /usr/portage/mail-mta/postfix/
FEATURES="-userpriv -usersanbox" ebuild postfix-2.1.5-r1.ebuild clean install
cd /var/tmp/portage/postfix-2.1.5-r1/work/postfix-2.1.5/
/bin/sh -x postfix-install -non-interactive \
install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ \
daemon_directory=/usr/lib/postfix \
program_directory=/usr/lib/postfix \
config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults \
readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme \
manpage_directory=/usr/share/man \
mail_owner=postfix \
setgid_group=postdrop > /tmp/postfix-install.log 2>&1

Comment 11 micron 2004-11-08 01:24:10 UTC
Created attachment 43517 [details]
postfix install log - correct version
Comment 12 Tuan Van (RETIRED) gentoo-dev 2004-11-08 11:04:55 UTC
for some unknown reasons, your system doesn't set the default value for variables that have not been specified. So please try this and post back the install log. Thanks for your patient.

/bin/sh -x postfix-install -non-interactive \
install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ \
daemon_directory=/usr/lib/postfix \
command_directory=/usr/sbin \
queue_directory=/var/spool/postfix \
mail_owner=postfix \
setgid_group=postdrop \
sendmail_path=/usr/sbin/sendmail \
newaliases_path=/usr/bin/newaliases \
mailq_path=/usr/bin/mailq \
manpage_directory=/usr/share/man \
html_directory=/usr/share/doc/postfix-2.1.5-r1/html \
readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme \
program_directory=/usr/lib/postfix \
config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults \
> /tmp/postfix-install.log 2>&1
Comment 13 micron 2004-11-08 12:24:51 UTC
Created attachment 43543 [details]
postfix latest output

Here's the latest output
Comment 14 Tuan Van (RETIRED) gentoo-dev 2004-11-08 13:10:53 UTC
quoted from the latest log.

+ bin/postconf -c /var/tmp/portage/postfix-2.1.5-r1/image//usr/share/doc/postfix-2.1.5-r1/defaults -e 'daemon_directory = /usr/lib/postfix' 'command_directory = /usr/sbin' 'queue_directory = /var/spool/postfix' 'mail_owner = postfix' 'setgid_group = postdrop' 'sendmail_path = /usr/sbin/sendmail' 'mailq_path = /usr/bin/mailq' 'newaliases_path = /usr/bin/newaliases' 'html_directory = /usr/share/doc/postfix-2.1.5-r1/html' 'manpage_directory = /usr/share/man' 'sample_directory = ' 'readme_directory = /usr/share/doc/postfix-2.1.5-r1/readme'
postfix-install: line 717: 22632 Illegal instruction     bin/postconf -c $CONFIG_DIRECTORY -e "daemon_directory = $daemon_directory" "command_directory = $command_directory" "queue_directory = $queue_directory" "mail_owner = $mail_owner" "setgid_group = $setgid_group" "sendmail_path = $sendmail_path" "mailq_path = $mailq_path" "newaliases_path = $newaliases_path" "html_directory = $html_directory" "manpage_directory = $manpage_directory" "sample_directory = $sample_directory" "readme_directory = $readme_directory"
+ exit 1

the Illegal instruction error doesn't look good. It looks like something wrong with your CFLAGS settings or ccache. To narrow down the problem please emerge postfix as:
# FEATURES="-ccache" CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS=${CFLAGS} emerge postfix

If you have access to IRC, please join #gentoo-dev on irc.freenode.net and /msg langthang. I am still there in 3 more hours. It's easier/faster to help you on IRC.
Comment 15 micron 2004-11-08 15:03:54 UTC
Thanks, emerged without ccache and with O2 as compiler flag and postfix emerged successfully ;)
Comment 16 Tuan Van (RETIRED) gentoo-dev 2004-11-08 15:35:44 UTC
glad that it works for you. You may want to check your `cat /proc/cpuinfo` output. It could be that your Celeron is not a pentium2. If it is the case, change your CFLAGS so -march=pentium should be beeter or you will have a lot more problem with other packages, not just postfix.