Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/DBD-mysql/files/
Date: Thu, 29 Aug 2019 09:52:36
Message-Id: 1567072153.17f105f2cdfb6bffec9efaaba24a61e3c7f1e4fa.kentnl@gentoo
1 commit: 17f105f2cdfb6bffec9efaaba24a61e3c7f1e4fa
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 29 06:07:27 2019 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 29 09:49:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f105f2
7
8 dev-perl/DBD-mysql: Add missing patch
9
10 Something messed up in a git rebase/sync somehow and I didn't notice
11 till too late.
12
13 Package-Manager: Portage-2.3.72, Repoman-2.3.16
14 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
15
16 .../files/DBD-mysql-4.050-no-dot-inc.patch | 166 +++++++++++++++++++++
17 1 file changed, 166 insertions(+)
18
19 diff --git a/dev-perl/DBD-mysql/files/DBD-mysql-4.050-no-dot-inc.patch b/dev-perl/DBD-mysql/files/DBD-mysql-4.050-no-dot-inc.patch
20 new file mode 100644
21 index 00000000000..d5a0fe0b524
22 --- /dev/null
23 +++ b/dev-perl/DBD-mysql/files/DBD-mysql-4.050-no-dot-inc.patch
24 @@ -0,0 +1,166 @@
25 +From 4e5417cbdd97bfc6dd53130de69f9173af59c273 Mon Sep 17 00:00:00 2001
26 +From: Pali <pali@××××.org>
27 +Date: Mon, 17 Apr 2017 21:38:58 +0200
28 +Subject: Fix tests on Perl On 5.25.10 or greater with
29 + -Ddefault_inc_excludes_dot
30 +
31 +Some tests do not include dot in %INC and fails with error:
32 +Can't locate t/lib.pl in @INC
33 +
34 +Fixes: https://rt.cpan.org/Public/Bug/Display.html?id=120709
35 +---
36 + t/40server_prepare_crash.t | 3 ++-
37 + t/lib.pl | 5 +++--
38 + t/rt110983-valid-mysqlfd.t | 3 ++-
39 + t/rt118977-zerofill.t | 2 +-
40 + t/rt25389-bin-case.t | 3 ++-
41 + t/rt50304-column_info_parentheses.t | 3 ++-
42 + t/rt61849-bind-param-buffer-overflow.t | 3 ++-
43 + t/rt75353-innodb-lock-timeout.t | 3 ++-
44 + t/rt83494-quotes-comments.t | 3 ++-
45 + 9 files changed, 18 insertions(+), 10 deletions(-)
46 +
47 +diff --git a/t/40server_prepare_crash.t b/t/40server_prepare_crash.t
48 +index 103276d..80bc9b7 100644
49 +--- a/t/40server_prepare_crash.t
50 ++++ b/t/40server_prepare_crash.t
51 +@@ -5,7 +5,8 @@ use Test::More;
52 + use DBI;
53 +
54 + use vars qw($test_dsn $test_user $test_password);
55 +-require "t/lib.pl";
56 ++use lib 't', '.';
57 ++require "lib.pl";
58 +
59 + my $dbh = eval { DBI->connect($test_dsn, $test_user, $test_password, { PrintError => 1, RaiseError => 1, AutoCommit => 0, mysql_server_prepare => 1, mysql_server_prepare_disable_fallback => 1 }) };
60 + plan skip_all => "no database connection" if $@ or not $dbh;
61 +diff --git a/t/lib.pl b/t/lib.pl
62 +index 2221c40..0c756a0 100644
63 +--- a/t/lib.pl
64 ++++ b/t/lib.pl
65 +@@ -2,6 +2,7 @@ use strict;
66 + use warnings;
67 +
68 + use Test::More;
69 ++use File::Spec ();
70 + use DBI::Const::GetInfoType;
71 + use vars qw($mdriver $dbdriver $childPid $test_dsn $test_user $test_password);
72 +
73 +@@ -31,7 +32,7 @@ if (-f ($file = "t/$dbdriver.dbtest") ||
74 + -f ($file = "$dbdriver.dbtest") ||
75 + -f ($file = "../tests/$dbdriver.dbtest") ||
76 + -f ($file = "tests/$dbdriver.dbtest")) {
77 +- eval { require $file; };
78 ++ eval { require File::Spec->rel2abs($file); };
79 + if ($@) {
80 + print STDERR "Cannot execute $file: $@.\n";
81 + print "1..0\n";
82 +@@ -45,7 +46,7 @@ if (-f ($file = "t/$mdriver.mtest") ||
83 + -f ($file = "$mdriver.mtest") ||
84 + -f ($file = "../tests/$mdriver.mtest") ||
85 + -f ($file = "tests/$mdriver.mtest")) {
86 +- eval { require $file; };
87 ++ eval { require File::Spec->rel2abs($file); };
88 + if ($@) {
89 + print STDERR "Cannot execute $file: $@.\n";
90 + print "1..0\n";
91 +diff --git a/t/rt110983-valid-mysqlfd.t b/t/rt110983-valid-mysqlfd.t
92 +index c5af2fa..a6ec8fb 100644
93 +--- a/t/rt110983-valid-mysqlfd.t
94 ++++ b/t/rt110983-valid-mysqlfd.t
95 +@@ -5,7 +5,8 @@ use Test::More;
96 + use DBI;
97 +
98 + use vars qw($test_dsn $test_user $test_password);
99 +-require "t/lib.pl";
100 ++use lib 't', '.';
101 ++require "lib.pl";
102 +
103 + my $dbh = eval { DBI->connect($test_dsn, $test_user, $test_password, { RaiseError => 1, AutoCommit => 0 }) };
104 + plan skip_all => "no database connection" if $@ or not $dbh;
105 +diff --git a/t/rt118977-zerofill.t b/t/rt118977-zerofill.t
106 +index 27ba1b7..86edb8e 100644
107 +--- a/t/rt118977-zerofill.t
108 ++++ b/t/rt118977-zerofill.t
109 +@@ -5,7 +5,7 @@ use Test::More;
110 + use DBI;
111 +
112 + use vars qw($test_dsn $test_user $test_password);
113 +-require "t/lib.pl";
114 ++require "./t/lib.pl";
115 +
116 + my $dbh = eval { DBI->connect($test_dsn, $test_user, $test_password, { PrintError => 1, RaiseError => 1 }) };
117 + plan skip_all => "no database connection" if $@ or not $dbh;
118 +diff --git a/t/rt25389-bin-case.t b/t/rt25389-bin-case.t
119 +index 37bffb9..9d091b3 100644
120 +--- a/t/rt25389-bin-case.t
121 ++++ b/t/rt25389-bin-case.t
122 +@@ -4,7 +4,8 @@ use warnings;
123 + use DBI;
124 +
125 + use vars qw($test_dsn $test_user $test_password);
126 +-require "t/lib.pl";
127 ++use lib 't', '.';
128 ++require "lib.pl";
129 +
130 + use Test::More;
131 +
132 +diff --git a/t/rt50304-column_info_parentheses.t b/t/rt50304-column_info_parentheses.t
133 +index 28b2128..e03e332 100644
134 +--- a/t/rt50304-column_info_parentheses.t
135 ++++ b/t/rt50304-column_info_parentheses.t
136 +@@ -4,7 +4,8 @@ use warnings;
137 + use DBI;
138 +
139 + use vars qw($test_dsn $test_user $test_password $state);
140 +-require "t/lib.pl";
141 ++use lib 't', '.';
142 ++require "lib.pl";
143 +
144 + use Test::More;
145 +
146 +diff --git a/t/rt61849-bind-param-buffer-overflow.t b/t/rt61849-bind-param-buffer-overflow.t
147 +index f1fb254..a457d57 100644
148 +--- a/t/rt61849-bind-param-buffer-overflow.t
149 ++++ b/t/rt61849-bind-param-buffer-overflow.t
150 +@@ -5,7 +5,8 @@ use Test::More;
151 + use DBI;
152 +
153 + use vars qw($test_dsn $test_user $test_password);
154 +-require "t/lib.pl";
155 ++use lib 't', '.';
156 ++require "lib.pl";
157 +
158 + my $INSECURE_VALUE_FROM_USER = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
159 +
160 +diff --git a/t/rt75353-innodb-lock-timeout.t b/t/rt75353-innodb-lock-timeout.t
161 +index 9c97d60..35fa5a7 100644
162 +--- a/t/rt75353-innodb-lock-timeout.t
163 ++++ b/t/rt75353-innodb-lock-timeout.t
164 +@@ -5,7 +5,8 @@ use Test::More;
165 + use DBI;
166 +
167 + use vars qw($test_dsn $test_user $test_password);
168 +-require "t/lib.pl";
169 ++use lib 't', '.';
170 ++require "lib.pl";
171 +
172 + my $dbh1 = eval { DBI->connect($test_dsn, $test_user, $test_password, { RaiseError => 1, AutoCommit => 0 }) };
173 + plan skip_all => "no database connection" if $@ or not $dbh1;
174 +diff --git a/t/rt83494-quotes-comments.t b/t/rt83494-quotes-comments.t
175 +index 9df0d90..c42afe4 100644
176 +--- a/t/rt83494-quotes-comments.t
177 ++++ b/t/rt83494-quotes-comments.t
178 +@@ -9,7 +9,8 @@ use DBI;
179 + use Test::More;
180 +
181 + use vars qw($test_dsn $test_user $test_password $state);
182 +-require "t/lib.pl";
183 ++use lib 't', '.';
184 ++require "lib.pl";
185 +
186 + my $dbh;
187 + eval {$dbh= DBI->connect($test_dsn, $test_user, $test_password,
188 +--
189 +2.23.0
190 +