Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: depend.apache.eclass
Date: Wed, 06 Feb 2008 13:16:20
Message-Id: E1JMk8P-0005Nw-Jx@stork.gentoo.org
1 hollow 08/02/06 13:16:17
2
3 Modified: depend.apache.eclass
4 Log:
5 add check_apache_threads()
6
7 Revision Changes Path
8 1.41 eclass/depend.apache.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?rev=1.41&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?rev=1.41&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?r1=1.40&r2=1.41
13
14 Index: depend.apache.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v
17 retrieving revision 1.40
18 retrieving revision 1.41
19 diff -u -r1.40 -r1.41
20 --- depend.apache.eclass 6 Feb 2008 08:33:47 -0000 1.40
21 +++ depend.apache.eclass 6 Feb 2008 13:16:17 -0000 1.41
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2007 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.40 2008/02/06 08:33:47 hollow Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.41 2008/02/06 13:16:17 hollow Exp $
27
28 # @ECLASS: depend.apache.eclass
29 # @MAINTAINER: apache-devs@g.o
30 @@ -48,7 +48,7 @@
31
32 # @ECLASS-VARIABLE: APXS
33 # @DESCRIPTION:
34 -# Paths to the apxs tool.
35 +# Path to the apxs tool.
36 # This variable is set by the want/need_apache functions.
37
38 # @ECLASS-VARIABLE: APACHE_BIN
39 @@ -212,3 +212,26 @@
40 RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}"
41 _init_apache2
42 }
43 +
44 +# @FUNCTION: check_apache_threads
45 +# @USAGE: [myflag]
46 +# @DESCRIPTION:
47 +# An ebuild calls this to make sure thread-safety is enabled if apache has been
48 +# built with a threaded MPM. If the myflag parameter is not given it defaults to
49 +# threads.
50 +check_apache_threads() {
51 + debug-print-function $FUNCNAME $*
52 +
53 + if ! built_with_use www-servers/apache threads ; then
54 + return
55 + fi
56 +
57 + local myflag="${1:-threads}"
58 +
59 + if ! use ${myflag}; then
60 + echo
61 + eerror "You need to enable USE flag '${myflag}' to build a thread-safe version"
62 + eerror "of ${CATEGORY}/${PN} for use with www-servers/apache"
63 + die "Need missing USE flag '${myflag}'"
64 + fi
65 +}
66
67
68
69 --
70 gentoo-commits@l.g.o mailing list