Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249921 - [dev-ruby/ruby-dbi] ebuild misses oracle USE flag
Summary: [dev-ruby/ruby-dbi] ebuild misses oracle USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 11:05 UTC by Erwin Paternotte
Modified: 2009-01-18 16:46 UTC (History)
1 user (show)

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


Attachments
Updated ebuild with oracle use flag added (ruby-dbi-0.1.1-r1.ebuild,1.45 KB, text/plain)
2008-12-05 11:09 UTC, Erwin Paternotte
Details
ruby-dbi-0.2.0-r1, Oracle use flag added (ruby-dbi-0.2.0-r1.ebuild,1.59 KB, text/plain)
2008-12-08 12:54 UTC, Erwin Paternotte
Details
ruby-oci8-1.0.3.ebuild (ruby-oci8-1.0.3.ebuild,647 bytes, text/plain)
2008-12-08 12:55 UTC, Erwin Paternotte
Details
ruby-oci8-1.0.3.ebuild using rubyforge mirror (ruby-oci8-1.0.3.ebuild,697 bytes, text/plain)
2009-01-02 17:12 UTC, Troy Bowman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Paternotte 2008-12-05 11:05:34 UTC
The current stable ruby-dbi ebuild misses oracle USE flag. Therefore support for Oracle databases cannot be enabled for ruby-dbi.

Reproducible: Always

Steps to Reproduce:
1.check the current stable (0.1.1) ruby-dbi ebuild
2.inspect the ebuild for any Oracle database support
3.Notice there is no support there

Actual Results:  
No Oracle support there

Expected Results:  
An use flag for the ruby-dbi packages to enable Oracle database support

corrected ebuild is attached to this bug
Comment 1 Erwin Paternotte 2008-12-05 11:09:48 UTC
Created attachment 174308 [details]
Updated ebuild with oracle use flag added

Also tested the newest ruby-dbi package (0.4.1), but that version is completely different and doesn't seem to have support for Oracle anymore. Anyhow that version didn't work with some metasploit modules MC developed, which is the reason why I updated this ebuild. (http://www.metasploit.com/users/mc)
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-06 06:58:38 UTC
Thanks for submitting your enhancement. Assigning to maintainers.
Comment 3 Hans de Graaff gentoo-dev Security 2008-12-06 09:13:32 UTC
As far as I can tell ruby-dbi 0.4.1 still has Oracle support, at least according to the documentation, but it looks like all the dbd packages got split out to different packages. DBD::OCI8 seems to be provided by the ruby-oci8 package.

Did you also test ruby-dbi-0.2.0? This version is newer and contains bug fixes compared to 0.1.1, so I'd much rather fix 0.2.0 for now and work towards stabling that.
Comment 4 Erwin Paternotte 2008-12-08 12:53:45 UTC
(In reply to comment #3)
> As far as I can tell ruby-dbi 0.4.1 still has Oracle support, at least
> according to the documentation, but it looks like all the dbd packages got
> split out to different packages. DBD::OCI8 seems to be provided by the
> ruby-oci8 package.
I made an ebuild for version 0.4.1 of ruby-dbi and also installed the latest ruby-oci8 version (1.0.3), but I was not able to get it working. When I switched back to version 0.1.1 it was working right away.

> Did you also test ruby-dbi-0.2.0? This version is newer and contains bug fixes
> compared to 0.1.1, so I'd much rather fix 0.2.0 for now and work towards
> stabling that.
I've just done a test with ruby-dbi-0.2.0 and that version is working fine as well. See attached ebuild. I also included an ebuild for the latest version of ruby-oci8 (1.0.3).

Comment 5 Erwin Paternotte 2008-12-08 12:54:53 UTC
Created attachment 174638 [details]
ruby-dbi-0.2.0-r1, Oracle use flag added
Comment 6 Erwin Paternotte 2008-12-08 12:55:21 UTC
Created attachment 174640 [details]
ruby-oci8-1.0.3.ebuild
Comment 7 Hans de Graaff gentoo-dev Security 2008-12-08 20:23:06 UTC
I've added dev-ruby/ruby-0.2.0-r1 based on your version (but minus the one typo) :-)

Also cc'ing Troy Bowman, the maintainer of dev-ruby/ruby-oci8, for the updated ruby-oci8-1.0.3.ebuild (and possibly he can also shed some light on the ruby-dbi 0.4.1 issues. 

Finally, note that there is a 0.4.1 version of ruby-dbi in the ruby overlay.
Comment 8 Troy Bowman 2008-12-11 23:41:41 UTC
(In reply to comment #7)
> I've added dev-ruby/ruby-0.2.0-r1 based on your version (but minus the one
> typo) :-)
> 
> Also cc'ing Troy Bowman, the maintainer of dev-ruby/ruby-oci8, for the updated
> ruby-oci8-1.0.3.ebuild (and possibly he can also shed some light on the
> ruby-dbi 0.4.1 issues.

Yeah, ruby-oci8 needs a version bump.  The ebuild is very simple and bumping it up a version is trivial.  It looks like Erwin already did it and attached it to this bug.  The only thing I don't like about his version is that the SRC_URI is hard-coded, and we might be able to use the rubyforge mirror://rubyforge/ for the SRC_URI.

As for ruby-dbi, the DBD::OCI8 interoperability is an upstream problem, and thus would be best handled by the http://ruby-oci8.rubyforge.org/ team.  In my experience, I've never been able to get ruby-dbi to work completely reliably with ruby-oci8, even in the older where it seems to work at first.  The last time I tried ruby-dbi with DBD::OCI8 (almost a year ago), ruby-dbi didn't handle cursors (prepared statements) and variable bindings appropriately, and only worked with the simplest of statements.  I've resorted to just using ruby-oci8 sans ruby-dbi for now until the dbi and oci8 wizzes hammer out the problems.
Comment 9 Hans de Graaff gentoo-dev Security 2008-12-13 10:49:23 UTC
I now see that the ruby-oci3-1.0.3 ebuild switches to the gem format. I'd rather keep it as a normal ruby ebuild instead, but I can't test the new version since I don't have Oracle installed.

Comment 10 Troy Bowman 2008-12-22 07:08:06 UTC
I'll build and test ruby-oci8-1.0.3 with a normal ruby (non-gem) build when I get into the office in a couple weeks.  I'm on vacation for the holidays and I don't do Oracle for fun at home.
Comment 11 Troy Bowman 2009-01-02 17:12:56 UTC
Created attachment 177122 [details]
ruby-oci8-1.0.3.ebuild using rubyforge mirror

Here's a version that uses rubyforge and non-gem.  Now version bumps should be as simple as changing the filename.  I've installed it and it appears to be fine for my stuff.
Comment 12 Hans de Graaff gentoo-dev Security 2009-01-18 16:46:48 UTC
I've now added the ebuild to Gentoo CVS. Thanks Erwin and Troy!