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: Thu, 01 Oct 2020 14:07:42
Message-Id: 1601561255.9aedb53327ace38bdc197d166757afa79526619d.polynomial-c@gentoo
1 commit: 9aedb53327ace38bdc197d166757afa79526619d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 14:04:57 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 14:07:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aedb533
7
8 apache-2.eclass: Added missing "|| die" statements
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 eclass/apache-2.eclass | 35 +++++++++++++++++++++--------------
13 1 file changed, 21 insertions(+), 14 deletions(-)
14
15 diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
16 index 601a7fb0873..17301c36f8b 100644
17 --- a/eclass/apache-2.eclass
18 +++ b/eclass/apache-2.eclass
19 @@ -436,12 +436,14 @@ apache-2_src_prepare() {
20 ;;
21 *-darwin*)
22 sed -i -e 's/-Wl,-z,now/-Wl,-bind_at_load/g' \
23 - "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch
24 + "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch \
25 + || die
26 ;;
27 *)
28 # patch it out to be like upstream
29 sed -i -e 's/-Wl,-z,now//g' \
30 - "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch
31 + "${GENTOO_PATCHDIR}"/patches/03_all_gentoo_apache-tools.patch \
32 + || die
33 ;;
34 esac
35
36 @@ -479,18 +481,18 @@ apache-2_src_prepare() {
37 # setup the filesystem layout config
38 cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
39 die "Failed preparing config.layout!"
40 - sed -i -e "s:version:${PF}:g" "${S}"/config.layout
41 + sed -i -e "s:version:${PF}:g" "${S}"/config.layout || die
42
43 # apache2.8 instead of httpd.8 (bug #194828)
44 - mv docs/man/{httpd,apache2}.8
45 - sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in
46 + mv docs/man/{httpd,apache2}.8 || die
47 + sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in || die
48
49 # patched-in MPMs need the build environment rebuilt
50 - sed -i -e '/sinclude/d' configure.ac
51 + sed -i -e '/sinclude/d' configure.ac || die
52 AT_M4DIR=build eautoreconf
53
54 # ${T} must be not group-writable, else grsec TPE will block it
55 - chmod g-w "${T}"
56 + chmod g-w "${T}" || die
57
58 # This package really should upgrade to using pcre's .pc file.
59 cat <<-\EOF >"${T}"/pcre-config
60 @@ -505,7 +507,7 @@ apache-2_src_prepare() {
61 done
62 exec ${PKG_CONFIG} libpcre "${flags[@]}"
63 EOF
64 - chmod a+x "${T}"/pcre-config
65 + chmod a+x "${T}"/pcre-config || die
66 }
67
68 # @FUNCTION: apache-2_src_configure
69 @@ -605,19 +607,24 @@ apache-2_src_install() {
70
71 # drop in a convenient link to the manual
72 if use doc ; then
73 - sed -i -e "s:VERSION:${PVR}:" "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf"
74 + sed -i -e "s:VERSION:${PVR}:" \
75 + "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf" \
76 + || die
77 docompress -x /usr/share/doc/${PF}/manual # 503640
78 else
79 - rm -f "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf"
80 - rm -Rf "${ED%/}/usr/share/doc/${PF}/manual"
81 + rm -f "${ED%/}/etc/apache2/modules.d/00_apache_manual.conf" \
82 + || die
83 + rm -Rf "${ED%/}/usr/share/doc/${PF}/manual" || die
84 fi
85
86 # the default icons and error pages get stored in
87 # /usr/share/apache2/{error,icons}
88 dodir /usr/share/apache2
89 - mv -f "${ED%/}/var/www/localhost/error" "${ED%/}/usr/share/apache2/error"
90 - mv -f "${ED%/}/var/www/localhost/icons" "${ED%/}/usr/share/apache2/icons"
91 - rm -rf "${ED%/}/var/www/localhost/"
92 + mv -f "${ED%/}/var/www/localhost/error" \
93 + "${ED%/}/usr/share/apache2/error" || die
94 + mv -f "${ED%/}/var/www/localhost/icons" \
95 + "${ED%/}/usr/share/apache2/icons" || die
96 + rm -rf "${ED%/}/var/www/localhost/" || die
97 eend $?
98
99 # set some sane permissions for suexec