Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] moving shared libs
Date: Mon, 26 Jan 2009 17:16:02
Message-Id: 1232990155.14192.174.camel@jetpack.demon.co.uk
In Reply to: [gentoo-alt] moving shared libs by Alan Hourihane
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. > > I've just bumped into it again with sys-libs/cracklib & > sys-libs/e2fsprogs-libs and sys-fs/e2fsprogs. > > Is it worthwhile creating a new function in the eclass directory that > deals with these issues.. > > Taking sys-libs/cracklib for example, we currently have this.... > > # move shared libs to / > dodir /$(get_libdir) > mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die > "could > not move shared" > > We could add (or something equivalent to with a bit of extra > thinking).... > > 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. > > Comments ?
Prefix guru's - would this be acceptable to add in the eclass ?? Alan.