Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/bugzilla/, www-apps/bugzilla/files/
Date: Tue, 25 Dec 2018 20:41:06
Message-Id: 1545770444.bce34290b1ac77ddf8e9f018b93356b7e859dadc.dilfridge@gentoo
1 commit: bce34290b1ac77ddf8e9f018b93356b7e859dadc
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 25 20:40:22 2018 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 25 20:40:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bce34290
7
8 www-apps/bugzilla: Fix tests for Perl 5.26, bug 632064
9
10 The required modules are not installed into any Perl default search
11 paths, but into the BZ web directory. This means that not finding
12 the modules is a test-specific problem; in actual usage they will
13 be found otherwise.
14
15 Closes: https://bugs.gentoo.org/632064
16 Package-Manager: Portage-2.3.52, Repoman-2.3.12
17 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
18
19 www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild | 11 ++++++---
20 www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild | 11 ++++++---
21 .../bugzilla/files/bugzilla-5.0.3-leftbrace.patch | 26 ++++++++++++++++++++++
22 3 files changed, 42 insertions(+), 6 deletions(-)
23
24 diff --git a/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild b/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild
25 index 2d6b66fd871..9668d236f5d 100644
26 --- a/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild
27 +++ b/www-apps/bugzilla/bugzilla-4.4.12-r2.ebuild
28 @@ -1,4 +1,4 @@
29 -# Copyright 1999-2017 Gentoo Foundation
30 +# Copyright 1999-2018 Gentoo Authors
31 # Distributed under the terms of the GNU General Public License v2
32
33 EAPI=6
34 @@ -75,6 +75,10 @@ RDEPEND="
35 want_apache modperl
36 need_httpd_cgi
37
38 +PATCHES=(
39 + "${FILESDIR}/${PN}"-5.0.3-leftbrace.patch
40 +)
41 +
42 pkg_setup() {
43 depend.apache_pkg_setup modperl
44 webapp_pkg_setup
45 @@ -86,11 +90,12 @@ src_prepare() {
46
47 # Remove bundled perl modules
48 rm -r lib/ || die
49 - eapply_user
50 +
51 + default
52 }
53
54 src_test() {
55 - perl runtests.pl || die
56 + perl -I. runtests.pl || die
57 }
58
59 src_install () {
60
61 diff --git a/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild b/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild
62 index 0675641f321..feb026881ff 100644
63 --- a/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild
64 +++ b/www-apps/bugzilla/bugzilla-5.0.3-r2.ebuild
65 @@ -1,4 +1,4 @@
66 -# Copyright 1999-2017 Gentoo Foundation
67 +# Copyright 1999-2018 Gentoo Authors
68 # Distributed under the terms of the GNU General Public License v2
69
70 EAPI=6
71 @@ -79,6 +79,10 @@ RDEPEND="
72 want_apache modperl
73 need_httpd_cgi
74
75 +PATCHES=(
76 + "${FILESDIR}/${PN}"-5.0.3-leftbrace.patch
77 +)
78 +
79 pkg_setup() {
80 depend.apache_pkg_setup modperl
81 webapp_pkg_setup
82 @@ -90,11 +94,12 @@ src_prepare() {
83
84 # Remove bundled perl modules
85 rm -r lib/ || die
86 - eapply_user
87 +
88 + default
89 }
90
91 src_test() {
92 - perl runtests.pl || die
93 + perl -I. runtests.pl || die
94 }
95
96 src_install () {
97
98 diff --git a/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch b/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch
99 new file mode 100644
100 index 00000000000..f5704406d87
101 --- /dev/null
102 +++ b/www-apps/bugzilla/files/bugzilla-5.0.3-leftbrace.patch
103 @@ -0,0 +1,26 @@
104 +From 3c60fba26b1fa51ec302d05dc6e76236d2f54ba4 Mon Sep 17 00:00:00 2001
105 +From: Simon Green <mail@×××××.green>
106 +Date: Sun, 30 Oct 2016 14:55:23 +1000
107 +Subject: [PATCH] Bug 228444 - Checking for unquoted non regex variable
108 + interpolated into regex
109 +
110 +---
111 + t/010dependencies.t | 2 +-
112 + 1 file changed, 1 insertion(+), 1 deletion(-)
113 +
114 +diff --git a/t/010dependencies.t b/t/010dependencies.t
115 +index 4b7ca223d..1b6c270a8 100644
116 +--- a/t/010dependencies.t
117 ++++ b/t/010dependencies.t
118 +@@ -69,7 +69,7 @@ foreach my $module (keys %mods) {
119 + $used =~ s#/#::#g;
120 + $used =~ s#\.pm$##;
121 + $used =~ s#\$module#[^:]+#;
122 +- $used =~ s#\${[^}]+}#[^:]+#;
123 ++ $used =~ s#\$\{[^}]+}#[^:]+#;
124 + $used =~ s#[" ]##g;
125 + push(@use, grep(/^\Q$used\E$/, keys %mods));
126 + }
127 +--
128 +2.20.1
129 +