Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] readline ebuild problem
Date: Wed, 26 Nov 2008 16:37:23
Message-Id: 1227717439.13985.515.camel@jetpack.demon.co.uk
In Reply to: Re: [gentoo-alt] readline ebuild problem by Michael Haubenwallner
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.

Replies

Subject Author
Re: [gentoo-alt] readline ebuild problem Alan Hourihane <alanh@×××××××××××.uk>
Re: [gentoo-alt] readline ebuild problem Michael Haubenwallner <haubi@g.o>