Gentoo Archives: gentoo-alt

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