Gentoo Archives: gentoo-dev

From: Christian Skarby <christian.skarby@×××××××××.no>
To: bain@××××××.org
Cc: pauldv@××××××.nl, gentoo-dev@g.o
Subject: Re: [gentoo-dev] Suggestion for apache in /etc/make.profile/use.defaults
Date: Thu, 15 Aug 2002 07:26:41
Message-Id: 49381.10.0.7.109.1029415996.squirrel@home.skarby.no
In Reply to: Re: [gentoo-dev] Suggestion for apache in /etc/make.profile/use.defaults by Henti Smith
1 <url: http://www.gentoo.org/doc/gentoo-howto.html > is a great start for
2 reading more about ebuild-writing, and in your /usr/portage there is two
3 skel.-files one for ebuilds and one for ChangeLogs.
4
5 Allow me to snip some quotes in order to clearify DEPEND, RDEPEND and
6 USE-flags
7
8 <snip>
9 The purpose of USE variables is to allow you to configure Portage to globally
10 and automatically enable or disable certain optional build-time
11 features.
12 </snip>
13
14 <snip>
15 The DEPEND variable inside your foo-x.y.z.ebuild tells Portage
16 about which packages are needed to build foo. The RDEPEND variable
17 specifies which packages are needed for foo to run.
18 </snip>
19
20 So, anything set with DEPEND (in the ebuild) tells portage that it is
21 NEEDED in order to build the "package." USE-flags are used (as far as I
22 understand, please correct me if I am wrong,) to enable or disable
23 (typically with a configure-script) diferent features for the package. For
24 an example please see "Code listing 4" in "Gentoo Linux Developers HOWTO"
25 url on the top of this email.
26
27
28 All the best,
29 Christian
30
31 > On Thu, 15 Aug 2002 12:34:40 +0200
32 > Paul de Vrieze <pauldv@××××××.nl> wrote:
33 >
34 >> On Thursday 15 August 2002 10:30, Henti Smith wrote:
35 >> > Hi there :)
36 >> >
37 >> > I've been working on getting a few apps I use onto ebuilds to
38 >> incorporate into gentoo, but some of them require apache to me
39 >> installed which is not a problem as I just add apache into the
40 >> requirements list.
41 >> >
42 >> > Some of the other packages has a apache/CGI interface .. but it's
43 >> not required and is a compile option. how big is the change to add
44 >> apache into /etc/make.profile/use.defaults and what effect will it
45 >> have on the overall system ?
46 >> >
47 >> > Please understand I'm new to gentoo and still learning the system
48 >> and this might be a silly question
49 >> >
50 >>
51 >> Why should apache be in the defaults, it is a server so I think it
52 >> shouldn't be installed by default at all. A use option is something
53 >> different of course.
54 >
55 > Hi paul ..
56 >
57 > and everybody else ..
58 >
59 > I Have read a lot more on the USE function and I think I understand
60 > better how things work. Just trying to figure out how the USE function
61 > effects the ebuild compile structure ..
62 >
63 > for instance.
64 >
65 > If I have apache as a DEPEND in my ebuild, but as a apache? (>=apache ),
66 > and I assume from my reading that it means it's optional not required,
67 > and I do 'USE="-apache" emerge .ebuild' how can I specify that some
68 > ./configure option like "--with-CGI" doesn't get used at compile time ?
69 >
70 > Or am I understanding ebuild and USE incorreclty ?
71 >
72 > Henti Smith
73 > _______________________________________________
74 > gentoo-dev mailing list
75 > gentoo-dev@g.o
76 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev