Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 05 Apr 2017 12:20:11
Message-Id: 1491394797.9830d7a8c8fce333e230842433005c47062a9fe2.polynomial-c@gentoo
1 commit: 9830d7a8c8fce333e230842433005c47062a9fe2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 5 12:19:11 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 5 12:19:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9830d7a8
7
8 apache-2.eclass: EAPI-6 ready. Rename configure.in to configure.ac
9
10 eclass/apache-2.eclass | 25 ++++++++++++++++---------
11 1 file changed, 16 insertions(+), 9 deletions(-)
12
13 diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
14 index 43768dba29b..0a4fe86df5b 100644
15 --- a/eclass/apache-2.eclass
16 +++ b/eclass/apache-2.eclass
17 @@ -18,12 +18,6 @@ case ${EAPI:-0} in
18 0|1|2|3|4)
19 die "This eclass is banned for EAPI<5"
20 ;;
21 - 5)
22 - :;
23 - ;;
24 - 6)
25 - die "This eclass is not yet ready for EAPI-6. Please help porting it!"
26 - ;;
27 esac
28
29 # settings which are version specific go in here:
30 @@ -33,10 +27,13 @@ case $(get_version_component_range 1-2) in
31 RDEPEND=">=dev-libs/apr-1.5.1
32 !www-apache/mod_macro" #492578 #477702
33 ;;
34 - *)
35 + 2.2)
36 DEFAULT_MPM_THREADED="worker"
37 RDEPEND=">=dev-libs/apr-1.4.5" #368651
38 ;;
39 + *)
40 + die "Unknown MAJOR.MINOR apache version."
41 + ;;
42 esac
43
44 # ==============================================================================
45 @@ -450,7 +447,12 @@ apache-2_src_prepare() {
46 "${GENTOO_PATCHDIR}"/{conf/httpd.conf,init/*,patches/config.layout} \
47 || die "libdir sed failed"
48
49 - epatch "${GENTOO_PATCHDIR}"/patches/*.patch
50 + if [[ "${EAPI}" -ge 6 ]] ; then
51 + default
52 + eapply "${GENTOO_PATCHDIR}"/patches/*.patch
53 + else
54 + epatch "${GENTOO_PATCHDIR}"/patches/*.patch
55 + fi
56
57 if [[ ${EAPI} = 5 ]] ; then
58 # Handle patches from ebuild's PATCHES array if one is given
59 @@ -466,6 +468,11 @@ apache-2_src_prepare() {
60 epatch_user
61 fi
62
63 + # Don't rename configure.in _before_ any possible user patches!
64 + if [[ -f "configure.in" ]] ; then
65 + mv configure.{in,ac} || die
66 + fi
67 +
68 # setup the filesystem layout config
69 cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
70 die "Failed preparing config.layout!"
71 @@ -476,7 +483,7 @@ apache-2_src_prepare() {
72 sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in
73
74 # patched-in MPMs need the build environment rebuilt
75 - sed -i -e '/sinclude/d' configure.in
76 + sed -i -e '/sinclude/d' configure.ac
77 AT_M4DIR=build eautoreconf
78
79 # ${T} must be not group-writable, else grsec TPE will block it