Hello community,

here is the log from the commit of package ruby20 for openSUSE:Factory checked 
in at 2013-12-11 11:33:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby20 (Old)
 and      /work/SRC/openSUSE:Factory/.ruby20.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby20"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby20/ruby20.changes    2013-11-30 
16:22:12.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ruby20.new/ruby20.changes       2013-12-11 
11:33:05.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Dec  9 15:42:43 UTC 2013 - [email protected]
+
+- drop invalid content size check in xmlrpc (fails with compressed data)
+  http://bugs.ruby-lang.org/issues/8182
+
+-------------------------------------------------------------------

New:
----
  drop_content_size_check_in_xmlrpc.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ruby20.spec ++++++
--- /var/tmp/diff_new_pack.FLFYk9/_old  2013-12-11 11:33:06.000000000 +0100
+++ /var/tmp/diff_new_pack.FLFYk9/_new  2013-12-11 11:33:06.000000000 +0100
@@ -69,6 +69,7 @@
 Source6:        ruby20.macros
 Patch0:         rubygems-1.5.0_buildroot.patch
 Patch1:         ruby-1.9.2p290_tcl_no_stupid_rpaths.patch
+Patch2:         drop_content_size_check_in_xmlrpc.patch
 #
 Summary:        An Interpreted Object-Oriented Scripting Language
 License:        BSD-2-Clause or Ruby
@@ -205,6 +206,7 @@
 %setup -q -n ruby-%{pkg_version}-%{patch_level}
 %patch0
 %patch1
+%patch2
 find sample -type f -print0 | xargs -r0 chmod a-x
 grep -Erl '^#! */' benchmark bootstraptest ext lib sample test \
   | xargs -r perl -p -i -e 's|^#!\s*\S+(\s+.*)?$|#!/usr/bin/ruby2.0$1|'

++++++ drop_content_size_check_in_xmlrpc.patch ++++++
xmlrpc is doing a wrong content size check in case the server is compressing 
the answer. drop the check for now.
http://bugs.ruby-lang.org/issues/8182
--- lib/xmlrpc/client.rb.orig   2013-09-11 10:31:53.294072202 +0200
+++ lib/xmlrpc/client.rb        2013-09-11 10:32:12.486072647 +0200
@@ -502,8 +502,6 @@
       expected = resp["Content-Length"] || "<unknown>"
       if data.nil? or data.bytesize == 0
         raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
-      elsif expected != "<unknown>" and expected.to_i != data.bytesize and 
resp["Transfer-Encoding"].nil?
-        raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
       end
 
       set_cookies = resp.get_fields("Set-Cookie")
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to