Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/bugzilla/, www-apps/bugzilla/files/
Date: Sat, 15 Aug 2020 06:01:15
Message-Id: 1597471149.e7e5ee5f8f488c35a163dda0075df0ceb0e02a7b.sam@gentoo
1 commit: e7e5ee5f8f488c35a163dda0075df0ceb0e02a7b
2 Author: David Denoncin <ddenoncin <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 10 21:15:42 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 15 05:59:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e5ee5f
7
8 www-apps/bugzilla: drop vulnerable old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: David Denoncin <ddenoncin <AT> gmail.com>
12 Bug: https://bugs.gentoo.org/712706
13 Closes: https://github.com/gentoo/gentoo/pull/17073
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 www-apps/bugzilla/Manifest | 2 -
17 www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild | 130 --------------------
18 www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild | 134 ---------------------
19 .../bugzilla/files/bugzilla-5.0.3-leftbrace.patch | 26 ----
20 www-apps/bugzilla/files/bugzilla-queue.confd | 4 -
21 www-apps/bugzilla/files/bugzilla.cron.daily | 5 -
22 www-apps/bugzilla/files/bugzilla.cron.tab | 1 -
23 www-apps/bugzilla/files/postinstall-en.txt | 14 ---
24 www-apps/bugzilla/files/reconfig | 19 ---
25 www-apps/bugzilla/metadata.xml | 4 -
26 10 files changed, 339 deletions(-)
27
28 diff --git a/www-apps/bugzilla/Manifest b/www-apps/bugzilla/Manifest
29 index 10e325e2e9e..87c23ddf5c9 100644
30 --- a/www-apps/bugzilla/Manifest
31 +++ b/www-apps/bugzilla/Manifest
32 @@ -1,3 +1 @@
33 -DIST bugzilla-4.4.12.tar.gz 4931062 BLAKE2B 21d060d3a6bc8fd16d5a0283bb5c3735a473283d829be711e22b9d21fc203c8bd33cc9b940417480fa4b16dc478dcb3b526f305c324c97ccac7965b2820bea01 SHA512 51520cc55ae0fb30f8a8efb98e9b5a5a35ca74e9ec3667528fae6520fa7f12137e01948009b152481d0b8e02d435b42c3cacb5449fb42fe709964db68a386548
34 -DIST bugzilla-5.0.3.tar.gz 4069689 BLAKE2B 1be1d911b59a06f9073a2e610b88af2b1b62bda1e2ef812f65faf2fc35499cff20b96f29a522cf8478ed65c4de9008a349162159f180f59f79a380d777340548 SHA512 82334533bd75a4a5eee5213826da916175ecf39cbfd1c4d820519f015257b02998a3acd881f8f52c1650d1140158c8aa839e374574a1fa862a6a4a1351748c46
35 DIST bugzilla-5.0.6.tar.gz 3970724 BLAKE2B 9fab818a4d93bcd8092ddd2707f5a479b5535ba7621cccb84ce6b8785812e0e46f6d8883b76d3358a60ea5f0b6068008b9b2bfcc745b760f6fec5372216cc1af SHA512 8ca47ea1be2b433a6ce68e1a595d72f3d0f0fede44d1194dc6bc9a116dbde3ab7285212c71995e200d31544876e4c3c57b63da1f877a0cb22747ab87a5d598de
36
37 diff --git a/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild b/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild
38 deleted file mode 100644
39 index c12d12dd9aa..00000000000
40 --- a/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild
41 +++ /dev/null
42 @@ -1,130 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=6
47 -
48 -inherit webapp depend.apache eutils
49 -
50 -DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project"
51 -SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz"
52 -HOMEPAGE="https://www.bugzilla.org"
53 -
54 -LICENSE="MPL-2.0"
55 -KEYWORDS="amd64 x86"
56 -
57 -IUSE="modperl extras graphviz mysql postgres sqlite test"
58 -RESTRICT="!test? ( test )"
59 -REQUIRED_USE=" || ( mysql postgres sqlite )"
60 -
61 -COMMON_DEPS="
62 - >=dev-lang/perl-5.10.1
63 - >=dev-perl/CGI-3.510.0
64 - virtual/perl-Digest-SHA
65 - >=dev-perl/DateTime-0.500.0
66 - >=dev-perl/DateTime-TimeZone-0.710.0
67 - >=dev-perl/DBI-1.601.0
68 - >=dev-perl/Template-Toolkit-2.22
69 - >=dev-perl/Email-Send-2.40.0
70 - >=dev-perl/Email-MIME-1.904.0
71 - dev-perl/URI
72 - >=dev-perl/List-MoreUtils-0.329.0
73 - dev-perl/Math-Random-ISAAC
74 -"
75 -
76 -DEPEND="test? ( dev-perl/Pod-Coverage${COMMON_DEPS} )"
77 -RDEPEND="
78 - virtual/httpd-cgi
79 - ${COMMON_DEPS}
80 - postgres? ( >=dev-perl/DBD-Pg-1.49.0 )
81 - mysql? ( >=dev-perl/DBD-mysql-4.0.5 )
82 - sqlite? ( >=dev-perl/DBD-SQLite-1.290.0 )
83 - extras? (
84 - >=dev-perl/GD-2.35[png,truetype]
85 - >=dev-perl/Chart-2.4.1
86 - dev-perl/Template-GD
87 - dev-perl/GDTextUtil
88 - dev-perl/GDGraph
89 - dev-perl/XML-Twig
90 - >=dev-perl/MIME-tools-5.427.0
91 - dev-perl/libwww-perl
92 - >=dev-perl/PatchReader-0.9.6
93 - dev-perl/perl-ldap
94 - dev-perl/Authen-Radius
95 - dev-perl/Authen-SASL
96 - >=dev-perl/SOAP-Lite-0.712.0
97 - dev-perl/JSON-RPC
98 - >=dev-perl/JSON-XS-2.0.0
99 - dev-perl/Test-Taint
100 - >=dev-perl/HTML-Parser-3.67.0
101 - dev-perl/HTML-Scrubber
102 - >=virtual/perl-Encode-2.21.0
103 - dev-perl/Encode-Detect
104 - dev-perl/Email-MIME-Attachment-Stripper
105 - dev-perl/Email-Reply
106 - dev-perl/TheSchwartz
107 - dev-perl/Daemon-Generic
108 - dev-perl/File-MimeInfo
109 - virtual/imagemagick-tools[perl]
110 - dev-perl/MIME-tools
111 - )
112 - modperl? (
113 - www-apache/mod_perl:1
114 - >=dev-perl/Apache-SizeLimit-0.96.0
115 - )
116 - graphviz? ( media-gfx/graphviz )
117 -"
118 -want_apache modperl
119 -need_httpd_cgi
120 -
121 -PATCHES=(
122 - "${FILESDIR}/${PN}"-5.0.3-leftbrace.patch
123 -)
124 -
125 -pkg_setup() {
126 - depend.apache_pkg_setup modperl
127 - webapp_pkg_setup
128 -}
129 -
130 -src_prepare() {
131 - # Get a rid of the bzr files
132 - rm -r .bzr* || die
133 -
134 - # Remove bundled perl modules
135 - rm -r lib/ || die
136 -
137 - default
138 -}
139 -
140 -src_test() {
141 - perl -I. runtests.pl || die
142 -}
143 -
144 -src_install() {
145 - webapp_src_preinst
146 -
147 - insinto "${MY_HTDOCSDIR}"
148 - doins -r .
149 - doins "${FILESDIR}"/bugzilla.cron.{daily,tab}
150 -
151 - webapp_hook_script "${FILESDIR}"/reconfig
152 - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
153 - webapp_src_install
154 -
155 - if use extras; then
156 - newconfd "${FILESDIR}"/bugzilla-queue.confd bugzilla-queue
157 - newinitd "${FILESDIR}"/bugzilla-queue.initd bugzilla-queue
158 - fi
159 -
160 - # bug #124282
161 - for f in "${D}${MY_HTDOCSDIR}"/*.cgi ; do
162 - fperms +x "${f#${D}}"
163 - done
164 -
165 - fperms u+x "${MY_HTDOCSDIR}"/jobqueue.pl
166 -
167 - # configuration must be executable
168 - fperms u+x "${MY_HTDOCSDIR}"/checksetup.pl
169 -
170 - # bug 487476
171 - mkdir "${D}${MY_HTDOCSDIR}"/lib || die
172 -}
173
174 diff --git a/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild b/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild
175 deleted file mode 100644
176 index 937a2262fe6..00000000000
177 --- a/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild
178 +++ /dev/null
179 @@ -1,134 +0,0 @@
180 -# Copyright 1999-2020 Gentoo Authors
181 -# Distributed under the terms of the GNU General Public License v2
182 -
183 -EAPI=6
184 -
185 -inherit webapp depend.apache eutils
186 -
187 -DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project"
188 -SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz"
189 -HOMEPAGE="https://www.bugzilla.org"
190 -
191 -LICENSE="MPL-2.0"
192 -KEYWORDS="amd64 x86"
193 -
194 -IUSE="modperl extras graphviz mysql postgres sqlite test"
195 -RESTRICT="!test? ( test )"
196 -REQUIRED_USE=" || ( mysql postgres sqlite )"
197 -
198 -# sorting is identical to upstream MYMETA.json, please dont change
199 -COMMON_DEPS="
200 - dev-lang/perl
201 - >=dev-perl/CGI-3.510.0
202 - >=dev-perl/DBI-1.614.0
203 - >=dev-perl/TimeDate-2.230.0
204 - >=dev-perl/DateTime-0.750.0
205 - >=dev-perl/DateTime-TimeZone-1.640.0
206 - virtual/perl-Digest-SHA
207 - >=dev-perl/Email-MIME-1.904.0
208 - >=dev-perl/Email-Sender-1.300.11
209 - >=dev-perl/File-Slurp-9999.130.0
210 - >=dev-perl/JSON-XS-2.10.0
211 - >=dev-perl/List-MoreUtils-0.320.0
212 - >=dev-perl/Math-Random-ISAAC-1.0.1
213 - >=dev-perl/Template-Toolkit-2.240.0
214 - >=dev-perl/URI-1.550.0
215 -"
216 -
217 -DEPEND="test? ( dev-perl/Pod-Coverage ${COMMON_DEPS} )"
218 -RDEPEND="
219 - virtual/httpd-cgi
220 - ${COMMON_DEPS}
221 - postgres? ( >=dev-perl/DBD-Pg-1.49 )
222 - mysql? ( >=dev-perl/DBD-mysql-4.0.5 )
223 - sqlite? ( >=dev-perl/DBD-SQLite-1.290.0 )
224 - extras? (
225 - >=dev-perl/GD-2.350.0[png,truetype]
226 - >=dev-perl/Chart-2.4.1
227 - dev-perl/Template-GD
228 - dev-perl/GDTextUtil
229 - dev-perl/GDGraph
230 - dev-perl/XML-Twig
231 - >=dev-perl/MIME-tools-5.427.0
232 - dev-perl/libwww-perl
233 - >=dev-perl/PatchReader-0.9.6
234 - dev-perl/perl-ldap
235 - dev-perl/Authen-Radius
236 - dev-perl/Authen-SASL
237 - >=dev-perl/SOAP-Lite-0.712.0
238 - dev-perl/JSON-RPC
239 - >=dev-perl/JSON-XS-2.0.0
240 - dev-perl/Test-Taint
241 - >=dev-perl/HTML-Parser-3.670.0
242 - dev-perl/HTML-Scrubber
243 - >=virtual/perl-Encode-2.210.0
244 - dev-perl/Encode-Detect
245 - dev-perl/Email-MIME-Attachment-Stripper
246 - dev-perl/Email-Reply
247 - dev-perl/TheSchwartz
248 - dev-perl/Daemon-Generic
249 - dev-perl/File-MimeInfo
250 - virtual/imagemagick-tools[perl]
251 - dev-perl/MIME-tools
252 - )
253 - modperl? (
254 - www-apache/mod_perl:1
255 - >=dev-perl/Apache-SizeLimit-0.960.0
256 - )
257 - graphviz? ( media-gfx/graphviz )
258 -"
259 -want_apache modperl
260 -need_httpd_cgi
261 -
262 -PATCHES=(
263 - "${FILESDIR}/${PN}"-5.0.3-leftbrace.patch
264 -)
265 -
266 -pkg_setup() {
267 - depend.apache_pkg_setup modperl
268 - webapp_pkg_setup
269 -}
270 -
271 -src_prepare() {
272 - # Get a rid of the bzr files
273 - rm -r .bzr* || die
274 -
275 - # Remove bundled perl modules
276 - rm -r lib/ || die
277 -
278 - default
279 -}
280 -
281 -src_test() {
282 - perl -I. runtests.pl || die
283 -}
284 -
285 -src_install() {
286 - webapp_src_preinst
287 -
288 - insinto "${MY_HTDOCSDIR}"
289 - doins -r .
290 - doins "${FILESDIR}"/bugzilla.cron.{daily,tab}
291 -
292 - webapp_hook_script "${FILESDIR}"/reconfig
293 - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
294 - webapp_src_install
295 -
296 - if use extras; then
297 - newconfd "${FILESDIR}"/bugzilla-queue.confd bugzilla-queue
298 - newinitd "${FILESDIR}"/bugzilla-queue.initd bugzilla-queue
299 - fi
300 -
301 - # bug #124282
302 - for f in "${D}${MY_HTDOCSDIR}"/*.cgi ; do
303 - fperms +x "${f#${D}}"
304 - done
305 -
306 - fperms u+x "${MY_HTDOCSDIR}"/jobqueue.pl
307 -
308 - # configuration must be executable
309 - fperms u+x "${MY_HTDOCSDIR}"/checksetup.pl
310 -
311 - # bug 487476
312 - mkdir "${D}${MY_HTDOCSDIR}"/lib || die
313 -}
314
315 diff --git a/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch b/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch
316 deleted file mode 100644
317 index f5704406d87..00000000000
318 --- a/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch
319 +++ /dev/null
320 @@ -1,26 +0,0 @@
321 -From 3c60fba26b1fa51ec302d05dc6e76236d2f54ba4 Mon Sep 17 00:00:00 2001
322 -From: Simon Green <mail@×××××.green>
323 -Date: Sun, 30 Oct 2016 14:55:23 +1000
324 -Subject: [PATCH] Bug 228444 - Checking for unquoted non regex variable
325 - interpolated into regex
326 -
327 ----
328 - t/010dependencies.t | 2 +-
329 - 1 file changed, 1 insertion(+), 1 deletion(-)
330 -
331 -diff --git a/t/010dependencies.t b/t/010dependencies.t
332 -index 4b7ca223d..1b6c270a8 100644
333 ---- a/t/010dependencies.t
334 -+++ b/t/010dependencies.t
335 -@@ -69,7 +69,7 @@ foreach my $module (keys %mods) {
336 - $used =~ s#/#::#g;
337 - $used =~ s#\.pm$##;
338 - $used =~ s#\$module#[^:]+#;
339 -- $used =~ s#\${[^}]+}#[^:]+#;
340 -+ $used =~ s#\$\{[^}]+}#[^:]+#;
341 - $used =~ s#[" ]##g;
342 - push(@use, grep(/^\Q$used\E$/, keys %mods));
343 - }
344 ---
345 -2.20.1
346 -
347
348 diff --git a/www-apps/bugzilla/files/bugzilla-queue.confd b/www-apps/bugzilla/files/bugzilla-queue.confd
349 deleted file mode 100644
350 index 2eec355a098..00000000000
351 --- a/www-apps/bugzilla/files/bugzilla-queue.confd
352 +++ /dev/null
353 @@ -1,4 +0,0 @@
354 -#JOBQUEUE_USER=bugzilla
355 -#JOBQUEUE_GROUP=bugzilla
356 -
357 -JOBQUEUE_PATH=/var/www/bugzilla/jobqueue.pl
358
359 diff --git a/www-apps/bugzilla/files/bugzilla.cron.daily b/www-apps/bugzilla/files/bugzilla.cron.daily
360 deleted file mode 100644
361 index e3e86589891..00000000000
362 --- a/www-apps/bugzilla/files/bugzilla.cron.daily
363 +++ /dev/null
364 @@ -1,5 +0,0 @@
365 -#!/bin/sh
366 -cd /var/www/bugzilla/
367 -./collectstats.pl
368 -./whineatnews.pl
369 -echo "*** Bugzilla nighlty flush has done! ***"
370
371 diff --git a/www-apps/bugzilla/files/bugzilla.cron.tab b/www-apps/bugzilla/files/bugzilla.cron.tab
372 deleted file mode 100644
373 index 3cf2d4a6624..00000000000
374 --- a/www-apps/bugzilla/files/bugzilla.cron.tab
375 +++ /dev/null
376 @@ -1 +0,0 @@
377 -0 0 * * * /var/www/bugzilla/bugzilla.cron.daily
378
379 diff --git a/www-apps/bugzilla/files/postinstall-en.txt b/www-apps/bugzilla/files/postinstall-en.txt
380 deleted file mode 100644
381 index e8d8093fdb2..00000000000
382 --- a/www-apps/bugzilla/files/postinstall-en.txt
383 +++ /dev/null
384 @@ -1,14 +0,0 @@
385 -0. Bugzilla has been installed into ${MY_INSTALLDIR}
386 -
387 -1. To finish the installation, please read
388 - http://www.bugzilla.org/docs/${MY_PB}/en/html/installing-bugzilla.html
389 - https://wiki.gentoo.org/wiki/Bugzilla
390 - You will need to run ${MY_INSTALLDIR}/checksetup.pl
391 -
392 -2. Please read the Release Notes, especially if you are upgrading:
393 - http://www.bugzilla.org/releases/${MY_PB}/release-notes.html
394 -
395 -3. Please note that Apache2 sets AllowOverride None by default. You may have
396 - to edit it to process the .htaccess file provided by Bugzilla. Please see
397 - https://httpd.apache.org/docs/2.2/mod/core.html#allowoverride and
398 - http://www.bugzilla.org/docs/${MY_PB}/en/html/configuration.html#http for more info.
399
400 diff --git a/www-apps/bugzilla/files/reconfig b/www-apps/bugzilla/files/reconfig
401 deleted file mode 100644
402 index 71b0acea258..00000000000
403 --- a/www-apps/bugzilla/files/reconfig
404 +++ /dev/null
405 @@ -1,19 +0,0 @@
406 -#!/bin/bash
407 -
408 -FILE="bugzilla.cron.daily bugzilla.cron.tab"
409 -
410 -function die ()
411 -{
412 - echo
413 - echo "***"
414 - echo "*** Fatal error: $*"
415 - echo "***"
416 - exit 1
417 -}
418 -
419 -if [ $1 = "install" ]; then
420 - cd "${MY_INSTALLDIR}" || die "Cannot find install dir ${MY_INSTALLDIR}"
421 - sed -e "s|/var/www/bugzilla|${MY_INSTALLDIR}|g" -i ${FILE} || die "sed failed"
422 -else
423 - echo "done."
424 -fi
425
426 diff --git a/www-apps/bugzilla/metadata.xml b/www-apps/bugzilla/metadata.xml
427 index 70124d7a597..0ca8941051b 100644
428 --- a/www-apps/bugzilla/metadata.xml
429 +++ b/www-apps/bugzilla/metadata.xml
430 @@ -13,8 +13,4 @@
431 <email>web-apps@g.o</email>
432 <name>Gentoo Webapps</name>
433 </maintainer>
434 - <use>
435 - <flag name="extras">Optional Perl modules</flag>
436 - <flag name="modperl">Enable <pkg>www-apache/mod_perl</pkg> support</flag>
437 - </use>
438 </pkgmetadata>