commit:     39332659b3b8bf082b527dc67d32a1faf1753bb9
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 26 09:29:23 2020 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jun 26 09:29:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39332659

dev-ruby/rubyzip: fix test on big-endian systems

Use the proper endian representation on all arches.

Closes: https://bugs.gentoo.org/729632
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/rubyzip/rubyzip-1.3.0.ebuild | 3 +++
 dev-ruby/rubyzip/rubyzip-2.3.0.ebuild | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-ruby/rubyzip/rubyzip-1.3.0.ebuild 
b/dev-ruby/rubyzip/rubyzip-1.3.0.ebuild
index cc2a60650cc..5193e0b8746 100644
--- a/dev-ruby/rubyzip/rubyzip-1.3.0.ebuild
+++ b/dev-ruby/rubyzip/rubyzip-1.3.0.ebuild
@@ -46,4 +46,7 @@ all_ruby_prepare() {
 
        # Add missing requires
        sed -i -e '1irequire "forwardable"; require "pathname"' 
test/input_stream_test.rb || die
+
+       # Fix broken test that uses native endian
+       sed -i -e '/pack/ s/LLS/VVv/' test/file_extract_test.rb || die
 }

diff --git a/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild 
b/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
index 16bec97ba96..f7274c64078 100644
--- a/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
+++ b/dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
@@ -48,4 +48,7 @@ all_ruby_prepare() {
 
        # Add missing requires
        sed -i -e '1irequire "forwardable"; require "pathname"' 
test/input_stream_test.rb || die
+
+       # Fix broken test that uses native endian
+       sed -i -e '/pack/ s/LLS/VVv/' test/file_extract_test.rb || die
 }

Reply via email to