Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/tzinfo/
Date: Sun, 13 Oct 2019 09:14:57
Message-Id: 1570958076.01ddd17cf2fc39e63afb608c6e6838bcb52794d1.graaff@gentoo
1 commit: 01ddd17cf2fc39e63afb608c6e6838bcb52794d1
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 13 09:14:36 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 13 09:14:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ddd17c
7
8 dev-ruby/tzinfo: skip "safe" tests
9
10 We cannot guarantee that these tests will pass since they
11 depend on the permissions of the directory hierarchy.
12
13 Fixes: https://bugs.gentoo.org/693828
14 Package-Manager: Portage-2.3.76, Repoman-2.3.16
15 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
16
17 dev-ruby/tzinfo/tzinfo-1.2.5.ebuild | 3 +++
18 1 file changed, 3 insertions(+)
19
20 diff --git a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
21 index 1b36cf383f9..37433640300 100644
22 --- a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
23 +++ b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
24 @@ -29,4 +29,7 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
25 all_ruby_prepare() {
26 # Set the secure permissions that tests expect.
27 chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
28 +
29 + # Avoid taint tests that throw SecurityErrors on newer ruby versions.
30 + sed -i -e '/_info_tainted/askip"SecurityError"' test/tc_ruby_data_source.rb || die
31 }