commit:     01ddd17cf2fc39e63afb608c6e6838bcb52794d1
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 13 09:14:36 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 09:14:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ddd17c

dev-ruby/tzinfo: skip "safe" tests

We cannot guarantee that these tests will pass since they
depend on the permissions of the directory hierarchy.

Fixes: https://bugs.gentoo.org/693828
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/tzinfo/tzinfo-1.2.5.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild 
b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
index 1b36cf383f9..37433640300 100644
--- a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
+++ b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild
@@ -29,4 +29,7 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
 all_ruby_prepare() {
        # Set the secure permissions that tests expect.
        chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
+
+       # Avoid taint tests that throw SecurityErrors on newer ruby versions.
+       sed -i -e '/_info_tainted/askip"SecurityError"' 
test/tc_ruby_data_source.rb || die
 }

Reply via email to