1 |
On Sat, 2006-09-23 at 06:13 -0400, Mike Frysinger wrote: |
2 |
> On Thursday 21 September 2006 11:41, Duncan Coutts wrote: |
3 |
> > On Thu, 2006-09-21 at 11:11 -0400, Mike Frysinger wrote: |
4 |
> > > On Thursday 21 September 2006 10:56, Duncan Coutts wrote: |
5 |
> > > > If we do go in this direction it'd be great to be able to slot on the |
6 |
> > > > ABI and still have dependencies resolved correctly. For example imagine |
7 |
> > > > having parallel python-2.3 and 2.4 installations with some libs |
8 |
> > > > installed for both. Crucially, deps need to be resolved to the version |
9 |
> > > > of a lib with the right ABI. |
10 |
> > > |
11 |
> > > ugh, no ... we are not a binary distribution so we should not have to |
12 |
> > > worry about ABI baggage |
13 |
> > |
14 |
> > So we can't ever install two versions of python or ghc at once? That |
15 |
> > seems a shame. |
16 |
> |
17 |
> that's an issue for the python or ghc maintainers to address |
18 |
|
19 |
Yes and as ghc maintainer for Gentoo I'd love to be able to do it. It is |
20 |
easy to install more than one version of ghc at once as it uses |
21 |
versioned directories etc. The problem is that we cannot correctly |
22 |
resolve dependencies with the current versions of portage. Hence we |
23 |
cannot effectively do it. |
24 |
|
25 |
I was worried from your ABI/API comments that you meant that we should |
26 |
never be allowed to do it. |
27 |
|
28 |
As I said before, if we were to SLOT ghc and the various dev-haskell/* |
29 |
libs on the ghc version then we would run into this problem: |
30 |
|
31 |
assume dev-haskell/foo needs dev-haskell/bar |
32 |
|
33 |
supposing dev-haskell/bar was installed and sloted for ghc-6.2 |
34 |
now I install ghc-6.4 too |
35 |
now I emerge dev-haskell/foo. |
36 |
|
37 |
portage will use the existing installation of dev-haskell/bar even |
38 |
though it was installed for another version of ghc. Therefore the build |
39 |
will break (think of haskell libs of having a SONAME that is the version |
40 |
of ghc they were built with). What needs to happen is to install |
41 |
dev-haskell/bar sloted for ghc-6.4 and use that. |
42 |
|
43 |
Currently there is no way to explain these dependencies to portage. |
44 |
|
45 |
I was hoping that with this talk of tracking reverse deps and such like |
46 |
that we could move in a direction where this kind of dependency could be |
47 |
supported. Even if we can't slot on the ghc version, automatically |
48 |
rebuilding for the latest ghc version would be a great improvement - |
49 |
like the suggestion to rebuild dependent libs when the SONAME changes. |
50 |
|
51 |
Duncan |
52 |
|
53 |
-- |
54 |
gentoo-dev@g.o mailing list |