[DRE-maint] Bug#678515: #678515: ruby-mysql vs ruby1.9 encodings vs redmine

Antonio Terceiro terceiro at debian.org
Sun Aug 5 19:24:20 UTC 2012


tags 678515 + pending patch
thanks

Hi Dmitry,

Dmitry Borodaenko escreveu isso aí:
> Hi All,
> 
> I'm somewhat puzzled about this bug. The root cause of the problem
> appears to be that ruby-mysql doesn't support Ruby 1.9 string encodings,
> and it is abandoned upstream, so a quick fix from upstream isn't likely.
> 
> The proposed solution is to package Mysql2 gem, and this is where things
> get complicated.
[...]
> Based on all this (including all the assumptions I've made above), the
> most sensible way forward is rather long and winding:
> 
> 1. Package MySQL2 0.3.11 as ruby-mysql2.
> 2. Reassign #678515 back to redmine-mysql.
> 3. Raise new normal bugs against ruby-graffiti, jekyll, and
> ruby-opennebula to update its Depends.
> 4. Raise new upstream normal bug against oar to replace Ruby/DBI with
> Sequel.
> 5. Raise new serious bugs against ruby-mysql and ruby-dbd-mysql to warn
> off future would-be dependers and remove these package as soon as their
> reverse-dependencies are sorted.

This sounds like a good plan.

However, I don't think we will be able to do that for Wheezy this late
into the release cycle, and ~1 month inside the freeze.

ruby-mysql is deprecated, yes, but IMO we will have to live with it for
Wheezy.

I've spent some time on this issue today, and searching on the internet
I've found this:

https://github.com/lsegal/mysql-ruby

This is a fork of ruby-mysql that implements encoding support. This
encoding support is actually a single patch:

https://github.com/lsegal/mysql-ruby/commit/b7e4613559f0a741935ad375f07f9411c2107bb7

I've adapted this patch, applied it to the package and tested on a
wheezy VM where I had reproduced the problem with redmine and mysql
before. After I installed this new package and restarted apache, redmine
worked fine with UTF-8 data.

The fixed package is on git:
http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-mysql.git;a=commitdiff;h=86f0e699f562857287d21a8e288811553b7c64ae

I can upload this fix, if you agree.

But for Jessie (Wheezy+1), I am all for droping ruby-mysql and doing
what you suggested.

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20120805/5ecb6ffa/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list