Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/dilfridge:master commit in: www-apache/mod_perl/
Date: Fri, 30 Sep 2016 16:53:58
Message-Id: 1475254464.7381a5192205d5b6e434c5635bd069553d807f1b.dilfridge@gentoo
1 commit: 7381a5192205d5b6e434c5635bd069553d807f1b
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 16:54:24 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 16:54:24 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/dilfridge.git/commit/?id=7381a519
7
8 www-apache/mod_perl: Remove old versions
9
10 www-apache/mod_perl/mod_perl-2.0.8-r3.ebuild | 165 ---------------------------
11 www-apache/mod_perl/mod_perl-2.0.8.ebuild | 157 -------------------------
12 2 files changed, 322 deletions(-)
13
14 diff --git a/www-apache/mod_perl/mod_perl-2.0.8-r3.ebuild b/www-apache/mod_perl/mod_perl-2.0.8-r3.ebuild
15 deleted file mode 100644
16 index 0f895d1..0000000
17 --- a/www-apache/mod_perl/mod_perl-2.0.8-r3.ebuild
18 +++ /dev/null
19 @@ -1,165 +0,0 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -# $Id$
23 -
24 -EAPI="5"
25 -
26 -inherit depend.apache apache-module perl-module eutils
27 -
28 -DESCRIPTION="An embedded Perl interpreter for Apache2"
29 -HOMEPAGE="https://projects.apache.org/projects/mod_perl.html"
30 -SRC_URI="mirror://apache/perl/${P}.tar.gz"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="1"
34 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
35 -IUSE="debug"
36 -
37 -# Make sure we always use the latest Apache-Test version or even check the
38 -# version of the bundled Apache-Test!
39 -#
40 -# We need both, apache and perl but either apache without threads or perl with
41 -# ithreads, bug 373943
42 -DEPEND="
43 - >=dev-perl/Apache-Test-1.360
44 - >=dev-perl/CGI-3.08
45 - dev-lang/perl[ithreads]
46 - www-servers/apache
47 -"
48 -RDEPEND="${DEPEND}"
49 -PDEPEND=">=dev-perl/Apache-Reload-0.11
50 - >=dev-perl/Apache-SizeLimit-0.95"
51 -
52 -APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so"
53 -APACHE2_MOD_CONF="2.0.3/75_${PN}"
54 -APACHE2_MOD_DEFINE="PERL"
55 -
56 -SRC_TEST="do"
57 -
58 -DOCFILES="Changes INSTALL README STATUS"
59 -
60 -need_apache2_4
61 -
62 -src_prepare() {
63 - perl-module_src_prepare
64 -
65 - # I am not entirely happy with this solution, but here's what's
66 - # going on here if someone wants to take a stab at another
67 - # approach. When userpriv compilation is off, then the make
68 - # process drops to user "nobody" to run the test servers. This
69 - # server is closed, and then the socket is rebound using
70 - # SO_REUSEADDR. If the same user does this, there is no problem,
71 - # and the socket may be rebound immediately. If a different user
72 - # (yes, in my testing, even root) attempts to rebind, it fails.
73 - # Since the "is the socket available yet" code and the
74 - # second-batch bind call both run as root, this will fail.
75 -
76 - # The upstream settings on my test machine cause the second batch
77 - # of tests to fail, believing the socket to still be in use. I
78 - # tried patching various parts to make them run as the user
79 - # specified in $config->{vars}{user} using getpwnam, but found
80 - # this patch to be fairly intrusive, because the userid must be
81 - # restored and the patch must be applied to multiple places.
82 -
83 - # For now, we will simply extend the timeout in hopes that in the
84 - # non-userpriv case, the socket will clear from the kernel tables
85 - # normally, and the tests will proceed.
86 -
87 - # If anybody is still having problems, then commenting out "make
88 - # test" below should allow the software to build properly.
89 -
90 - # Robert Coie <rac@g.o> 2003.05.06
91 -# sed -i -e "s/sleep \$_/sleep \$_ << 2/" \
92 -# "${S}"/Apache-Test/lib/Apache/TestServer.pm \
93 -# || die "problem editing TestServer.pm"
94 -
95 - # rendhalver - this got redone for 2.0.1 and seems to fix the make test problems
96 - epatch "${FILESDIR}"/${PN}-2.0.1-sneak-tmpdir.patch
97 - epatch "${FILESDIR}"/${PN}-2.0.4-inline.patch #550244
98 -
99 - # bug 352724
100 - epatch "${FILESDIR}/${P}-bundled-Apache-Test.patch"
101 - rm -rf Apache-{Test,Reload,SizeLimit}/ lib/Bundle/
102 - sed -i \
103 - -e 's:^Apache-\(Reload\|SizeLimit\|Test\).*::' \
104 - -e 's:^lib/Bundle/Apache2.pm::' \
105 - MANIFEST || die
106 -
107 - # 410453
108 - epatch "${FILESDIR}/use-client_ip-client_add-instead-of-remote_ip-remote.patch"
109 - epatch "${FILESDIR}/use-log.level-instead-of-loglevel.patch"
110 -
111 - # 554794
112 - epatch "${FILESDIR}/mod_perl_init_b554794.patch"
113 -}
114 -
115 -src_configure() {
116 - local debug=$(usex debug 1 0)
117 - perl Makefile.PL \
118 - PREFIX="${EPREFIX}"/usr \
119 - INSTALLDIRS=vendor \
120 - MP_USE_DSO=1 \
121 - MP_APXS=${APXS} \
122 - MP_APR_CONFIG=/usr/bin/apr-1-config \
123 - MP_TRACE=${debug} \
124 - MP_DEBUG=${debug} \
125 - || die
126 -}
127 -
128 -src_test() {
129 - # make test notes whether it is running as root, and drops
130 - # privileges all the way to "nobody" if so, so we must adjust
131 - # write permissions accordingly in this case.
132 -
133 - # IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail!
134 - if [[ "$(id -u)" == "0" ]]; then
135 - chown nobody:nobody "${WORKDIR}" "${T}"
136 - fi
137 -
138 - # this does not || die because of bug 21325. kudos to smark for
139 - # the idea of setting HOME.
140 - TMPDIR="${T}" HOME="${T}/" perl-module_src_test
141 -}
142 -
143 -src_install() {
144 - apache-module_src_install
145 -
146 - default
147 -#emake DESTDIR="${D}" install || die
148 -
149 - # TODO: add some stuff from docs/ back?
150 -
151 - # rendhalver - fix the perllocal.pod that gets installed
152 - # it seems to me that this has been getting installed for ages
153 - perl_delete_localpod
154 - # Remove empty .bs files as well
155 - perl_delete_packlist
156 -
157 - insinto "${APACHE_MODULES_CONFDIR}"
158 - doins "${FILESDIR}"/2.0.3/apache2-mod_perl-startup.pl
159 -
160 - # this is an attempt to get @INC in line with /usr/bin/perl.
161 - # there is blib garbage in the mainstream one that can only be
162 - # useful during internal testing, so we wait until here and then
163 - # just go with a clean slate. should be much easier to see what's
164 - # happening and revert if problematic.
165 -
166 - # Sorry for this evil hack...
167 - perl_set_version # just to be sure...
168 - sed -i \
169 - -e "s,-I${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \
170 - -e "s,-typemap[[:space:]]${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \
171 - -e "s,${S}\(/[^[:space:]\"\']\+\)\?,/,g" \
172 - "${D}/${VENDOR_ARCH}/Apache2/BuildConfig.pm" || die
173 -
174 - for fname in $(find "${D}" -type f -not -name '*.so'); do
175 - grep -q "\(${D}\|${S}\)" "${fname}" && ewarn "QA: File contains a temporary path ${fname}"
176 - sed -i -e "s:\(${D}\|${S}\):/:g" ${fname}
177 - done
178 - # All the rest
179 - perl_remove_temppath
180 -}
181 -
182 -pkg_postinst() {
183 - apache-module_pkg_postinst
184 -}
185
186 diff --git a/www-apache/mod_perl/mod_perl-2.0.8.ebuild b/www-apache/mod_perl/mod_perl-2.0.8.ebuild
187 deleted file mode 100644
188 index c605774..0000000
189 --- a/www-apache/mod_perl/mod_perl-2.0.8.ebuild
190 +++ /dev/null
191 @@ -1,157 +0,0 @@
192 -# Copyright 1999-2015 Gentoo Foundation
193 -# Distributed under the terms of the GNU General Public License v2
194 -# $Id$
195 -
196 -EAPI="5"
197 -
198 -inherit depend.apache apache-module perl-module eutils
199 -
200 -DESCRIPTION="An embedded Perl interpreter for Apache2"
201 -SRC_URI="mirror://apache/perl/${P}.tar.gz"
202 -HOMEPAGE="https://projects.apache.org/projects/mod_perl.html"
203 -
204 -LICENSE="GPL-2"
205 -KEYWORDS="alpha amd64 ~hppa ia64 ppc ppc64 sparc x86"
206 -IUSE="debug"
207 -SLOT="1"
208 -
209 -# Make sure we always use the latest Apache-Test version or even check the
210 -# version of the bundled Apache-Test!
211 -#
212 -# We need both, apache and perl but either apache without threads or perl with
213 -# ithreads, bug 373943
214 -DEPEND="<www-servers/apache-2.4
215 - >=dev-perl/Apache-Test-1.360
216 - >=dev-perl/CGI-3.08
217 - dev-lang/perl
218 - www-servers/apache
219 - || ( www-servers/apache[-threads] dev-lang/perl[ithreads] )"
220 -RDEPEND="${DEPEND}"
221 -PDEPEND=">=dev-perl/Apache-Reload-0.11
222 - >=dev-perl/Apache-SizeLimit-0.95"
223 -
224 -APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so"
225 -APACHE2_MOD_CONF="2.0.3/75_${PN}.2.2"
226 -APACHE2_MOD_DEFINE="PERL"
227 -
228 -SRC_TEST="do"
229 -
230 -DOCFILES="Changes INSTALL README STATUS"
231 -
232 -need_apache2
233 -
234 -src_prepare() {
235 - perl-module_src_prepare
236 -
237 - # I am not entirely happy with this solution, but here's what's
238 - # going on here if someone wants to take a stab at another
239 - # approach. When userpriv compilation is off, then the make
240 - # process drops to user "nobody" to run the test servers. This
241 - # server is closed, and then the socket is rebound using
242 - # SO_REUSEADDR. If the same user does this, there is no problem,
243 - # and the socket may be rebound immediately. If a different user
244 - # (yes, in my testing, even root) attempts to rebind, it fails.
245 - # Since the "is the socket available yet" code and the
246 - # second-batch bind call both run as root, this will fail.
247 -
248 - # The upstream settings on my test machine cause the second batch
249 - # of tests to fail, believing the socket to still be in use. I
250 - # tried patching various parts to make them run as the user
251 - # specified in $config->{vars}{user} using getpwnam, but found
252 - # this patch to be fairly intrusive, because the userid must be
253 - # restored and the patch must be applied to multiple places.
254 -
255 - # For now, we will simply extend the timeout in hopes that in the
256 - # non-userpriv case, the socket will clear from the kernel tables
257 - # normally, and the tests will proceed.
258 -
259 - # If anybody is still having problems, then commenting out "make
260 - # test" below should allow the software to build properly.
261 -
262 - # Robert Coie <rac@g.o> 2003.05.06
263 -# sed -i -e "s/sleep \$_/sleep \$_ << 2/" \
264 -# "${S}"/Apache-Test/lib/Apache/TestServer.pm \
265 -# || die "problem editing TestServer.pm"
266 -
267 - # rendhalver - this got redone for 2.0.1 and seems to fix the make test problems
268 - epatch "${FILESDIR}"/mod_perl-2.0.1-sneak-tmpdir.patch
269 -
270 - # bug 352724
271 - epatch "${FILESDIR}/${P}-bundled-Apache-Test.patch"
272 - rm -rf Apache-{Test,Reload,SizeLimit}/ lib/Bundle/
273 - sed -i -e 's:^Apache-\(Reload\|SizeLimit\|Test\).*::' \
274 - -e 's:^lib/Bundle/Apache2.pm::' MANIFEST || die
275 -}
276 -
277 -src_configure() {
278 - local myargs=
279 -
280 - if use debug; then
281 - myargs="MP_TRACE=1 MP_DEBUG=1"
282 - else
283 - myargs="MP_TRACE=0 MP_DEBUG=0"
284 - fi
285 -
286 - perl Makefile.PL \
287 - PREFIX="${EPREFIX}"/usr \
288 - INSTALLDIRS=vendor \
289 - MP_USE_DSO=1 \
290 - MP_APXS=${APXS} \
291 - ${myargs} || die
292 -}
293 -
294 -src_test() {
295 - # make test notes whether it is running as root, and drops
296 - # privileges all the way to "nobody" if so, so we must adjust
297 - # write permissions accordingly in this case.
298 -
299 - # IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail!
300 - if [[ "$(id -u)" == "0" ]]; then
301 - chown nobody:nobody "${WORKDIR}"
302 - chown nobody:nobody "${T}"
303 - fi
304 -
305 - # this does not || die because of bug 21325. kudos to smark for
306 - # the idea of setting HOME.
307 - TMPDIR="${T}" HOME="${T}/" perl-module_src_test
308 -}
309 -
310 -src_install() {
311 - apache-module_src_install
312 -
313 - emake DESTDIR="${D}" install || die
314 -
315 - # TODO: add some stuff from docs/ back?
316 -
317 - # rendhalver - fix the perllocal.pod that gets installed
318 - # it seems to me that this has been getting installed for ages
319 - perl_delete_localpod
320 - # Remove empty .bs files as well
321 - perl_delete_packlist
322 -
323 - insinto "${APACHE_MODULES_CONFDIR}"
324 - doins "${FILESDIR}"/2.0.3/apache2-mod_perl-startup.pl || die
325 -
326 - # this is an attempt to get @INC in line with /usr/bin/perl.
327 - # there is blib garbage in the mainstream one that can only be
328 - # useful during internal testing, so we wait until here and then
329 - # just go with a clean slate. should be much easier to see what's
330 - # happening and revert if problematic.
331 -
332 - # Sorry for this evil hack...
333 - perl_set_version # just to be sure...
334 - sed -i -e "s,-I${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \
335 - -e "s,-typemap[[:space:]]${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \
336 - -e "s,${S}\(/[^[:space:]\"\']\+\)\?,/,g" "${D}/${VENDOR_ARCH}/Apache2/BuildConfig.pm" || die
337 -
338 - for fname in $(find "${D}" -type f -not -name '*.so'); do
339 - grep -q "\(${D}\|${S}\)" "${fname}" && ewarn "QA: File contains a temporary path ${fname}"
340 - sed -i -e "s:\(${D}\|${S}\):/:g" ${fname}
341 - done
342 - # All the rest
343 - perl_remove_temppath
344 -}
345 -
346 -pkg_postinst() {
347 - apache-module_pkg_postinst
348 -}