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, 01 Aug 2020 20:43:37
Message-Id: 1596313657.f2fa70ce5190a8073fd697326a8495f2626326f2.sam@gentoo
1 commit: f2fa70ce5190a8073fd697326a8495f2626326f2
2 Author: David Denoncin <ddenoncin <AT> gmail <DOT> com>
3 AuthorDate: Sat Jul 18 15:58:44 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 20:27:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2fa70ce
7
8 www-apps/bugzilla: vbump 5.0.6
9
10 This new ebuild leaves dealing with mod_perl to experienced users. This
11 change enables bumping the ebuild to EAPI 7.
12
13 It also loses using use flags for optional runtime dependencies.
14
15 Bug: https://bugs.gentoo.org/712706
16 Closes: https://bugs.gentoo.org/332251
17 Package-Manager: Portage-2.3.99, Repoman-2.3.22
18 Signed-off-by: David Denoncin <ddenoncin <AT> gmail.com>
19 Closes: https://github.com/gentoo/gentoo/pull/16125
20 Signed-off-by: Sam James <sam <AT> gentoo.org>
21
22 www-apps/bugzilla/Manifest | 1 +
23 www-apps/bugzilla/bugzilla-5.0.6.ebuild | 118 +++++++++++++++++++++
24 .../bugzilla/files/bugzilla-5.0.6-leftbrace.patch | 17 +++
25 www-apps/bugzilla/files/bugzilla-5.0.6-perl.patch | 17 +++
26 .../bugzilla/files/bugzilla-5.0.6-template.patch | 17 +++
27 www-apps/bugzilla/files/postinstall-5.0.6-en.txt | 30 ++++++
28 www-apps/bugzilla/files/postinstall-en.txt | 1 +
29 www-apps/bugzilla/files/postupgrade-5.0.6-en.txt | 10 ++
30 8 files changed, 211 insertions(+)
31
32 diff --git a/www-apps/bugzilla/Manifest b/www-apps/bugzilla/Manifest
33 index 3a86ce2d8c4..10e325e2e9e 100644
34 --- a/www-apps/bugzilla/Manifest
35 +++ b/www-apps/bugzilla/Manifest
36 @@ -1,2 +1,3 @@
37 DIST bugzilla-4.4.12.tar.gz 4931062 BLAKE2B 21d060d3a6bc8fd16d5a0283bb5c3735a473283d829be711e22b9d21fc203c8bd33cc9b940417480fa4b16dc478dcb3b526f305c324c97ccac7965b2820bea01 SHA512 51520cc55ae0fb30f8a8efb98e9b5a5a35ca74e9ec3667528fae6520fa7f12137e01948009b152481d0b8e02d435b42c3cacb5449fb42fe709964db68a386548
38 DIST bugzilla-5.0.3.tar.gz 4069689 BLAKE2B 1be1d911b59a06f9073a2e610b88af2b1b62bda1e2ef812f65faf2fc35499cff20b96f29a522cf8478ed65c4de9008a349162159f180f59f79a380d777340548 SHA512 82334533bd75a4a5eee5213826da916175ecf39cbfd1c4d820519f015257b02998a3acd881f8f52c1650d1140158c8aa839e374574a1fa862a6a4a1351748c46
39 +DIST bugzilla-5.0.6.tar.gz 3970724 BLAKE2B 9fab818a4d93bcd8092ddd2707f5a479b5535ba7621cccb84ce6b8785812e0e46f6d8883b76d3358a60ea5f0b6068008b9b2bfcc745b760f6fec5372216cc1af SHA512 8ca47ea1be2b433a6ce68e1a595d72f3d0f0fede44d1194dc6bc9a116dbde3ab7285212c71995e200d31544876e4c3c57b63da1f877a0cb22747ab87a5d598de
40
41 diff --git a/www-apps/bugzilla/bugzilla-5.0.6.ebuild b/www-apps/bugzilla/bugzilla-5.0.6.ebuild
42 new file mode 100644
43 index 00000000000..b9d651ea973
44 --- /dev/null
45 +++ b/www-apps/bugzilla/bugzilla-5.0.6.ebuild
46 @@ -0,0 +1,118 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit eutils webapp
53 +
54 +DESCRIPTION="Bugzilla is the Bug-Tracking System from the Mozilla project"
55 +SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/webtools/${P}.tar.gz"
56 +HOMEPAGE="https://www.bugzilla.org"
57 +
58 +LICENSE="MPL-2.0"
59 +KEYWORDS="~amd64 ~x86"
60 +
61 +IUSE="apache2 doc mysql postgres sqlite test"
62 +RESTRICT="!test? ( test )"
63 +REQUIRED_USE="|| ( mysql postgres sqlite )"
64 +
65 +# sorting is identical to upstream MYMETA.json, please don't change
66 +# These are mandatory for checksetup.pl to configure bugzilla
67 +BASIC_DEPS="
68 + dev-lang/perl
69 + >=dev-perl/CGI-3.510.0
70 + >=dev-perl/DBI-1.614.0
71 + >=dev-perl/TimeDate-2.230.0
72 + >=dev-perl/DateTime-0.750.0
73 + >=dev-perl/DateTime-TimeZone-1.640.0
74 + virtual/perl-Digest-SHA
75 + >=dev-perl/Email-MIME-1.904.0
76 + >=dev-perl/Email-Sender-1.300.11
77 + >=dev-perl/JSON-XS-2.10.0
78 + >=dev-perl/List-MoreUtils-0.320.0
79 + >=dev-perl/Math-Random-ISAAC-1.0.1
80 + >=dev-perl/Template-Toolkit-2.240.0
81 + >=dev-perl/URI-1.550.0
82 +"
83 +
84 +RDEPEND="
85 + ${BASIC_DEPS}
86 + apache2? ( www-servers/apache[apache2_modules_access_compat] )
87 + !apache2? ( virtual/httpd-cgi )
88 + postgres? ( >=dev-perl/DBD-Pg-1.49 )
89 + mysql? ( >=dev-perl/DBD-mysql-4.0.5 )
90 + sqlite? ( >=dev-perl/DBD-SQLite-1.290.0 )
91 +"
92 +
93 +BDEPEND="
94 + test? ( ${BASIC_DEPS} )
95 + doc? (
96 + dev-python/sphinx
97 + dev-perl/File-Copy-Recursive
98 + )
99 +"
100 +
101 +PATCHES=(
102 + "${FILESDIR}/${PN}-5.0.6-leftbrace.patch"
103 + "${FILESDIR}/${PN}-5.0.6-perl.patch"
104 + "${FILESDIR}/${PN}-5.0.6-template.patch"
105 +)
106 +
107 +src_prepare() {
108 + default
109 +
110 + # Get rid of the bzr files
111 + rm -r .bzr* || die
112 +
113 + # unconditionnally remove pod-coverage tests
114 + rm t/011pod.t || die
115 +}
116 +
117 +src_test() {
118 + TZ=UTC perl -I. runtests.pl || die
119 +}
120 +
121 +src_install() {
122 + webapp_src_preinst
123 +
124 + insinto "${MY_HTDOCSDIR}"
125 + doins -r .
126 +
127 + webapp_postinst_txt en "${FILESDIR}/postinstall-${PV}-en.txt"
128 + webapp_postupgrade_txt en "${FILESDIR}/postupgrade-${PV}-en.txt"
129 + webapp_src_install
130 +
131 + if use doc; then
132 + docs/makedocs.pl
133 + dodoc -r docs/en/html
134 + dodoc -r docs/en/txt
135 + fi
136 +
137 + # openrc service file to enable mail queuing as a service
138 + newinitd "${FILESDIR}"/bugzilla-queue.initd bugzilla-queue
139 +
140 + # must be executable and stay that way upon upgrading
141 + fperms u+x "${MY_HTDOCSDIR}"/checksetup.pl
142 +}
143 +
144 +pkg_postinst() {
145 + elog "Optional dependencies:"
146 + optfeature "Graphical reports, new charts, old charts" "dev-perl/GD dev-perl/Chart dev-perl/Template-GD dev-perl/GDTextUtil dev-perl/GDGraph"
147 + optfeature "Move bugs between installations, automatic update notifications" "dev-perl/MIME-tools dev-perl/libwww-perl dev-perl/XML-Twig"
148 + optfeature "Patch Viewer" "dev-perl/PatchReader"
149 + optfeature "LDAP authentication" "dev-perl/perl-ldap"
150 + optfeature "SMTP authentication" "dev-perl/Authen-SASL"
151 + optfeature "XML-RPC Interface" "dev-perl/SOAP-Lite dev-perl/XMLRPC-Lite dev-perl/Test-Taint"
152 + optfeature "JSON-RPC Interface, REST Interface" "dev-perl/JSON-RPC dev-perl/Test-Taint"
153 + optfeature "More HTML in Product/Group description" "dev-perl/HTML-Scrubber"
154 + optfeature "Automatic charset detection for text attachments" "dev-perl/Encode-Detect"
155 + optfeature "Inbound Email" "dev-perl/Email-Reply dev-perl/HTML-FormatText-WithLinks"
156 + optfeature "Mail Queueing" "dev-perl/TheSchwarz dev-perl/Daemon-Generic"
157 + optfeature "Sniff MIME type of attachments" "dev-perl/File-MimeInfo dev-perl/IO-stringy"
158 + optfeature "Memcached support" "dev-perl/Cache-Memcached"
159 +
160 + ewarn "If Apache is the chosen webserver, please consider turning the apache2 use flag on"
161 + ewarn "Not doing so may result in unexpected runtime errors"
162 +
163 + webapp_pkg_postinst
164 +}
165
166 diff --git a/www-apps/bugzilla/files/bugzilla-5.0.6-leftbrace.patch b/www-apps/bugzilla/files/bugzilla-5.0.6-leftbrace.patch
167 new file mode 100644
168 index 00000000000..efecc0a07d0
169 --- /dev/null
170 +++ b/www-apps/bugzilla/files/bugzilla-5.0.6-leftbrace.patch
171 @@ -0,0 +1,17 @@
172 +Fixes unescaped left brace in regex to pass test 010dependencies.t
173 +
174 +Fix by David Denoncin, based on the 5.0.3 patch
175 +
176 +https://bugzilla.mozilla.org/show_bug.cgi?id=228444
177 +
178 +--- a/t/010dependencies.t 2020-06-09 21:21:28.049161109 -0000
179 ++++ b/t/010dependencies.t 2020-06-09 21:21:07.059161235 -0000
180 +@@ -71,7 +71,7 @@
181 + $used =~ s#/#::#g;
182 + $used =~ s#\.pm$##;
183 + $used =~ s#\$module#[^:]+#;
184 +- $used =~ s#\${[^}]+}#[^:]+#;
185 ++ $used =~ s#\$\{[^}]+}#[^:]+#;
186 + $used =~ s#[" ]##g;
187 + push(@use, grep(/^\Q$used\E$/, keys %mods));
188 + }
189
190 diff --git a/www-apps/bugzilla/files/bugzilla-5.0.6-perl.patch b/www-apps/bugzilla/files/bugzilla-5.0.6-perl.patch
191 new file mode 100644
192 index 00000000000..540e70bd880
193 --- /dev/null
194 +++ b/www-apps/bugzilla/files/bugzilla-5.0.6-perl.patch
195 @@ -0,0 +1,17 @@
196 +Fixes a Perl bug making checksetup.pl fail
197 +
198 +Fix by David Denoncin
199 +
200 +https://github.com/Perl/perl5/issues/17271
201 +https://bugzilla.mozilla.org/show_bug.cgi?id=1588175
202 +
203 +--- a/Bugzilla/Util.pm 2020-07-10 07:18:37.329165376 -0000
204 ++++ b/Bugzilla/Util.pm 2020-07-10 07:18:55.869165262 -0000
205 +@@ -106,7 +106,6 @@
206 + # |U+200e|Left-To-Right Mark |0xe2 0x80 0x8e |
207 + # |U+200f|Right-To-Left Mark |0xe2 0x80 0x8f |
208 + # --------------------------------------------------------
209 +- $var =~ tr/\x{202a}-\x{202e}//d;
210 + }
211 + return $var;
212 + }
213
214 diff --git a/www-apps/bugzilla/files/bugzilla-5.0.6-template.patch b/www-apps/bugzilla/files/bugzilla-5.0.6-template.patch
215 new file mode 100644
216 index 00000000000..040eaf734a8
217 --- /dev/null
218 +++ b/www-apps/bugzilla/files/bugzilla-5.0.6-template.patch
219 @@ -0,0 +1,17 @@
220 +Fixes a simple typo in a template allowing tests to pass
221 +
222 +Fix by David Denoncin
223 +
224 +https://bugzilla.mozilla.org/show_bug.cgi?id=1644655
225 +
226 +--- a/template/en/default/pages/release-notes.html.tmpl 2020-06-09 21:34:41.845822737 -0000
227 ++++ b/template/en/default/pages/release-notes.html.tmpl 2020-06-09 21:05:23.515833860 -0000
228 +@@ -45,7 +45,7 @@
229 +
230 + <h3>5.0.6</h3>
231 + <p>This release contains a schema change to the flagtypes table, allowing for many more flagtypes.</p>.
232 +-<p>The flagtypes table should have been using a mediumint for several releases, but due to a bug in the schema migration code this never happened.</p>
233 ++<p>The flagtypes table should have been using a mediumint for several releases, but due to [% terms.abug %] in the schema migration code this never happened.</p>
234 +
235 + <h3>5.0.5</h3>
236 +
237
238 diff --git a/www-apps/bugzilla/files/postinstall-5.0.6-en.txt b/www-apps/bugzilla/files/postinstall-5.0.6-en.txt
239 new file mode 100644
240 index 00000000000..5c60465deb8
241 --- /dev/null
242 +++ b/www-apps/bugzilla/files/postinstall-5.0.6-en.txt
243 @@ -0,0 +1,30 @@
244 +0. Bugzilla has been installed into ${MY_INSTALLDIR}
245 +
246 +1. To finish the installation, please read
247 + https://bugzilla.readthedocs.io/en/5.0/installing/index.html
248 + https://wiki.gentoo.org/wiki/Bugzilla
249 + You will need to run ${MY_INSTALLDIR}/checksetup.pl
250 +
251 +2. Please read the Release Notes, especially if you are upgrading:
252 + https://www.bugzilla.org/releases/${PV}/release-notes.html
253 +
254 +3. Please note that Apache2 sets AllowOverride None by default. You may have
255 + to edit it to process the .htaccess file provided by Bugzilla. Please see
256 + https://httpd.apache.org/docs/2.2/mod/core.html#allowoverride and
257 + https://bugzilla.readthedocs.io/en/5.0/installing/apache.html for more info.
258 +
259 +4. If this is a large project and you wish to enable mail queuing, you need to
260 + emerge dev-perl/TheSchwarz and dev-perl/Daemon-Generic. To enable mail
261 + queuing as an openrc-service, create a file named bugzilla-queue in
262 + /etc/conf.d/ with this one line
263 +
264 + JOBQUEUE_PATH=${MY_INSTALLDIR}
265 +
266 + Which defines the variable used by the openrc service file
267 + /etc/init.d/bugzilla-queue
268 + Then run:
269 +
270 + rc-update add bugzilla-queue default
271 +
272 +5. For other optional post installation configuration, please read
273 + https://bugzilla.readthedocs.io/en/5.0/installing/optional-post-install-config.html
274
275 diff --git a/www-apps/bugzilla/files/postinstall-en.txt b/www-apps/bugzilla/files/postinstall-en.txt
276 index 9b6a8798a64..e8d8093fdb2 100644
277 --- a/www-apps/bugzilla/files/postinstall-en.txt
278 +++ b/www-apps/bugzilla/files/postinstall-en.txt
279 @@ -2,6 +2,7 @@
280
281 1. To finish the installation, please read
282 http://www.bugzilla.org/docs/${MY_PB}/en/html/installing-bugzilla.html
283 + https://wiki.gentoo.org/wiki/Bugzilla
284 You will need to run ${MY_INSTALLDIR}/checksetup.pl
285
286 2. Please read the Release Notes, especially if you are upgrading:
287
288 diff --git a/www-apps/bugzilla/files/postupgrade-5.0.6-en.txt b/www-apps/bugzilla/files/postupgrade-5.0.6-en.txt
289 new file mode 100644
290 index 00000000000..9b1fab718b6
291 --- /dev/null
292 +++ b/www-apps/bugzilla/files/postupgrade-5.0.6-en.txt
293 @@ -0,0 +1,10 @@
294 +0. Please NOTE: It is impossible to downgrade bugzilla. Prior to upgrading
295 + you should always make a backup of your database, data files and lib files and
296 + read https://www.bugzilla.org/releases/${PV}/release-notes.html
297 +
298 +1. If you have bugzilla emerged with the vhosts flag on, please refer to
299 + https://wiki.gentoo.org/wiki/Webapp-config#Upgrading_an_installed_webapp
300 + or https://wiki.gentoo.org/wiki/Bugzilla#Upgrading to upgrade your bugzilla
301 + instance.
302 +
303 +2. After upgrading you have to run checksetup.pl to complete the upgrade.