Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256841 - x11-libs/qt-core-4.4.2 USE=qt3support change isn't a smooth update
Summary: x11-libs/qt-core-4.4.2 USE=qt3support change isn't a smooth update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 239358 264403 (view as bug list)
Depends on: 250020
Blocks: 261959
  Show dependency tree
 
Reported: 2009-01-29 20:13 UTC by Patrick De Pinguin
Modified: 2009-04-02 19:41 UTC (History)
3 users (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 Patrick De Pinguin 2009-01-29 20:13:55 UTC
Previously I had removed qt3 support from my system, but then I noticed that kpdf did need qt3support. I therefore added the qt3support use flag to qt-core, qt-sql, qt-gui.

However, trying to emerge qt-core fails: 
galapagos tmp # emerge -av --newuse --oneshot qt-core

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/qt-core-4.4.2  USE="qt3support* ssl -debug -doc -glib -pch" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) x11-libs/qt-core-4.4.2
 * qt-x11-opensource-src-4.4.2-headers.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                      [ ok ]
 * qt-x11-opensource-src-4.4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                              [ ok ]
 * You have changed the "qt3support" use flag since the last time you have emerged this package.
 *
 * ERROR: x11-libs/qt-core-4.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *    qt-core-4.4.2.ebuild, line   76:  Called die
 * The specific snippet of code:
 *                              die "You must first uninstall these packages before continuing:
 *              ${need_to_remove}"
 *  The die message:
 *   You must first uninstall these packages before continuing:
 *               x11-libs/qt-sql x11-libs/qt-opengl x11-libs/qt-gui
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/emerge/x11-libs:qt-core-4.4.2:20090129-184320.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-core-4.4.2/temp/die.env'.
 *

So, I removed qt-sql and qt-gui, then retried: 

galapagos tmp # emerge -av --oneshot qt-core

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] x11-libs/qt-sql-4.4.2  USE="qt3support sqlite -debug -firebird -mysql -odbc -pch -postgres" 0 kB
[ebuild   R   ] x11-libs/qt-core-4.4.2  USE="qt3support* ssl -debug -doc -glib -pch" 0 kB
[ebuild  N    ] x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild  N    ] x11-libs/qt-qt3support-4.4.2  USE="-accessibility -debug -pch" 0 kB

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 4) x11-libs/qt-sql-4.4.2
 * qt-x11-opensource-src-4.4.2-headers.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                      [ ok ]
 * qt-x11-opensource-src-4.4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                              [ ok ]
 * This package requires '~x11-libs/qt-core-4.4.2' to be built with the following USE flags: 'qt3support*'.

 * Flags marked with an * are missing.
 *
 * ERROR: x11-libs/qt-sql-4.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *     qt-sql-4.4.2.ebuild, line   40:  Called qt4-build_pkg_setup
 *        qt4-build.eclass, line   45:  Called qt4-build_check_use
 *        qt4-build.eclass, line  449:  Called die
 * The specific snippet of code:
 *              die "Missing USE flags found"
 *  The die message:
 *   Missing USE flags found
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/emerge/x11-libs:qt-sql-4.4.2:20090129-184951.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-sql-4.4.2/temp/die.env'.
 *

For some reason, portage takes along qt-sql and qt-gui, and tries to emerge qt-sql *before* qt-core. I do not seem to be able to emerge qt-core first.

I was able to emerge qt-gui separately, but then qt-core complains that I should remove this package first because I added the qt3support flag.

Reproducible: Always




galapagos tmp # emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-tuxonice i686)
=================================================================
System uname: Linux-2.6.26-tuxonice-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.0
Timestamp of tree: Thu, 29 Jan 2009 19:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG=""
LDFLAGS="-Wl,-O1"
LINGUAS="en nl fr sv"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /usr/portage/local/layman/je_fro /home/thomas/src/portage-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa bash-completion blas bluetooth bzip2 cairo cddb cdparanoia cdr cracklib crypt cups dbus dri dts dvd dvdr dvdread encode exif expat ffmpeg firefox flac flash foomaticdb ftp gd gif glut gnutls gphoto2 gtk gtk2 hal ieee1394 imagemagick imap imlib jabber java jikes jpeg jpeg2k kde lirc logrotate mad mikmod mmx mp3 mpeg msn ncurses nls nptl nsplugin ogg opengl pcre pdf perl png ppds qt4 quicktime readline samba sdl spell sse sse2 ssl svg svga tetex theora threads tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wifi win32codecs wmf wxwindows x86 xpm xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="asym dmix dsnoop empty null plug rate route 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl fr sv" LIRC_DEVICES="sir" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick De Pinguin 2009-01-29 21:13:32 UTC
I was able to solve this issue by first emerging qt-core seperately with --nodeps, then emerging qt-gui and qt-sql.

However, I still believe this is a problem in portage or in one of the ebuilds.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-30 02:21:08 UTC
The error messages look quite clear to me.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-01-30 10:59:10 UTC
That die message

 The die message:
 *   You must first uninstall these packages before continuing:
 *               x11-libs/qt-sql x11-libs/qt-opengl x11-libs/qt-gui

is quite clear.

Why is this a bug , since you got informed that you should remove them before emerging qt-core?
Comment 4 Patrick De Pinguin 2009-01-30 17:55:14 UTC
I take it that you didn't see that the description continued below the first log. I write these comments here for clarity:

-----------------
So, I removed qt-sql and qt-gui, then retried: 
galapagos tmp # emerge -av --oneshot qt-core
...
For some reason, portage takes along qt-sql and qt-gui, and tries to emerge
qt-sql *before* qt-core. I do not seem to be able to emerge qt-core first.

I was able to emerge qt-gui separately, but then qt-core complains that I
should remove this package first because I added the qt3support flag.
-----------------


Comment 5 Ben de Groot (RETIRED) gentoo-dev 2009-01-30 18:14:14 UTC
Okay, you're right. Looks to me to be a portage dep resolving problem. We should probably advise to remove qt-core as well, at this point. Then qt-core *has* to be emerged before any of the others.

It should probably also be solvable by emerge -av --nodeps qt-core
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2009-01-30 18:24:47 UTC
Give us

emerge -avt qt-core output please :)
Comment 7 Patrick De Pinguin 2009-01-30 18:38:09 UTC
> It should probably also be solvable by emerge -av --nodeps qt-core

Please see comment #2


> Give us emerge -avt qt-core output please :)

galapagos thomas # emerge -avt qt-core

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge      ] x11-libs/qt-core-4.4.2  USE="qt3support ssl -debug -doc -glib -pch"
[nomerge      ]  x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom"
[ebuild  N    ]   x11-libs/qt-qt3support-4.4.2  USE="-accessibility -debug -pch" 0 kB
[ebuild  N    ]    x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild   R   ]     x11-libs/qt-core-4.4.2  USE="qt3support ssl -debug -doc -glib -pch" 0 kB
[ebuild  N    ]    x11-libs/qt-sql-4.4.2  USE="qt3support sqlite -debug -firebird -mysql -odbc -pch -postgres" 0 kB

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 0 kB
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2009-01-30 19:10:35 UTC
(In reply to comment #7)
> > It should probably also be solvable by emerge -av --nodeps qt-core
> 
> Please see comment #2
> 
> 
> > Give us emerge -avt qt-core output please :)
> 
> galapagos thomas # emerge -avt qt-core
> 
> These are the packages that would be merged, in reverse order:
> 
> Calculating dependencies... done!
> [nomerge      ] x11-libs/qt-core-4.4.2  USE="qt3support ssl -debug -doc -glib
> -pch"
> [nomerge      ]  x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus
> qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama"
> INPUT_DEVICES="-wacom"
> [ebuild  N    ]   x11-libs/qt-qt3support-4.4.2  USE="-accessibility -debug
> -pch" 0 kB
> [ebuild  N    ]    x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus
> qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama"
> INPUT_DEVICES="-wacom" 0 kB
> [ebuild   R   ]     x11-libs/qt-core-4.4.2  USE="qt3support ssl -debug -doc
> -glib -pch" 0 kB
> [ebuild  N    ]    x11-libs/qt-sql-4.4.2  USE="qt3support sqlite -debug
> -firebird -mysql -odbc -pch -postgres" 0 kB
> 
> Total: 4 packages (3 new, 1 reinstall), Size of downloads: 0 kB
> 

This output seems ok to me. I guess thats because "qt3support" is not used for the first time ( since it doesnt have * ). 

We need to take a deeper look here
Comment 9 Zac Medico gentoo-dev 2009-02-01 22:57:07 UTC
(In reply to comment #0)
> [ebuild  N    ] x11-libs/qt-sql-4.4.2  USE="qt3support sqlite -debug -firebird
> -mysql -odbc -pch -postgres" 0 kB
> [ebuild   R   ] x11-libs/qt-core-4.4.2  USE="qt3support* ssl -debug -doc -glib
> -pch" 0 kB
> [ebuild  N    ] x11-libs/qt-gui-4.4.2-r1  USE="accessibility cups dbus
> qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama"
> INPUT_DEVICES="-wacom" 0 kB
> [ebuild  N    ] x11-libs/qt-qt3support-4.4.2  USE="-accessibility -debug -pch"
> 0 kB

This merge order is sub-optimal since qt-sql-4.4.2 has qt-core-4.4.2 in DEPEND. The problem seems similar to bug 250020.

You can use EAPI 2 to specify the dependencies more strictly, in order to avoid this problem. For example, qt-sql-4.4.2 should have DEPEND="~x11-libs/qt-core-4.4.2[qt3support=]".
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2009-02-07 11:42:28 UTC
*** Bug 239358 has been marked as a duplicate of this bug. ***
Comment 11 DEMAINE Benoît-Pierre, aka DoubleHP 2009-02-18 11:03:24 UTC
there is a typo in the title of bug
"USE=qt3support" => "USE=qt3 support"

thanks.
Comment 12 Ben de Groot (RETIRED) gentoo-dev 2009-02-18 13:03:26 UTC
(In reply to comment #11)
> there is a typo in the title of bug
> "USE=qt3support" => "USE=qt3 support"

No, you are mistaken. You obviously didn't check the USE flags on that ebuild.
Comment 13 Haze 2009-03-04 22:34:27 UTC
Hi 

On my system , to install x11-libs/qt-4.5.0_rc1 emerge would like that I re-emerge x11-libs/qt-core and x11-libs/qt-gui with qt3support. I'd make this, but 1 day after emerge wanted that I re-emerge this package, but this time without the qt3support... If I don't make this , it was impossible to me to use emerge for any package...
I'd test the solution of the Comment  #5  , but it was no concluding.

So I removed qt3support to the 2 packages ,and add x11-libs/qt-webkit and x11-libs/qt-phonon to /etc/portage/profile/package.provided. Actually revdep-rebuild wants to recompile qt-assistant but this package needs qt-phonon, so the compile failed... And the most important, emerge re-works.
Of course it's an optional solution in waiting of a stable solution.

It's not very important for me to have this package (qt-phonon and his compatriot)...I use enlightenment and some Gnome applications, and only k3b ,and vlc (with the use qt4).

Bye
(Sorry for my bad english, I learned it a lot of year ago...)
Comment 14 Zac Medico gentoo-dev 2009-03-04 23:41:33 UTC
(In reply to comment #13)
> On my system , to install x11-libs/qt-4.5.0_rc1 emerge would like that I
> re-emerge x11-libs/qt-core and x11-libs/qt-gui with qt3support. I'd make this,
> but 1 day after emerge wanted that I re-emerge this package, but this time
> without the qt3support... If I don't make this , it was impossible to me to use
> emerge for any package...

You'll have to be more specific about your reason for remerging it without qt3support.

> So I removed qt3support to the 2 packages ,and add x11-libs/qt-webkit and
> x11-libs/qt-phonon to /etc/portage/profile/package.provided. Actually
> revdep-rebuild wants to recompile qt-assistant but this package needs
> qt-phonon, so the compile failed... And the most important, emerge re-works.
> Of course it's an optional solution in waiting of a stable solution.

You should never use package.provided unless you have an equivalent package installed to satisfy the dependency. If you're using it for any dependencies that are truly unsatisfied then you should stop doing that and remove any such entries from package.provided.
Comment 15 Haze 2009-03-10 02:36:17 UTC
> You'll have to be more specific about your reason for remerging it without
> qt3support.

Yes and I think  I'd found why...Certainly because x11-libs/qt had not build with qt3support...Only qt-core qt-gui and qt-sql...But I'm not sure, this is just an idea.

> You should never use package.provided unless you have an equivalent package
> installed to satisfy the dependency. If you're using it for any dependencies
> that are truly unsatisfied then you should stop doing that and remove any such
> entries from package.provided.

Yes I know how this file works.I'd use this for qt-*  as a troubleshooting solution.

A few hours after I'd edit my precedent message, there were a lot of upgrade about x11-libs/qt and his dependencies.So this time I'd add qt3support for x11-libs/qt too, and this time emerge don't make bronx, and work as usually.
So for me I have no problems with this post since I'd the upgrade of qt-* package.. !!

Thanks @ all, and good evening.
 
Comment 16 Zac Medico gentoo-dev 2009-03-15 20:59:37 UTC
This is fixed in 2.1.6.8.
Comment 17 Markos Chandras (RETIRED) gentoo-dev 2009-04-02 19:41:43 UTC
*** Bug 264403 has been marked as a duplicate of this bug. ***