Gentoo Archives: gentoo-dev

From: Donnie Berkholz <spyderous@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Reminder on dependencies.
Date: Tue, 25 Oct 2005 04:39:34
Message-Id: 435DB66F.9060807@gentoo.org
In Reply to: [gentoo-dev] Reminder on dependencies. by "Spider (D.m.D. Lj.)"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Spider (D.m.D. Lj.) wrote:
5 | If your package, libFoo, installs .h files that directly require header
6 | files from libBar, then you have a Runtime dependency on libBar, not
7 | only a compile time dependency
8 |
9 |
10 | Why? Because libFoo should be usable at runtime, even for compiling
11 | things not managed by our tree. And if BazPack has a configure check,
12 | requires explicitly libFoo, tests for the presence of said header, and
13 | all checks out.. Then BazPack should be able to work, and libFoo's
14 | header certainly shouldn't be broken for use in compile.
15
16 Now, the other side of the story. It's not true runtime dependence
17 because it's not required for programs to run, only to compile. And the
18 way I see it, things required for programs to compile are by definition
19 DEPEND rather than RDEPEND.
20
21 The consequences of the two sides are like this, from what I can see:
22
23 1) Headers are run-time and build-time deps
24
25 - - Headers have to be installed even when you're using purely binary
26 packages, because they are supposedly needed at "runtime" for your
27 packages to work.
28
29 - - Also, header packages can't be uninstalled after the build via
30 depclean because they're specified as run-time dependencies.
31
32 2) Headers are build-time deps only
33
34 - - Binary packages don't require the header packages.
35
36 - - Header packages can be unmerged after builds.
37
38 - - Packages requiring the headers have to DEPEND on them directly,
39 because DEPENDs don't cascade. (Although this brings to mind the concept
40 of some sort of cascadable DEPEND.)
41
42
43 I'd like to hear what some other people think about this.
44
45 Thanks,
46 Donnie
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v1.4.2 (GNU/Linux)
49
50 iD8DBQFDXbZvXVaO67S1rtsRAr54AKDOMyoDoqBtogZu62eVV65Erv4nYACgukFK
51 MP1+UujlQePnkCckhseZYsw=
52 =HU3R
53 -----END PGP SIGNATURE-----
54 --
55 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Reminder on dependencies. Joshua Baergen <joshuabaergen@g.o>
Re: [gentoo-dev] Reminder on dependencies. "Spider (D.m.D. Lj.)" <spider@g.o>
Re: [gentoo-dev] Reminder on dependencies. Thomas de Grenier de Latour <degrenier@×××××××××××.fr>
Re: [gentoo-dev] Reminder on dependencies. Ned Ludd <solar@g.o>
Re: [gentoo-dev] Reminder on dependencies. Ciaran McCreesh <ciaranm@g.o>
Re: [gentoo-dev] Reminder on dependencies. Grant Goodyear <g2boojum@g.o>