Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207585 - [PATCH] dev-ruby/sqlite3-ruby doesn't work with ruby-1.9
Summary: [PATCH] dev-ruby/sqlite3-ruby doesn't work with ruby-1.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-26 17:56 UTC by Maksim 'max_posedon' Melnikau
Modified: 2008-09-23 19:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch ruby19 compability (sqlite3-ruby-1.9.patch,12.62 KB, patch)
2008-01-26 18:00 UTC, Maksim 'max_posedon' Melnikau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2008-01-26 17:56:37 UTC
sqlite3-ruby masked as able to work with ruby19

Reproducible: Always

Steps to Reproduce:
1. emerge ruby-1.9 ( http://bugs.gentoo.org/show_bug.cgi?id=173817 )
2. emerge sqlite3-ruby 
3. require 'sqlite'
Actual Results:  
exeptiptions in pragmas.rb files (because in ruby19 syntax chenged)

Expected Results:  
all should work.

I fixed it locally via changing ebuild, and patch (attached file)

--- /usr/portage/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild        2007-05-24 17:05:42.000000000 +0300
+++ /home/data/gentoo/overlay/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild   2008-01-26 14:46:26.000000000 +0200
@@ -18,6 +18,8 @@
 DEPEND="=dev-db/sqlite-3*
        swig? ( dev-lang/swig )"

+PATCHES="${FILESDIR}/sqlite3-ruby-1.9.patch"
+
 pkg_setup() {
        if use swig && ! built_with_use dev-lang/swig ruby ; then
                eerror "You must compile swig with ruby bindings. Please add"
Comment 1 Maksim 'max_posedon' Melnikau 2008-01-26 18:00:43 UTC
Created attachment 141832 [details, diff]
patch ruby19 compability

http://svn.jamisbuck.org/sqlite3-ruby/trunk

Patch generated via : svn diff -r45:46

svn log -r46
------------------------------------------------------------------------
r46 | jamis | 2008-01-17 21:36:14 +0200 (Thu, 17 Jan 2008) | 2 lines

ruby 1.9 compatibility tweaks (thanks Roman Le Negrate <roman2k@free.fr>)

------------------------------------------------------------------------
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2008-09-16 12:01:35 UTC
sqlite3-ruby is currently at version 1.2.4, which is already 1.9 compatible.

You'll find it in the Ruby overlay.
Comment 3 Hans de Graaff gentoo-dev Security 2008-09-23 19:07:06 UTC
Version 1.2.4 is now in CVS. Thanks Maksim, Alex.