Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110427 - incorrect emerge order (qt before mysql) in fresh install when doing "emerge dbus ivman hal"
Summary: incorrect emerge order (qt before mysql) in fresh install when doing "emerge ...
Status: RESOLVED DUPLICATE of bug 117831
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 04:24 UTC by Timothee Groleau
Modified: 2006-02-09 13:47 UTC (History)
2 users (show)

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


Attachments
emerge -eDp qt (emerge -eDp qt,4.90 KB, text/plain)
2006-02-06 12:49 UTC, Michiel de Bruijne
Details
emerge -edDp qt (emerge -edDp qt,50.44 KB, text/plain)
2006-02-06 12:53 UTC, Michiel de Bruijne
Details
world (world,1.24 KB, text/plain)
2006-02-07 11:04 UTC, Michiel de Bruijne
Details
emerge -edDp qt 2.1_pre4-r1 (emerge -edDp qt 2.1_pre4-r1,41.69 KB, text/plain)
2006-02-07 12:18 UTC, Michiel de Bruijne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothee Groleau 2005-10-25 04:24:46 UTC
mysql was not emerged before qt when doing the command above at a fresh  
install. The emerge process broke halfway. I had to do a manual "emerge qt" to  
fix this (this time mysql is indeed emerge before qt) and then re-issue 
"emerge dbus ivman hal"   

Reproducible: Always
Steps to Reproduce:
1.Start Fresh gentoo install stage3 by following handbook to the letter  
2.set the use flags as seen below  
3.issue first emerge instruction as "emerge dbus ivman hal" 
  
Actual Results:  
emerge starts fine but qt compilation starts before mysql has been emerged.    
Error occurs as "mysql.h cannot be found" occurs and emerge stops. 

Expected Results:  
mysql should get emerged before qt and the "emerge dbus ivman hal" should 
process without glitches. 

emerge --info: 
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.13-gentoo-r3 i686) 
================================================================= 
System uname: 2.6.13-gentoo-r3 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.6.12 
dev-lang/python:     2.3.5, 2.4.2 
sys-apps/sandbox:    1.2.11 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -pipe -march=athlon-xp" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -pipe -march=athlon-xp" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://ftp.isu.edu.tw/pub/Linux/Gentoo 
ftp://mirror.averse.net/pub/gentoo http://mirror.averse.net/pub/gentoo/" 
LINGUAS="en fr" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" 
USE="x86 X aac alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts 
bzip2 cdparanoia cdr cjk crypt cups curl dbus dvd dvdr dvdread eds emboss 
encode fam ffmpeg flac flash foomaticdb fortran ftp gd gdbm gif gphoto2 gpm 
gstreamer hal imagemagick imlib ipv6 java javascript joystick jpeg kde libg++ 
libwww mad mikmod ming motif mozilla mp3 mpeg mysql ncurses nls nsplugin 
nvidia ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime 
readline samba scanner sdl slp soap spell spl sqlite ssl tcpd theora tidy tiff 
truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis 
win32codecs wmf xine xml2 xmms xv xvid zlib linguas_en linguas_fr userland_GNU 
kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Dan Armak (RETIRED) gentoo-dev 2005-10-25 12:16:17 UTC
qt certainly has a dep mysql? ( dev-db/mysql ). emerge dbus ivman hal -pve    
produces the correct result here (mysql immediately before qt). And you say    
'emerge qt' fixed things.    
   
If it's not a user error of some kind, it's mMost likely it's a bug in portage.   
First thing to do is reproduce it. Can you still do that (perhaps with emerge   
-pve)? If so we can CC the portage team. BTW, if you try to reproduce it,  
please try out the latest ~arch portage (2.0.53_rc6 atm). 
 
Or maybe someone can recognize a known portage bug that might create this 
behavior? 
   
Comment 2 meyerm 2005-10-30 01:12:29 UTC
The same for me but this time on a stage1 ~ppc (2005.1 as base) and postgres. 
Neither postgre nor libpq are installed before portage tries to emerge qt. 
Comment 3 Josh Green 2005-11-26 12:48:47 UTC
I was having this same problem after a fresh install and attempting to emerge
gnome-2.12.1 (which is still in testing).  I found that I had added
mysql-5.0.16-r3 to my package.keywords (as output from ACCEPT_KEYWORDS="~x86"
emerge -p =gnome-2.12.1).  Removed this from package.keywords, then "emerge
gnome" again and this time mysql-4.1.14 was merged and in the correct order. 
Maybe this is something related to emerging qt and latest mysql together?
Comment 4 Michiel de Bruijne 2006-02-05 09:20:33 UTC
I have the same problem over here, I have added mysql to my USE-flags;


emerge world -DNuvp

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild   R   ] x11-libs/qt-3.3.4-r8  +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc -ipv6 +mysql* -nas -odbc +opengl -postgres -sqlite -xinerama 0 kB
[ebuild  N    ] dev-db/mysql-4.1.14  +berkdb -big-tables -cluster -debug -doc -extraengine -geometry -minimal -perl +readline (-selinux) +ssl -static +tcpd -utf8 16,724 kB
[ebuild   R   ] net-fs/samba-3.0.14a-r2  -acl +cups -doc -examples -kerberos -ldap -libclamav +mysql* -oav +pam -postgres +python -quotas +readline (-selinux) -winbind -xml +xml2 0 kB
[ebuild  N    ] dev-perl/Net-Daemon-0.38  30 kB
[ebuild  N    ] dev-perl/PlRPC-0.2018  17 kB
[ebuild  N    ] dev-perl/DBI-1.48  369 kB
[ebuild  N    ] dev-perl/DBD-mysql-2.9007  114 kB
[ebuild   R   ] mail-filter/spamassassin-3.1.0  +berkdb -doc +mysql* -qmail +ssl -tools 0 kB
[ebuild   R   ] mail-mta/postfix-2.2.5  -hardened -ipv6 -ldap -mailwrapper -mbox +mysql* -nis +pam -postgres -sasl (-selinux) +ssl -vda 0 kB
[ebuild   R   ] net-libs/libwww-5.4.0-r4  +mysql* +ssl 0 kB
[ebuild   R   ] dev-php/mod_php-4.4.0-r9  +X +apache2 +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild   R   ] dev-php/php-4.4.0-r4  +X +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild   R   ] www-apps/gallery-2.0.2-r1  +ffmpeg -gd +imagemagick +mysql* -netpbm -postgres -vhosts 0 kB
[ebuild   R   ] app-mobilephone/gnokii-0.6.10  +X -bluetooth -irda +mysql* +nls -postgres -sms 0 kB
[ebuild   R   ] dev-libs/cyrus-sasl-2.1.20  -authdaemond +berkdb +gdbm +java -kerberos -ldap +mysql* +pam -postgres +ssl -static 0 kB
[ebuild   R   ] app-office/kexi-1.4.2  +arts -debug +kdexdeltas +mysql* -postgres -xinerama 0 kB


Notice that portage want to emerge qt before mysql (it fails because qt can't find mysql headers)







emerge world -DNuvtp

These are the packages that I would merge, in reverse order:

Calculating world dependencies ...done!
[nomerge      ] app-office/koffice-meta-1.4.2
[ebuild   R   ]  app-office/kexi-1.4.2  +arts -debug +kdexdeltas +mysql* -postgres -xinerama 0 kB
[nomerge      ] kde-base/kde-meta-3.4.3  -accessibility
[nomerge      ]  kde-base/kdepim-meta-3.4.3  +pda
[nomerge      ]   kde-base/kontact-specialdates-3.4.3  +arts -debug +kdeenablefinal +kdexdeltas -xinerama
[nomerge      ]    kde-base/kmail-3.4.3  +arts -debug +kdeenablefinal +kdexdeltas -xinerama
[nomerge      ]     kde-base/kdebase-kioslaves-3.4.3  +arts -debug +hal +kdeenablefinal +kdexdeltas -ldap -openexr +samba -xinerama
[ebuild   R   ]      dev-libs/cyrus-sasl-2.1.20  -authdaemond +berkdb +gdbm +java -kerberos -ldap +mysql* +pam -postgres +ssl -static 0 kB
[nomerge      ]   kde-base/korganizer-3.4.3  +arts -debug +kdeenablefinal +kdexdeltas -xinerama
[nomerge      ]    kde-base/kdepim-kresources-3.4.3  +arts -debug +kdeenablefinal +kdexdeltas -xinerama
[nomerge      ]     kde-base/kaddressbook-3.4.3  +arts -debug +gnokii +kdeenablefinal +kdexdeltas -xinerama
[ebuild   R   ]      app-mobilephone/gnokii-0.6.10  +X -bluetooth -irda +mysql* +nls -postgres -sms 0 kB
[ebuild   R   ] www-apps/gallery-2.0.2-r1  +ffmpeg -gd +imagemagick +mysql* -netpbm -postgres -vhosts 0 kB
[ebuild   R   ] dev-php/php-4.4.0-r4  +X +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild   R   ]  dev-php/mod_php-4.4.0-r9  +X +apache2 +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild   R   ]   net-libs/libwww-5.4.0-r4  +mysql* +ssl 0 kB
[nomerge      ] sys-process/vixie-cron-4.1-r8  -debug +pam (-selinux)
[ebuild   R   ]  mail-mta/postfix-2.2.5  -hardened -ipv6 -ldap -mailwrapper -mbox +mysql* -nis +pam -postgres -sasl (-selinux) +ssl -vda 0 kB
[ebuild   R   ] mail-filter/spamassassin-3.1.0  +berkdb -doc +mysql* -qmail +ssl -tools 0 kB
[ebuild  N    ]  dev-perl/DBD-mysql-2.9007  114 kB
[ebuild  N    ]  dev-perl/DBI-1.48  369 kB
[ebuild  N    ]   dev-perl/PlRPC-0.2018  17 kB
[ebuild  N    ]    dev-perl/Net-Daemon-0.38  30 kB
[ebuild   R   ] net-fs/samba-3.0.14a-r2  -acl +cups -doc -examples -kerberos -ldap -libclamav +mysql* -oav +pam -postgres +python -quotas +readline (-selinux) -winbind -xml +xml2 0 kB
[ebuild  N    ]  dev-db/mysql-4.1.14  +berkdb -big-tables -cluster -debug -doc -extraengine -geometry -minimal -perl +readline (-selinux) +ssl -static +tcpd -utf8 16,724 kB
[nomerge      ]  dev-libs/popt-1.7-r1  +nls
[ebuild   R   ]   x11-libs/qt-3.3.4-r8  +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc -ipv6 +mysql* -nas -odbc +opengl -postgres -sqlite -xinerama 0 kB





However if I do emerge qt -vp;

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-db/mysql-4.1.14  +berkdb -big-tables -cluster -debug -doc -extraengine -geometry -minimal -perl +readline (-selinux) +ssl -static +tcpd -utf8 16,724 kB
[ebuild   R   ] x11-libs/qt-3.3.4-r8  +cups -debug -doc -examples -firebird +gif -immqt -immqt-bc -ipv6 +mysql* -nas -odbc +opengl -postgres -sqlite -xinerama 0 kB


mysql is emerged first and therefor emerge world -DNuv is able to emerge without problems.



emerge --info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="nl"
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="x86 X aac alsa apache2 apm arts artswrappersuid asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cddb cdinstall cdr crypt cups curl dv dvd dvdr eds emboss encode exif expat fam ffmpeg flac font-server foomaticdb fortran gdbm gif gnokii gphoto2 gpm gstreamer hal idn ieee1394 imagemagick imlib jack java jpeg kde kdeenablefinal kdexdeltas kdgraphics lcms libg++ libwww mad mhash mikmod mmx mng motif mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl pam pcre pda pdflib png ppds python qt quicktime rdesktop readline real samba sdl speex spell sse ssl svga tcpd theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi win32codecs xine xml2 xv xvid xvmc zlib linguas_nl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS


If more information is required please let me (us) know.
Comment 5 Michiel de Bruijne 2006-02-05 09:26:40 UTC
CC-ing the portageteam as Dan said if it isn't an user error (most unlikely because multiple user have the same problem) it's most likely that it is a Portage error.
Comment 6 Brian Harring (RETIRED) gentoo-dev 2006-02-06 01:09:47 UTC
attach
emerge -eDp qt
and
emerge -edDp qt
as logs please.
Comment 7 Michiel de Bruijne 2006-02-06 12:49:15 UTC
Created attachment 79052 [details]
emerge -eDp qt

emerge -eDp qt
Comment 8 Michiel de Bruijne 2006-02-06 12:53:39 UTC
Created attachment 79053 [details]
emerge -edDp qt

emerge -edDp qt
Comment 9 Michiel de Bruijne 2006-02-06 12:57:13 UTC
(In reply to comment #6)
> attach
> emerge -eDp qt
> and
> emerge -edDp qt
> as logs please.
> 

Done. If more information is required please let me (us) know.
Comment 10 Brian Harring (RETIRED) gentoo-dev 2006-02-07 02:19:15 UTC
> Done. If more information is required please let me (us) know.
world file please; I'm having a helluva time duplicating this one.
Additionally; verifying this *stilL* occurs under .54, that you haven't upgraded since, right?

I'd be curious if 2.1 misbehaves also...
Comment 11 Michiel de Bruijne 2006-02-07 11:04:36 UTC
Created attachment 79145 [details]
world

world
Comment 12 Michiel de Bruijne 2006-02-07 11:15:01 UTC
(In reply to comment #10)
> > Done. If more information is required please let me (us) know.
> world file please; I'm having a helluva time duplicating this one.

Done, see attachment

> Additionally; verifying this *stilL* occurs under .54, that you haven't
> upgraded since, right?

I'm not the original poster of this bug, just happen to have the same problem, I'm using .54 (see comment #4 for emerge --info)

> I'd be curious if 2.1 misbehaves also...

If I upgrade to 2.1_pre4-r1 can I safely downgrade to .54? Is a special procedure required if I downgrade to .54?

Thanks for your help so far and again; if more information is required please let me (us) know.
Comment 13 Brian Harring (RETIRED) gentoo-dev 2006-02-07 11:18:29 UTC
(In reply to comment #12)
> > I'd be curious if 2.1 misbehaves also...
> If I upgrade to 2.1_pre4-r1 can I safely downgrade to .54?
Yep.  after upgrading, run emerge --metadata
After downgrading, run emerge --metadata

That's all that is required for 2.1.
Comment 14 Michiel de Bruijne 2006-02-07 12:18:15 UTC
Created attachment 79151 [details]
emerge -edDp qt 2.1_pre4-r1
Comment 15 Michiel de Bruijne 2006-02-07 12:22:28 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > > I'd be curious if 2.1 misbehaves also...
> > If I upgrade to 2.1_pre4-r1 can I safely downgrade to .54?
> Yep.  after upgrading, run emerge --metadata
> After downgrading, run emerge --metadata
> 
> That's all that is required for 2.1.
> 

Just tested with 2.1_pre4-r1 and portage is going to emerge qt after mysql, just like the dependencies are defined in the ebuild (see attachment). Something seems to be wrong with .54

Comment 16 Brian Harring (RETIRED) gentoo-dev 2006-02-08 07:33:26 UTC
(In reply to comment #15)
> Just tested with 2.1_pre4-r1 and portage is going to emerge qt after mysql,
> just like the dependencies are defined in the ebuild (see attachment).
> Something seems to be wrong with .54
You have no idea how good it is to hear that :)

||() parsing was corrected in 2.1.x-
|| ( blah dar ( usef? ( asdf ) ) )
With USE="-usef" could evalute to 
|| ( blah dar () )
with the '()' empty node being a valid satisfier. 

Comment 17 Michiel de Bruijne 2006-02-08 09:46:08 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > Just tested with 2.1_pre4-r1 and portage is going to emerge qt after mysql,
> > just like the dependencies are defined in the ebuild (see attachment).
> > Something seems to be wrong with .54
> You have no idea how good it is to hear that :)
>
> ||() parsing was corrected in 2.1.x-
> || ( blah dar ( usef? ( asdf ) ) )
> With USE="-usef" could evalute to 
> || ( blah dar () )
> with the '()' empty node being a valid satisfier. 
> 

Nice to see that you are happy ;-)

Also a big thank you for the time/effort you put in the development of portage, you (and the rest of the portage devs) are doing a great job, it's really appreciated.

What will be the next step? Are you going to backport the parsingcode to 2.0 or do you expect to stabilize 2.1 in the near future? Is it possible to give us a timeframe when this is fixed in a stable marked version?

Maybe you want to reassign this bug from kde to dev-portage (cc kde).
Comment 18 Zac Medico gentoo-dev 2006-02-09 13:47:26 UTC
(In reply to comment #17)
> Is it possible to give us a
> timeframe when this is fixed in a stable marked version?

It seems to be working pretty well in 2.1_pre4 so we'll see...


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