Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] moving shared libs
Date: Tue, 27 Jan 2009 09:53:31
Message-Id: 1233049979.22853.32.camel@sapc154.salomon.at
In Reply to: [gentoo-alt] moving shared libs by Alan Hourihane
1 On Fri, 2009-01-23 at 16:24 +0000, Alan Hourihane wrote:
2 > Seems as though AIX & FreeMiNT bump into this issue in a few ebuilds.
3
4 > move_shlibs() {
5 > # move shared libs to /
6 > [[ $(get_libname) == ".irrelevant" ]] && return
7 > dodir /$(get_libdir)
8 > mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die
9 > "could
10 > not move shared"
11 > }
12 >
13 > and nicely change the ebuild to...
14 >
15 > move_shlibs
16 >
17 > It'd really help clean up that nasty "mv" commandline I keep seeing
18 > everywhere in ebuilds.
19
20 Basically agreed, but shouldn't this better be done in main tree,
21 because otherways we would need to touch those ebuilds anyway, even when
22 we have such a function?
23
24 The function itself needs to be more flexible in regards of specifying
25 what to move (the actual lib name, should $(get_libname) be used in the
26 function or in the ebuild).
27 Haven't searched main-tree if such moves are only done
28 from /usr/$(get_libdir) to /$(get_libdir) or from somewhere else too.
29
30 /haubi/
31 --
32 Michael Haubenwallner
33 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] moving shared libs Alan Hourihane <alanh@×××××××××××.uk>