1 |
On Wed, 2008-11-26 at 17:26 +0100, Michael Haubenwallner wrote: |
2 |
> On Tue, 2008-11-25 at 17:09 +0000, Alan Hourihane wrote: |
3 |
> > On Tue, 2008-11-25 at 18:05 +0100, Fabian Groffen wrote: |
4 |
> > > On 25-11-2008 17:02:11 +0000, Alan Hourihane wrote: |
5 |
> > > > On Tue, 2008-11-25 at 17:57 +0100, Fabian Groffen wrote: |
6 |
> > > > > On 25-11-2008 16:53:19 +0000, Alan Hourihane wrote: |
7 |
> > > > > > There's a bug in the readline ebuild that says this... |
8 |
> > > > > > |
9 |
> > > > > > [[ $(get_libname) != .a ]] && |
10 |
> > > > > > |
11 |
> > > > > > It should be.... |
12 |
> > > > > > |
13 |
> > > > > > [[ $(get_libname) == .a ]] && |
14 |
> > > > > |
15 |
> > > > > I think haubi did this on purpose, as AIX has .a for "shared libraries" |
16 |
> > > > > :( |
17 |
> > > > > It moves the "static" library out of the way, but if the platform |
18 |
> > > > > happens to use .a for that, it refrains from doing so. |
19 |
> > > > > |
20 |
> > > > > Haubi has the last word on this. |
21 |
> > > > |
22 |
> > > > Then I need to add.... |
23 |
> > > > |
24 |
> > > > [[ ${CHOST} == *-mint* ]] && |
25 |
> > > > mv "${ED}"/$(get_libdir)/lib{readline,history}.a |
26 |
> > > > "${ED}"/usr/$(get_libdir)/ |
27 |
> > > |
28 |
> > > Hahaha... I knew this was going to break some time... Let's see what |
29 |
> > > haubi thinks/wants. Does mint have shared libraries, or just static |
30 |
> > > ones? |
31 |
> > |
32 |
> > Just static. |
33 |
> |
34 |
> Ohw, no shared libs! |
35 |
> Wouldn't this require some (portage-)mechanism to perform a |
36 |
> reverse-dependency-rebuild based on {,R}DEPEND? |
37 |
> |
38 |
> As far as I understand, get_libname() returns the extension used for |
39 |
> *shared* libraries (which on AIX unfortunately can be '.a'). |
40 |
> |
41 |
> What should $(get_libname) return when there are no shared libraries? |
42 |
> |
43 |
> The test in readline just prevents moving 'lib*.a' out of /lib when it |
44 |
> (potentially) is the shared library. |
45 |
> |
46 |
> When there are no shared libs at all, isn't it just wrong to have |
47 |
> get_libname() returning '.a'? Maybe it should return either the empty |
48 |
> string, or something like '.irrelevant' IMO. |
49 |
|
50 |
Having get_libname() return .a on FreeMiNT makes things behave correctly |
51 |
for the majority of ebuilds. |
52 |
|
53 |
Given AIX uses .a for shared libs makes me think that readline should |
54 |
really be AIX specific and use CHOST == *-aix* rather than just globally |
55 |
using != .a. |
56 |
|
57 |
Alan. |