Skip to content

Commit

Permalink
dev-ruby/rubyzip: fix test on big-endian systems
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
graaff committed Jun 26, 2020
1 parent 624e4c4 commit 3933265
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-ruby/rubyzip/rubyzip-1.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
3 changes: 3 additions & 0 deletions dev-ruby/rubyzip/rubyzip-2.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3933265

Please sign in to comment.