1 |
On Tue, 2005-06-21 at 21:35 -0400, Paul Smith wrote: |
2 |
> Apparently, when you are installing a binary version of a package, the |
3 |
> DEPEND packages are not installed. But, some parts of the ebuild are |
4 |
> still run, such as pkg_setup(). Is this true? In Catalyst, as you |
5 |
> know, the package is only built from source the first time and |
6 |
> thereafter the binary package is installed; I've run into various |
7 |
> packages which are not handling this properly. |
8 |
|
9 |
This is correct. DEPEND is for build-time dependencies, and RDEPEND is |
10 |
for run-time dependencies. |
11 |
|
12 |
> As two examples: one package does an "inherit webapp", and then in |
13 |
> livecd-stage1, the webapp.eclass webapp_pkg_setup() function tries to |
14 |
> source ${ETC_CONFIG}, which is /etc/vhosts/webapp-config. But, of |
15 |
> course, the webapp-config package is not installed when installing |
16 |
> binary packages, because webapp.eclass only adds it to the DEPEND list. |
17 |
|
18 |
This is a bug in the package. It requires webapp-config to be in *both* |
19 |
DEPEND and RDEPEND. |
20 |
|
21 |
> Another is the freeradius package which links with a shared library from |
22 |
> the libtool package (libltdl.so), but has no dependency on it and so |
23 |
> it's not installed during binary package setup. At runtime, the daemon |
24 |
> fails due to the missing shared library. |
25 |
|
26 |
File a bug. |
27 |
|
28 |
> How do you deal with problems like this? Are these bugs in the ebuild |
29 |
> that should be filed against the package in question? Or...? |
30 |
|
31 |
Yes, they are bugs. |
32 |
|
33 |
Welcome to QA. Building a CD via catalyst is probably the best QA |
34 |
Gentoo has, simply because we do things that a lot of developers don't |
35 |
consider. When you come across a bug such as these, definitely file a |
36 |
bug against the package. |
37 |
|
38 |
-- |
39 |
Chris Gianelloni |
40 |
Release Engineering - Strategic Lead/QA Manager |
41 |
Games - Developer |
42 |
Gentoo Linux |