Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] emerge prefers to install x11-libs/qt:4 instead of ( x11-libs/qt-gui:4 x11-libs/qt-webkit:4 ) even when x11-libs/qt-gui:4 is already installed
Date: Mon, 02 Mar 2009 21:01:24
Message-Id: 49AC4925.2060908@gentoo.org
In Reply to: [gentoo-portage-dev] emerge prefers to install x11-libs/qt:4 instead of ( x11-libs/qt-gui:4 x11-libs/qt-webkit:4 ) even when x11-libs/qt-gui:4 is already installed by Pacho Ramos
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Pacho Ramos wrote:
5 > Hello
6 >
7 > I have encountered this behavior with acetoneiso ebuild:
8 > http://bugs.gentoo.org/show_bug.cgi?id=197961
9 >
10 > the current ebuild in sunrise will fix this dropping dep on
11 > x11-libs/qt:4 but, anyway, I would want to confirm if the behavior noted
12 > in:
13 > http://bugs.gentoo.org/show_bug.cgi?id=197961#c19
14 >
15 > is normal. I already know bug 161953 but, in my case, I have qt-gui
16 > installed (emerge should now install also qt-webkit) and I don't have any
17 > qt:4 version installed (only qt:3)
18 >
19 > I would expect emerge to simply install qt-webkit as a "half" of ( x11-libs/qt-gui:4 x11-libs/qt-webkit:4 )
20 > DEPEND is already satisfied and none of x11-libs/qt:4 is
21 >
22 > Thanks a lot :-)
23
24 || ( ( x11-libs/qt-gui:4 x11-libs/qt-webkit:4 ) x11-libs/qt:4 )
25
26 It's a variation of bug 161953 [1]. For this particular variation,
27 at the moment I don't think there's a good way to distinguish that
28 the choice on the left is the better choice. However, if we
29 implement PROPERTIES=virtual [2] then we can use that to tag the
30 qt-4 ebuild as a virtual and then we should get better behavior due
31 to virtual lookahead mechanism that has been implemented for bug
32 141118 [3]. In the absence of PROPERTIES=virtual support, we'd have
33 to use a more complex approach such as the "avoid redundant
34 upgrades" algorithm suggested for bug 260225 [4].
35
36 [1] http://bugs.gentoo.org/show_bug.cgi?id=161953
37 [2]
38 http://archives.gentoo.org/gentoo-dev/msg_9d449a18a96a25a547fcfd40544085cf.xml
39 [3] http://bugs.gentoo.org/show_bug.cgi?id=141118
40 [4] http://bugs.gentoo.org/show_bug.cgi?id=260225
41 - --
42 Thanks,
43 Zac
44 -----BEGIN PGP SIGNATURE-----
45 Version: GnuPG v2.0.10 (GNU/Linux)
46
47 iEYEARECAAYFAkmsSSQACgkQ/ejvha5XGaN6VgCfcxRpXNv6dSr/wE7Mnes83Tz4
48 hOoAoJDSBSZ9UfCSRzYugo71vi4nYMcw
49 =/fIl
50 -----END PGP SIGNATURE-----

Replies