Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] moving shared libs
Date: Tue, 27 Jan 2009 10:04:54
Message-Id: 1233050690.14192.179.camel@jetpack.demon.co.uk
In Reply to: Re: [gentoo-alt] moving shared libs by Michael Haubenwallner
On Tue, 2009-01-27 at 10:52 +0100, Michael Haubenwallner wrote:
> On Fri, 2009-01-23 at 16:24 +0000, Alan Hourihane wrote: > > Seems as though AIX & FreeMiNT bump into this issue in a few ebuilds. > > > move_shlibs() { > > # move shared libs to / > > [[ $(get_libname) == ".irrelevant" ]] && return > > dodir /$(get_libdir) > > mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die > > "could > > not move shared" > > } > > > > and nicely change the ebuild to... > > > > move_shlibs > > > > It'd really help clean up that nasty "mv" commandline I keep seeing > > everywhere in ebuilds. > > Basically agreed, but shouldn't this better be done in main tree, > because otherways we would need to touch those ebuilds anyway, even when > we have such a function?
Sure, I don't have access to either, so it'd be good to come from one of the prefix admins to the main gentoo folk as it'd be seen to have approval from the group.
> The function itself needs to be more flexible in regards of specifying > what to move (the actual lib name, should $(get_libname) be used in the > function or in the ebuild). > Haven't searched main-tree if such moves are only done > from /usr/$(get_libdir) to /$(get_libdir) or from somewhere else too.
Agreed. Alan.