1 |
On Fri, 01 Jan 2010 18:53:12 -0600 (CST), mattmatteh@×××.com wrote: |
2 |
> thought i would take a look at the games that need patching with |
3 |
> #${EPREFIX}. using bug http://bugs.gentoo.org/show_bug.cgi?id=296987 as |
4 |
|
5 |
> an example, i removed the fix to verify the failure and added einfo to |
6 |
see |
7 |
> whats going on: |
8 |
> |
9 |
> |
10 |
>>>> Install tuxmath-20010907 into |
11 |
>>>> |
12 |
/Volumes/prefix-ppc-macos-x11/var/tmp/portage/games-kids/tuxmath-20010907/image/Volumes/prefix-ppc-macos-x11/ |
13 |
>>>> category games-kids |
14 |
> * games eclass debug: EPREFIX /Volumes/prefix-ppc-macos-x11 |
15 |
> * games eclass debug: GAMES_PREFIX |
16 |
> /Volumes/prefix-ppc-macos-x11/usr/games |
17 |
> * games eclass debug: GAMES_DATADIR |
18 |
> /Volumes/prefix-ppc-macos-x11/usr/share/games |
19 |
> * games eclass debug: GAMES_DATADIR_BASE |
20 |
> /Volumes/prefix-ppc-macos-x11/usr/share |
21 |
> * games eclass debug: GAMES_SYSCONFDIR |
22 |
> /Volumes/prefix-ppc-macos-x11/etc/games |
23 |
> * games eclass debug: GAMES_STATEDIR |
24 |
> /Volumes/prefix-ppc-macos-x11/var/games |
25 |
> * games eclass debug: GAMES_LOGDIR |
26 |
> /Volumes/prefix-ppc-macos-x11/var/log/games |
27 |
> * games eclass debug: GAMES_LIBDIR |
28 |
> /Volumes/prefix-ppc-macos-x11/usr/games/lib |
29 |
> * games eclass debug: GAMES_BINDIR |
30 |
> /Volumes/prefix-ppc-macos-x11/usr/games/bin |
31 |
> ------------------------------------------------------- |
32 |
> You should not use ${EPREFIX} with helpers. |
33 |
> --> /Volumes/prefix-ppc-macos-x11/usr/share/games/tuxmath |
34 |
> ------------------------------------------------------- |
35 |
> |
36 |
> |
37 |
> soo... i dont see any problem with the install paths, no double prefix. |
38 |
> what is this error about using ${EPREFIX} with helpers? |
39 |
> |
40 |
> before sending i googled and found this |
41 |
> http://www.mail-archive.com/gentoo-alt@l.g.o/msg03335.html |
42 |
> |
43 |
> so it seems that the games eclass should not handle EPREFIX at all ? |
44 |
> |
45 |
> but for confugure those do need to be set since that is whats passed, |
46 |
> econf --prefix="${GAMES_PREFIX}" |
47 |
> |
48 |
> seems like doins needs to stop whinning ? |
49 |
> |
50 |
> matt |
51 |
|
52 |
In general, you should know that do* functions (helpers) set EPREFIX |
53 |
behind the scenes. |
54 |
|
55 |
There are two approaches here. |
56 |
1) Have EPREFIX in GAMES_PREFIX (eclass) because it is used in ./configure |
57 |
and makes sense to have it there. If you use "do* ${GAMES_PREFIX}/foo" then |
58 |
you have to strip the leading EPREFIX out, such as "do* |
59 |
${GAMES_PREFIX#${EPREFIX}}/foo" |
60 |
2) Have GAMES_PREFIX not include EPREFIX and then add it to ./configure |
61 |
--prefix="${EPREFIX}/${GAMES_PREFIX}" |
62 |
|
63 |
Both approaches are in use and it depends on which way "makes the most |
64 |
sense" (less diffs/less work) - I hope that sheds some light on the |
65 |
subject. |
66 |
|
67 |
-Jeremy |