1 |
Donnie Berkholz wrote: |
2 |
|
3 |
> On 13:15 Wed 26 Sep , Mart Raudsepp (leio) wrote: |
4 |
>> mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py \ |
5 |
>> "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py-2.0 |
6 |
>> mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth \ |
7 |
>> "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth-2.0 |
8 |
>> } |
9 |
>> |
10 |
>> pkg_postinst() { |
11 |
>> python_version |
12 |
>> python_mod_optimize /usr/lib/python${PYVER}/site-packages/gtk-2.0 |
13 |
>> alternatives_auto_makesym |
14 |
>> /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py |
15 |
>> pygtk.py-[0-9].[0-9] alternatives_auto_makesym |
16 |
>> /usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.pth |
17 |
>> pygtk.pth-[0-9].[0-9] python_mod_compile |
18 |
>> ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/pygtk.py |
19 |
> |
20 |
> This is pretty weird, because it uses get_libdir() almost everywhere but |
21 |
> skips it once. Wonder if we could add a repoman check that looks for |
22 |
> whether an ebuild calls get_libdir(), then checks for any instances of |
23 |
> '[^[:alnum:]]lib[^[:alnum:]]'. |
24 |
> |
25 |
It seems a bit inefficient to keep calling the function in an implicit |
26 |
subshell. What's wrong with ldir="/usr/$(get_libdir)/" [or "${ROOT}usr.."] |
27 |
once and then reusing the value? |
28 |
(The single use of $ROOT in pkg_postinst() seems odd too, to this newb.) |
29 |
|
30 |
|
31 |
-- |
32 |
gentoo-dev@g.o mailing list |