Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39265 - qmail's queue-fix ebuild has errors on gentoo 1.2 based system
Summary: qmail's queue-fix ebuild has errors on gentoo 1.2 based system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 39271 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-24 10:16 UTC by Haplo
Modified: 2004-05-13 20:25 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 Haplo 2004-01-24 10:16:21 UTC
When I emerge queue-fix it fail's.  I tracked it down to 
src_compile() {
        echo "${CC} ${CFLAGS}" > conf-cc
        echo "${CC} ${LDFLAGS}" > conf-ld
        emake || die
}     
and on my system  ${CC} is not set.  So the queue-fix compile script reads that and trys
exec -march ...
which fails
I replaced the above with
echo "gcc ${CFLAGS}" > conf-cc
echo "gcc ${LDFLAGS}" > conf-ld
and it worked fine.
I imagine this is some kind of old profile incompatibility?


Also, I'll have to remind myself to check back here because currently I'm still setting up my new email system and my old one has been removed so I won't be reciving any email for a bit. :)

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

Actual Results:  
...
./compile fmt_str.c
./compile: line 3: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [fmt_str.o] Error 2
make: *** Waiting for unfinished jobs....
rm -f trymkffo.o trymkffo
make: *** Waiting for unfinished jobs....

!!! ERROR: net-mail/queue-fix-1.4-r2 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)


Expected Results:  
It should compile without a hitch

root@frost /usr/portage/net-mail/queue-fix # emerge --info 
!!! Using `which gcc` to gcc locate version, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.49-r21 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r5, 2.4.24)
=================================================================
System uname: 2.4.24 i586 Pentium 75 - 200
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts avi berkdb crypt cups encode gd gdbm gif gpm imap
imlib jpeg libg++ libwww maildir mikmod mmx motif mpeg mysql ncurses nls
oggvorbis oss pam pdflib perl png python quicktime readline sdl slang smtp spell
ssl svga tcpd tiff truetype vhost x86 xml2 xmms xv"
Comment 1 Haplo 2004-01-24 10:35:22 UTC
Ok. 
Qmail also failed for the same reason so I did some more digging and playing.
Seems my gcc-config profile hasn't been set.  So I googled for how to set it.  And eventually check out the gentoo upgrading to 1.4 guide.  Which lead me to believe that I should upgrade from gcc 2.95.3  to -r8.  This of course will be a time consuming compile on my server which is a 133mhz pentium.  So I thought I'd  just report in what I found so far.  I'll let you know how it turns out.
Comment 2 Haplo 2004-01-24 11:35:53 UTC
*** Bug 39271 has been marked as a duplicate of this bug. ***
Comment 3 Haplo 2004-01-24 16:06:57 UTC
So yeah, compiled gcc 2.95.3 -r8 and its using hte gcc-config profile now
and qmail is compiling

Just wonder if the ebuild should say something if gcc config doesn't have a profile selected or something?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-24 18:27:41 UTC
yeah it's old profile incompatibility.
you'll have to upgrade, unless you want to do that ${CC} -> gcc fix for yourself on all packages that use it.
Comment 5 SpanKY gentoo-dev 2004-01-24 19:07:42 UTC
actually ebuilds should not use ${CC} or ${CXX}
they should use $(gcc-getCC) after doing 'inherit gcc'
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-13 20:25:36 UTC
fixed in cvs.