First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 68220
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mike Williams <mike@gaima.co.uk>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
2.0.52-r2-blocking-virtuals.patch 2.0.52-r2-blocking-virtuals.patch patch Jason Stubbs (RETIRED) 2004-11-05 05:23 0000 867 bytes Details | Diff
emerge-output Emerge output text/plain Mike Williams 2004-11-05 06:43 0000 4.82 KB Details
2.0.52-r2-blocking-virtuals.patch 2.0.52-r2-blocking-virtuals.patch patch Jason Stubbs (RETIRED) 2004-11-05 07:25 0000 1.33 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 68220 depends on: Show dependency tree
Bug 68220 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-10-19 16:52 0000
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 From Jason Stubbs (RETIRED) 2004-10-20 08:47:16 0000 -------
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 From Mike Williams 2004-10-20 09:09:48 0000 -------
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 From Jason Stubbs (RETIRED) 2004-10-21 06:57:35 0000 -------
I'll try to get this fixed on the weekend.

------- Comment #4 From Jason Stubbs (RETIRED) 2004-10-22 21:22:20 0000 -------
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 From Mike Williams 2004-11-04 12:35:32 0000 -------
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 From Jason Stubbs (RETIRED) 2004-11-05 05:23:50 0000 -------
Created an attachment (id=43334) [details]
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 From Mike Williams 2004-11-05 06:43:55 0000 -------
Created an attachment (id=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 From Jason Stubbs (RETIRED) 2004-11-05 07:25:32 0000 -------
Created an attachment (id=43346) [details]
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 From Mike Williams 2004-11-05 09:08:42 0000 -------
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 From Carsten Lohrke 2004-12-02 14:56:26 0000 -------
*** Bug 73157 has been marked as a duplicate of this bug. ***

------- Comment #11 From Jason Stubbs (RETIRED) 2005-01-01 21:18:42 0000 -------
*** Bug 76197 has been marked as a duplicate of this bug. ***

------- Comment #12 From Jason Stubbs (RETIRED) 2005-01-02 16:27:26 0000 -------
*** Bug 41497 has been marked as a duplicate of this bug. ***

------- Comment #13 From Martin OConnor 2005-01-02 19:22:51 0000 -------
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 From Jason Stubbs (RETIRED) 2005-01-02 19:41:11 0000 -------
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 From Sascha Silbe 2005-01-15 04:54:24 0000 -------
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 From Jason Stubbs (RETIRED) 2005-01-15 05:39:11 0000 -------
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 From Sascha Silbe 2005-01-15 05:45:46 0000 -------
Ah, OK, will subscribe to that one then. Thanks!


------- Comment #18 From Jason Stubbs (RETIRED) 2005-01-27 06:13:25 0000 -------
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 From Jason Stubbs (RETIRED) 2005-07-14 05:48:13 0000 -------
Fixed on or before 2.0.51.22-r1 

------- Comment #20 From Jason Stubbs (RETIRED) 2005-07-14 06:58:50 0000 -------
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. 

First Last Prev Next    No search results available      Search page      Enter new bug