Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#11914 closed enhancement (fixed)

RFE: rb-dbi / db-dbd-* 0.0.23 move to use variants instead of separate ports

Reported by: t.lucas@… Owned by: boeyms@…
Priority: Low Milestone:
Component: ports Version:
Keywords: ruby rb-dbi databases variants Cc: roberto@…, t.lucas@…, boeyms@…, shu@…
Port:

Description

Currently to install rb-dbi with extra database modules requires installing separate ports, i.e. db-dbd-mysql and rb-dbd-postgresql. Both of these ports do pretty much the same thing: add a dependency, and install rb-dbi with an extra configure line. The biggest problem is you can't have both the mysql and postgresql DBI drivers intalled at the same time. As there's other Ruby-DBI drivers too (like #11913) things would get worse as more drivers are added.

Wouldn't variants be a better solution?

port install rb-dbi +mysql +postgresql +odbc

Attachments (1)

rb-dbi_variants.diff (1.2 KB) - added by boeyms@… 18 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 18 years ago by pipping@…

Milestone: Port Enhancements

comment:2 Changed 18 years ago by boeyms@…

Cc: t.lucas@… boeyms@… shu@… added
Owner: changed from macports-dev@… to boeyms@…

Reassign ticket to boeyms (myself) and add reporter, maintainer and myself to the Cc: field.

comment:3 Changed 18 years ago by boeyms@…

Status: newassigned
Version: 1.51.4.3

The attached file is a suggested patch to rb-dbi that adds variants to it to address this ticket, which would make obsolete rb-dbd-mysql, rb-dbd-pg and #11913 submitted to create rb-dbd-odbc. It built successfully with +dbd_pg for me, but I was unable to test +dbd_mysql or +dbd_odbc as sources for some of their required dependencies were not available from the listed master_sites at the time of testing.

It is designed to be applied using -p0 from the dports directory.

Changed 18 years ago by boeyms@…

Attachment: rb-dbi_variants.diff added

comment:4 Changed 18 years ago by t.lucas@…

Great, thanks! What's the best way to test this?

comment:5 Changed 18 years ago by boeyms@…

I think the best way would be to create and use a local ports tree. I've just put some brief instructions on the MaintainingAPort wiki page; see how you go with those.

comment:6 Changed 18 years ago by t.lucas@…

Hey I finally checked this out and they all work: mysql, odbc and postgresql. Thanks Boey. As far as I can tell this is good to be committed.

comment:7 Changed 18 years ago by boeyms@…

Keywords: ruby rb-dbi databases variants added
Resolution: fixed
Status: assignedclosed

Committed in r25233 as no correspondence has been received from the maintainer. Thanks for the report!

comment:8 Changed 17 years ago by nox@…

Priority: Nice to haveLow
Version: 1.4.3

comment:9 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.