Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt <gentoo-alt@l.g.o>
Subject: [gentoo-alt] moving shared libs
Date: Fri, 23 Jan 2009 16:25:07
Message-Id: 1232727897.14192.147.camel@jetpack.demon.co.uk
1 Seems as though AIX & FreeMiNT bump into this issue in a few ebuilds.
2
3 I've just bumped into it again with sys-libs/cracklib &
4 sys-libs/e2fsprogs-libs and sys-fs/e2fsprogs.
5
6 Is it worthwhile creating a new function in the eclass directory that
7 deals with these issues..
8
9 Taking sys-libs/cracklib for example, we currently have this....
10
11 # move shared libs to /
12 dodir /$(get_libdir)
13 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die
14 "could
15 not move shared"
16
17 We could add (or something equivalent to with a bit of extra
18 thinking)....
19
20 move_shlibs() {
21 # move shared libs to /
22 [[ $(get_libname) == ".irrelevant" ]] && return
23 dodir /$(get_libdir)
24 mv "${D}"/usr/$(get_libdir)/*.so* "${D}"/$(get_libdir)/ || die
25 "could
26 not move shared"
27 }
28
29 and nicely change the ebuild to...
30
31 move_shlibs
32
33 It'd really help clean up that nasty "mv" commandline I keep seeing
34 everywhere in ebuilds.
35
36 Comments ?
37
38 Alan.

Replies

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