1 |
On Fri, 2008-11-28 at 09:31 +0100, Fabian Groffen wrote: |
2 |
> On 28-11-2008 09:05:20 +0100, Michael Haubenwallner wrote: |
3 |
> > > Argh. Nope libperl breaks and creates libperl.irrelevant. |
4 |
> > |
5 |
> > IMO this is the best thing that can happen on your platform, because |
6 |
> > sys-devel/libperl only is useful as a *shared* library (with 'soname'), |
7 |
> > because the static libperl.a is provided by dev-lang/perl (according to |
8 |
> > the comments in sys-devel/libperl.ebuild). |
9 |
> > |
10 |
> > When sys-devel/libperl provides the static libperl.a, you would likely |
11 |
> > have a collision in dev-lang/perl lateron. |
12 |
> > |
13 |
> > Eventually, sys-devel/libperl should generally be package.masked for |
14 |
> > FreeMiNT (as 'irrelevant', lol), or at least install nothing. |
15 |
> > |
16 |
> > NOTE: The whole tree as well as the dependency resolving within portage |
17 |
> > is designed for shared libraries: When there is a bug in one library, |
18 |
> > only this one package gets rebuilt with the fix, and binaries using this |
19 |
> > shared library will use the fixed one when restarted. |
20 |
> > There is no mechanism to rebuild packages which have the broken library |
21 |
> > linked in statically, so they still use the broken code. |
22 |
> |
23 |
> I agree completely with this. |
24 |
|
25 |
Again, other distros have would have this problem if I ported them to |
26 |
FreeMiNT. So many things these days want shared libraries, but I don't |
27 |
have that luxury at this time. |
28 |
|
29 |
> > > So I'm back to fixing readline, as I'm loathe to go fixing everything |
30 |
> > > this will break. |
31 |
> > |
32 |
> > It's not that I just don't want to change readline to *-aix*, instead I |
33 |
> > still feel having get_libname() on FreeMiNT returning '.a' simply is |
34 |
> > wrong - and doing it right as early as possible is better than doing it |
35 |
> > fast. |
36 |
> |
37 |
> I just changed it for the moment, as I'm not confident myself what's |
38 |
> wrong or right. I do feel the .irrelevant thing is the right way |
39 |
> though, for the reasons mentioned by haubi. |
40 |
|
41 |
I'm o.k. to go with this flow, but I'll need some assistance on what the |
42 |
best route to package.mask'ing of sys-devel/libperl is, and then I've |
43 |
got to get dev-lang/perl to generate the static lib. |
44 |
|
45 |
> > > But I still need the patch below applying. |
46 |
> > > > in gen_usr_ldscript(). |
47 |
> > |
48 |
> > This is ok. |
49 |
> |
50 |
> I added that, even though I wonder why mint doesn't need a symlink there. |
51 |
|
52 |
Because the .a is already created as a static lib, so no link is |
53 |
required as shared libs aren't supported. |
54 |
|
55 |
Just something to remember on this, is that I do have the entire |
56 |
Gentoo/Prefix bootstrapped on FreeMiNT already, so supporting this |
57 |
configuration is not impossible. I just need to work through the patches |
58 |
I have with the guys here to resolve issues like this the best way for |
59 |
everyone. |
60 |
|
61 |
Thanks to all for the input I've received. |
62 |
|
63 |
Alan. |