Bug 114048 - [UPDATE] Update databases/ruby-postgres to 0.7.1.2006.04.06
Summary: [UPDATE] Update databases/ruby-postgres to 0.7.1.2006.04.06
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 16:20 UTC by Roderick van Domburg
Modified: 2008-04-07 13:10 UTC (History)
0 users

See Also:


Attachments
file.diff (2.35 KB, patch)
2007-06-26 16:20 UTC, Roderick van Domburg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roderick van Domburg 2007-06-26 16:20:05 UTC
This updates ruby-postgres to the latest version: 0.7.1.2006.04.06. This offers greatly improved performance and compatibility.

The Makefile has been revamped to use RubyGems instead of a plain tarball. The RubyGem packaging is the preferred method of distribution, and simplifies the Makefile.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-26 16:20:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

clsung@ wants to have ruby- PRs
Comment 2 Cheng-Lung Sung freebsd_committer freebsd_triage 2007-07-25 07:43:10 UTC
State Changed
From-To: open->repocopy

New version comes with rubygem, please repocopy 
databases/ruby-postgres to databases/rubygem-postgres. 



Comment 3 Cheng-Lung Sung freebsd_committer freebsd_triage 2007-07-25 07:43:10 UTC
Responsible Changed
From-To: clsung->portmgr

New version comes with rubygem, please repocopy 
databases/ruby-postgres to databases/rubygem-postgres.
Comment 4 Joe Marcus Clarke freebsd_committer freebsd_triage 2007-07-28 06:30:22 UTC
State Changed
From-To: repocopy->open

Repocopy complete. 


Comment 5 Joe Marcus Clarke freebsd_committer freebsd_triage 2007-07-28 06:30:22 UTC
Responsible Changed
From-To: portmgr->clsung

Repocopy complete.
Comment 6 dfilter service freebsd_committer freebsd_triage 2007-08-01 01:46:02 UTC
clsung      2007-08-01 00:45:57 UTC

  FreeBSD ports repository

  Modified files:
    databases/rubygem-postgres Makefile distinfo pkg-descr 
                               pkg-plist 
  Log:
  - Force commit to note repo copy from databases/ruby-postgres
  
  PR:             ports/114048
  
  Revision  Changes    Path
  1.32      +0 -0      ports/databases/rubygem-postgres/Makefile
  1.12      +0 -0      ports/databases/rubygem-postgres/distinfo
  1.10      +0 -0      ports/databases/rubygem-postgres/pkg-descr
  1.7       +0 -0      ports/databases/rubygem-postgres/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 dfilter service freebsd_committer freebsd_triage 2007-08-03 08:18:28 UTC
clsung      2007-08-03 07:18:22 UTC

  FreeBSD ports repository

  Modified files:
    databases/rubygem-postgres Makefile distinfo pkg-plist 
  Log:
  - This updates ruby-postgres to the latest version: 0.7.1.2006.04.06.
    This offers greatly improved performance and compatibility.
  
  The Makefile has been revamped to use RubyGems instead of a plain tarball.
  The RubyGem packaging is the preferred method of distribution, and simplifies
  the Makefile.
  
  PR:             ports/114048
  Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
  
  Revision  Changes    Path
  1.33      +12 -30    ports/databases/rubygem-postgres/Makefile
  1.13      +3 -3      ports/databases/rubygem-postgres/distinfo
  1.8       +183 -15   ports/databases/rubygem-postgres/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 dfilter service freebsd_committer freebsd_triage 2007-08-03 08:21:51 UTC
clsung      2007-08-03 07:21:46 UTC

  FreeBSD ports repository

  Modified files:
    databases            Makefile 
  Removed files:
    databases/ruby-postgres Makefile distinfo pkg-descr pkg-plist 
  Log:
  - databases/ruby-postgres -> databases/rubygem-postgres
  
  PR:             ports/114048
  Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
  
  Revision  Changes    Path
  1.629     +1 -1      ports/databases/Makefile
  1.32      +0 -43     ports/databases/ruby-postgres/Makefile (dead)
  1.12      +0 -3      ports/databases/ruby-postgres/distinfo (dead)
  1.10      +0 -7      ports/databases/ruby-postgres/pkg-descr (dead)
  1.7       +0 -15     ports/databases/ruby-postgres/pkg-plist (dead)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 dfilter service freebsd_committer freebsd_triage 2007-08-03 08:23:20 UTC
clsung      2007-08-03 07:23:13 UTC

  FreeBSD ports repository

  Modified files:
    .                    modules 
  Log:
  - databases/ruby-postgres -> databases/rubygem-postgres
  
  PR:             ports/114048
  Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
  
  Revision  Changes    Path
  1.18471   +1 -1      CVSROOT/modules
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 10 dfilter service freebsd_committer freebsd_triage 2007-08-03 08:24:52 UTC
clsung      2007-08-03 07:24:48 UTC

  FreeBSD ports repository

  Modified files:
    .                    MOVED 
  Log:
  - address the move of databases/ruby-postgres to databases/rubygem-postgres
  
  PR:             ports/114048
  Submitted by:   Roderick van Domburg <r dot s dot a dot vandomburg_AT_nedforce dot nl>
  
  Revision  Changes    Path
  1.1442    +2 -1      ports/MOVED
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 11 Cheng-Lung Sung freebsd_committer freebsd_triage 2007-08-03 08:25:01 UTC
State Changed
From-To: open->closed

Committed. Thank You.
Comment 12 pascal.hofstee 2007-08-08 10:04:42 UTC
This changing from ruby-postgres to use the rubygem mechanism seems to
have broken ruby-dbi as it now no longer is able to load the ruby
postgres module.

The code below used to work flawlessly


require 'dbi'

dbh = DBI.connect("DBI:Pg:dbname:dbhost", "dbuser", "dbpasswd")


However since the switch to the rubygem mechanism it now generates this
error message:

/usr/local/lib/ruby/site_ruby/1.8/dbi.rb:344:in `load_driver': Could not
load driver (no such file to load -- postgres) (DBI::InterfaceError)
        from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:227:in
`_get_full_driver'
        from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:213:in `connect'
        from ./DataImport.rb:13

-- 
Pascal Hofstee <pascal.hofstee@quaerenovum.com>
Quaere Novum Enterprises
Comment 13 pascal.hofstee 2007-08-08 10:54:01 UTC
On Wed, 2007-08-08 at 11:12 +0200, Roderick van Domburg wrote:
> Hi Pascal,
> 
> Does the following work for you?
> 
> require 'rubygems'
> ..rest of code..
> 
> That should configure the path to the postgres driver. Alternatively you
> can set RUBYOPT to -rubygems and Ruby should load the gems
> automatically.
> 
> Let me know what happens.

Looks like simply adding the rubygems require entry does the trick ...

-- 
Pascal Hofstee <pascal.hofstee@quaerenovum.com>
Quaere Novum Enterprises
Comment 14 dfilter service freebsd_committer freebsd_triage 2008-04-07 13:06:08 UTC
dinoex      2008-04-07 12:06:01 UTC

  FreeBSD ports repository

  Modified files:
    databases/ruby-postgres Makefile 
  Log:
  - a fix for ruby-dbd_pg is now possible
  PR:             114048
  
  Revision  Changes    Path
  1.34      +1 -1      ports/databases/ruby-postgres/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"