Gentoo Archives: gentoo-osx

From: m h <sesquile@×××××.com>
To: gentoo-osx@l.g.o
Subject: [gentoo-osx] [PREFIX] Portage eating variables?
Date: Tue, 25 Jul 2006 22:49:12
Message-Id: e36b84ee0607251548r7f744c9fo3b74b8591d1b9bf8@mail.gmail.com
1 Has anyone else noticed that some variables disappear into the ether
2 under PREFIX? One example is ebuilds that inherit webapp.eclass,
3 we've had to add an extra "webapp_read_config" to the
4 webapp_src_preinst function, otherwise the variables aren't set...
5 ie:
6
7 function webapp_src_preinst ()
8 {
9 # create the directories that we need
10
11 dodir "${MY_HTDOCSDIR}"
12 dodir "${MY_HOSTROOTDIR}"
13 dodir "${MY_CGIBINDIR}"
14 dodir "${MY_ICONSDIR}"
15 dodir "${MY_ERRORSDIR}"
16 dodir "${MY_SQLSCRIPTSDIR}"
17 dodir "${MY_HOOKSCRIPTSDIR}"
18 dodir "${MY_SERVERCONFIGDIR}"
19 }
20
21 has to be changed to:
22 function webapp_src_preinst ()
23 {
24 # =-= for some reason, we need to re-source variables
25 webapp_read_config
26
27 # create the directories that we need
28
29 dodir "${MY_HTDOCSDIR}"
30 dodir "${MY_HOSTROOTDIR}"
31 dodir "${MY_CGIBINDIR}"
32 dodir "${MY_ICONSDIR}"
33 dodir "${MY_ERRORSDIR}"
34 dodir "${MY_SQLSCRIPTSDIR}"
35 dodir "${MY_HOOKSCRIPTSDIR}"
36 dodir "${MY_SERVERCONFIGDIR}"
37 }
38 --
39 gentoo-osx@g.o mailing list