[rubygem-pathname2] Fix the FTBFS (rhbz#993311).

Vít Ondruch vondruch at fedoraproject.org
Mon Aug 26 15:52:25 UTC 2013


commit 65a4a44497681a967592451f8fd56d645aadb4ed
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Aug 26 17:45:47 2013 +0200

    Fix the FTBFS (rhbz#993311).

 rubygem-pathname2.spec |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-pathname2.spec b/rubygem-pathname2.spec
index 977d6d0..5f43c6c 100644
--- a/rubygem-pathname2.spec
+++ b/rubygem-pathname2.spec
@@ -59,6 +59,13 @@ popd
 %{__cp} -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
 
 %check
+# This seems to fail temporarily due to
+# https://github.com/ruby/ruby/commit/4077b9b89dc1f139775774e59705677e54712cba
+# but should be already fixed by
+# https://github.com/ruby/ruby/commit/a6e3d4bea0c6625c76669d7246868f7683dd23a6
+# http://bugs.ruby-lang.org/issues/8633
+sed -i "/    methods\.delete('identical?')$/ a\\    methods.delete(:mode_to_s)" $(pwd)%{gem_instdir}/test/test_pathname.rb
+
 ruby -I$(pwd)%{gem_libdir} $(pwd)%{gem_instdir}/test/test_pathname.rb
 
 %clean


More information about the scm-commits mailing list