rpms/rubygem-nokogiri/F-11 rubygem-nokogiri-1.3.3-optional_attr-test.patch, NONE, 1.1 rubygem-nokogiri.spec, 1.10, 1.11

Mamoru Tasaka mtasaka at fedoraproject.org
Tue Dec 1 17:55:43 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/rubygem-nokogiri/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22246/F-11

Modified Files:
	rubygem-nokogiri.spec 
Added Files:
	rubygem-nokogiri-1.3.3-optional_attr-test.patch 
Log Message:
Fix test failure

rubygem-nokogiri-1.3.3-optional_attr-test.patch:
 test_element_description.rb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- NEW FILE rubygem-nokogiri-1.3.3-optional_attr-test.patch ---
--- test/html/test_element_description.rb.debug	2009-12-02 02:06:03.000000000 +0900
+++ test/html/test_element_description.rb	2009-12-02 02:48:44.000000000 +0900
@@ -66,7 +66,10 @@
       def test_optional_attributes
         attrs = ElementDescription['table'].optional_attributes
         assert attrs
-        assert_equal 22, attrs.length
+        # Actually 23, not 22 (with libxml2 2.7.6). "22" was due to
+        # bug in libxml2 2.7.3 (GNOME bug 581803)
+        # Anyway no longer check this (as nokogiri 1.4.0 does not check this)
+        # assert_equal 22, attrs.length
       end
 
       def test_deprecated_attributes


Index: rubygem-nokogiri.spec
===================================================================
RCS file: /cvs/extras/rpms/rubygem-nokogiri/F-11/rubygem-nokogiri.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- rubygem-nokogiri.spec	1 Dec 2009 16:42:26 -0000	1.10
+++ rubygem-nokogiri.spec	1 Dec 2009 17:55:43 -0000	1.11
@@ -18,6 +18,8 @@ Group:		Development/Languages
 License:	MIT
 URL:		http://nokogiri.rubyforge.org/nokogiri/
 Source0:	http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+# Not needed with nokogiri 1.4.0
+Patch0:		rubygem-nokogiri-1.3.3-optional_attr-test.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	ruby(abi) = %{rubyabi}
@@ -71,6 +73,10 @@ gem install \
 	-V --force \
 	%{SOURCE0}
 
+pushd .%{geminstdir}
+%patch0 -p0
+popd
+
 %build
 # cflags wrong (-O3 passed), recompiling
 pushd ./%{geminstdir}
@@ -204,6 +210,7 @@ popd
 %changelog
 * Wed Dec  2 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3.3-3
 - Rebuild against libxml2 again (bug 537303)
+- And add patch to make test pass (related to GNOME bug 581803)
 
 * Sat Aug 22 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3.3-2
 - Fix test failure on sparc




More information about the fedora-extras-commits mailing list