Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 111154
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Ruby Team <ruby@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Hein Rigolo <rigolo@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ruby-odbc-0.996.ebuild ruby-odbc-0.996.ebuild text/plain Hein Rigolo 2005-11-01 08:32 0000 853 bytes Details
ruby-odbc-0.996-r1.ebuild ruby-odbc-0.966-r1.ebuild text/plain Hein Rigolo 2005-11-02 04:37 0000 540 bytes Details
Changelog Changelog for ruby-odbc text/plain Hein Rigolo 2005-11-02 04:53 0000 488 bytes Details
ruby-odbc-0.996-r1.ebuild ruby-odbc.ebuold text/plain Josip Dzolonga 2006-06-20 16:51 0000 488 bytes Details
ruby-odbc-0.9993.ebuild ruby-odbc-0.9993.ebuild text/plain Richard Brown (RETIRED) 2006-10-05 01:24 0000 495 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 111154 depends on: Show dependency tree
Bug 111154 blocks: 150146
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-11-01 08:29 0000
Hi,

While trying to install Ruby on Rails to work with an MS SQL Server database
according to the instruction on the Ruby on Rails wiki (see
http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServerFromRailsOnLinux)
I found that there was no ebuild for Ruby ODBC (http://www.ch-werner.de/rubyodbc/)

Based on the Ruby-DBI ebuild I created an ebuild for this package. There is a
dependency with unixODBC and ofcourse Ruby.

I was able to get this ebuild working on a clean 2005.1 install with Ruby 1.8.3
and unixODBC-2.2.11-r1

This is my first attempt at creating an ebuild, so please check if it is correct.

Hein

------- Comment #1 From Hein Rigolo 2005-11-01 08:32:59 0000 -------
Created an attachment (id=71875) [details]
ruby-odbc-0.996.ebuild

First Version of the ruby-odbc-0.996.ebuild

------- Comment #2 From Carsten Lohrke 2005-11-01 15:09:11 0000 -------
- the ebuild header is invalid

------- Comment #3 From Carsten Lohrke 2005-11-01 15:09:11 0000 -------
- the ebuild header is invalid¹
- inheriting eutils is not necessary
- ruby-odbc-${PV} == ${P}
- GPL is not a valid license, please have a look at /usr/portage/licenses
- remove S=${WORKDIR}/ruby-odbc-${PV}
- src_unpack() is superfluous
- in src_compile() call emake instead make


[1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3

------- Comment #4 From Hein Rigolo 2005-11-02 04:37:13 0000 -------
Created an attachment (id=71922) [details]
ruby-odbc-0.966-r1.ebuild

New ebuild based on recommendations of Carsten Lohrke

------- Comment #5 From Hein Rigolo 2005-11-02 04:53:45 0000 -------
Created an attachment (id=71925) [details]
Changelog for ruby-odbc

Changelog for this ebuild

------- Comment #6 From Hein Rigolo 2005-11-02 04:54:48 0000 -------
(In reply to comment #2)
> - the ebuild header is invalid

------- Comment #7 From Hein Rigolo 2005-11-02 04:54:48 0000 -------
(In reply to comment #2)
> - the ebuild header is invalid¹
Changed
> - inheriting eutils is not necessary
Removed
> - ruby-odbc-${PV} == ${P}
Changed the SRC_URI line
> - GPL is not a valid license, please have a look at /usr/portage/licenses
Change licence to GPL-2 but this program is dual licenced. Should I provide the
other licence as a new licence? or how do I indicate that this package is dual
licenced?
> - remove S=${WORKDIR}/ruby-odbc-${PV}
done
> - src_unpack() is superfluous
remove
> - in src_compile() call emake instead make
changed

Thanks for the feedback. Shoud I als change the make command in the src_install
section to emake?

This software can also be configured with UTF-8 support (see
http://www.ch-werner.de/rubyodbc/README) but than the scr_compile and
src_install commands are different? how do I implement that?

------- Comment #8 From Carsten Lohrke 2005-11-02 09:56:07 0000 -------
(In reply to comment #5)
> Change licence to GPL-2 but this program is dual licenced. Should I provide the
> other licence as a new licence? or how do I indicate that this package is dual
> licenced?

Yes. LICENSE="|| ( GPL-2 <foo> )" is the correct expression.

> Shoud I als change the make command in the src_install section to emake?

No.
 
> This software can also be configured with UTF-8 support (see
> http://www.ch-werner.de/rubyodbc/README) but than the scr_compile and
> src_install commands are different? how do I implement that?

Usually you add something alike

IUSE="unicode"

and  

local myconf=""
use unicode && myconf="utf8"


I just don't know how ruby handles different encodings and if using the existing
global unicode use flag may be misleading.

------- Comment #9 From Josip Dzolonga 2006-06-20 16:51:44 0000 -------
Created an attachment (id=89677) [details]
ruby-odbc.ebuold

A fixed version, added ruby.eclass inheritance, changed the dependancies a
little and some tweaks. Works on amd64, so I keyworded it ~amd64.

------- Comment #10 From Richard Brown (RETIRED) 2006-10-05 01:24:40 0000 -------
Created an attachment (id=98822) [details]
ruby-odbc-0.9993.ebuild

Ebuild for latest version of ruby-dbi. When I let the ebuild use
ruby_src_compile the installed .so wouldn't work.

------- Comment #11 From Nguyen Thai Ngoc Duy (RETIRED) 2006-10-05 20:18:10 0000 -------
(In reply to comment #8)
> Created an attachment (id=98822) [edit] [details]
> ruby-odbc-0.9993.ebuild
> 
> Ebuild for latest version of ruby-dbi. When I let the ebuild use
> ruby_src_compile the installed .so wouldn't work.
> 

Richard, did you really test it on all ~x86 ~amd64 ~ia64 ~ppc ~sparc?

------- Comment #12 From Nguyen Thai Ngoc Duy (RETIRED) 2006-10-05 22:03:49 0000 -------
InCVS

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug