Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 68220

Summary: blocking virtuals installable at the same time
Product: Portage Development Reporter: Mike Williams <mike>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: David.Huff, martinoc, max, sascha-gentoo-bugzilla
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 2.0.52-r2-blocking-virtuals.patch
Emerge output
2.0.52-r2-blocking-virtuals.patch

Description Mike Williams 2004-10-19 16:52:07 UTC
heimdal and mit-krb5 both provide virtual/krb5, and block virtual/krb5, like they should. mit-krb5 is the default virtual.
It's quite possible to have both installed at the same time though.

USE=kerberos emerge heimdal openssh

heimdal will install, then openssh will pull in virtual/krb5, but it'll take mit-krb5 as at dependancy resolution nothing satisfied the virtual.

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



Expected Results:
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-10-20 08:47:16 UTC
Ahh, I see what you are saying. It's fixed in >=portage-2.0.51_rc1. The order matters though. If you specify "USE=kerberos emerge heimdal openssh" it'll do what you want here. If you specify "USE=kerberos emerge openssh heimdal" it'll fail telling you that the packages block each other.
Comment 2 Mike Williams 2004-10-20 09:09:48 UTC
OK, I get what you say about the how ordering matters, but it's not really fixed :)

kylie root # emerge portage -p

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

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/portage-2.0.51_rc9

kylie root # USE=kerberos emerge heimdal openssh -p

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

Calculating dependencies ...done!
[ebuild  N    ] app-crypt/heimdal-0.6.3-r1
[ebuild  N    ] app-crypt/mit-krb5-1.3.4
[ebuild   R   ] net-misc/openssh-3.8.1_p1-r1

kylie root # USE=kerberos emerge openssh heimdal -p

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

Calculating dependencies ...done!
[blocks B     ] app-crypt/mit-krb5 (from pkg app-crypt/heimdal-0.6.3-r1)
[ebuild  N    ] app-crypt/mit-krb5-1.3.4
[ebuild   R   ] net-misc/openssh-3.8.1_p1-r1
[ebuild  N    ] app-crypt/heimdal-0.6.3-r1

In this case, I specified heimdal first because I wanted that, and not mit-krb5. But portage will happily install both.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-10-21 06:57:35 UTC
I'll try to get this fixed on the weekend.
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2004-10-22 21:22:20 UTC
Found and fixed. Will be in 2.0.51-r3.

The problem occured only with virtuals and only if the first package is not the default virtual and was due to the dep_virtual function not using the same record of virtuals as the dep grapher.
Comment 5 Mike Williams 2004-11-04 12:35:32 UTC
Thanks Jason.

I'm just installing another box, and am seeing another issue, which is in a similar vain to this bug.

wwwproxy root # emerge heimdal -pv

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

Calculating dependencies ...done!
[blocks B     ] app-crypt/mit-krb5 (from pkg app-crypt/heimdal-0.6.3-r1)
[ebuild  N    ] net-libs/openslp-1.0.11  0 kB
[ebuild  N    ] app-crypt/mit-krb5-1.3.4-r1  -krb4 -static 0 kB
[ebuild  NS   ] sys-libs/db-1.85-r1  0 kB
[ebuild  N    ] sys-libs/gdbm-1.8.0-r5  +berkdb -debug -static 0 kB
[ebuild  N    ] dev-libs/cyrus-sasl-2.1.19-r1  -authdaemond +berkdb -debug +gdbm -java +kerberos +ldap -mysql +pam -postgres +ssl -static 1,501 kB
[ebuild  N    ] net-nds/openldap-2.1.30-r2  +berkdb +crypt -debug +gdbm -ipv6 -odbc +perl +readline -samba +sasl +slp +ssl +tcpd 0 kB
[ebuild  N    ] app-crypt/heimdal-0.6.3-r1  +berkdb -ipv6 -krb4 +ldap +ssl 3,255 kB

Total size of downloads: 4,756 kB

heimdal depends on openldap, which depends on virtual/krb5, which as you know defaults to app-crypt/mit-krb5.
Would your fix, "fix" this?
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2004-11-05 05:23:50 UTC
Created attachment 43334 [details, diff]
2.0.52-r2-blocking-virtuals.patch

This is the patch that fixes the first issue. I think it should fix the second
issue as well, but it won't hurt to confirm.
Comment 7 Mike Williams 2004-11-05 06:43:55 UTC
Created attachment 43337 [details]
Emerge output

Cheers Jason, I've whipped out a fresh 2004.2 stage3 tarball in a chroot to
test on. Updated it to portage-2.0.51-r2, and set the kerberos, ldap, and sasl
USE flags.
Was the patch supposed to be just 3 changed lines? Seems kinda small to me :)

Unfortunatly it doesn't fix either issue :(
The second from last emerge appears happy to install both heimdal and mit-krb5.
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-11-05 07:25:32 UTC
Created attachment 43346 [details, diff]
2.0.52-r2-blocking-virtuals.patch

I'll take that as a sign that I need to slow down. ;)
This is the full patch.
Comment 9 Mike Williams 2004-11-05 09:08:42 UTC
Much better, thanks.

Not quite perfect yet, but fairly acceptable.
It would be nice if the order in which the packages are specified doesn't matter, but I suspect that's just the way it is. I think you'd be going backwards and forwards over the dependency chain, getting into a right mess.


mahdell / # emerge openssh heimdal -pv

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

Calculating dependencies ...done!
[blocks B     ] app-crypt/mit-krb5 (from pkg app-crypt/heimdal-0.6.3-r1)
[ebuild  N    ] app-crypt/mit-krb5-1.3.4-r1  -krb4 -static 6,220 kB
[ebuild   R   ] net-misc/openssh-3.8.1_p1-r1  -X509 -chroot -debug -ipv6* +kerberos* +ldap* +pam (-selinux) -skey -smartcard -static +tcpd (-uclibc) 798 kB
[ebuild  NS   ] sys-libs/db-1.85-r1  264 kB
[ebuild  N    ] sys-libs/gdbm-1.8.0-r5  +berkdb -debug -static 130 kB
[ebuild  N    ] dev-libs/cyrus-sasl-2.1.19-r1  -authdaemond +berkdb -debug +gdbm -java +kerberos +ldap -mysql +pam -postgres +ssl -static 1,501 kB
[ebuild  N    ] net-nds/openldap-2.1.30-r2  +berkdb +crypt -debug +gdbm -ipv6 -odbc +perl +readline -samba +sasl -slp +ssl +tcpd 1,996 kB
[ebuild  N    ] app-crypt/heimdal-0.6.3-r1  +berkdb -ipv6 -krb4 +ldap +ssl 3,255 kB

Total size of downloads: 14,167 kB

Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-02 14:56:26 UTC
*** Bug 73157 has been marked as a duplicate of this bug. ***
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2005-01-01 21:18:42 UTC
*** Bug 76197 has been marked as a duplicate of this bug. ***
Comment 12 Jason Stubbs (RETIRED) gentoo-dev 2005-01-02 16:27:26 UTC
*** Bug 41497 has been marked as a duplicate of this bug. ***
Comment 13 Martin OConnor 2005-01-02 19:22:51 UTC
This bug could be fixed by having portage re-check its dependancies when ANY virtual gets updated - JUST like when the portage package itself gets updated :)
Comment 14 Jason Stubbs (RETIRED) gentoo-dev 2005-01-02 19:41:11 UTC
Keywords has InCVS and a patch is attached.. This is fixed already. It's just not in a arch portage yet - it is in the ~arch portage.
Comment 15 Sascha Silbe 2005-01-15 04:54:24 UTC
Any idea when this bug will be fully fixed, so the order of the packages won't matter? The user (or, in my case, a system-managment layer above Portage) really should not need to know anything about the order in which packages need to be installed. That's what Portages dependancy resolution code is for.  
Comment 16 Jason Stubbs (RETIRED) gentoo-dev 2005-01-15 05:39:11 UTC
As I said before, this bug is fixed and will be closed as soon as a portage later than 2.0.51-r3 is marked stable on all architectures. What you are after is bug #1343.
Comment 17 Sascha Silbe 2005-01-15 05:45:46 UTC
Ah, OK, will subscribe to that one then. Thanks!

Comment 18 Jason Stubbs (RETIRED) gentoo-dev 2005-01-27 06:13:25 UTC
Fixing this created another bug which is at #79509. I've uploaded a patch there that fixes that bug. Can people test that there is no regression with regard to this one, please?
Comment 19 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:13 UTC
Fixed on or before 2.0.51.22-r1 
Comment 20 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:50 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.