From owner-freebsd-ruby@FreeBSD.ORG Sun Nov 15 08:17:23 2009 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B298C106566C for ; Sun, 15 Nov 2009 08:17:23 +0000 (UTC) (envelope-from stas@SpringDaemons.com) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 185F88FC13 for ; Sun, 15 Nov 2009 08:17:23 +0000 (UTC) Received: from sputnik.SpringDaemons.com (unknown [78.110.48.118]) by mx0.deglitch.com (Postfix) with ESMTPA id 2CBAF8FC4E; Sun, 15 Nov 2009 11:17:20 +0300 (MSK) Received: by sputnik.SpringDaemons.com (Postfix, from userid 1024) id 3EE4AB86F; Sun, 15 Nov 2009 00:17:30 -0800 (PST) Date: Sun, 15 Nov 2009 00:17:23 -0800 From: Stanislav Sedov To: penty.wenngren@dgc.se Message-Id: <20091115001723.baab8e25.stas@FreeBSD.org> In-Reply-To: <20091112162430.GP74360@picard.dgc.se> References: <20091111160649.GL74360@picard.dgc.se> <20091111100826.e0dcfdca.stas@FreeBSD.org> <20091112162430.GP74360@picard.dgc.se> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprin: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__15_Nov_2009_00_17_23_-0800_a8Y9ZO2bb5tk9f6l" Cc: "ruby@FreeBSD.org" Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 08:17:23 -0000 --Signature=_Sun__15_Nov_2009_00_17_23_-0800_a8Y9ZO2bb5tk9f6l Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 12 Nov 2009 17:24:30 +0100 Penty Wenngren mentioned: > On Wed, Nov 11, 2009 at 07:08:26PM +0100, Stanislav Sedov wrote: > > On Wed, 11 Nov 2009 17:06:49 +0100 > > Penty Wenngren mentioned: > >=20 > > > Hello, > > >=20 > > > After having upgraded our installed ports this morning we have a few > > > machines that no longer want to play with ruby, dbi and postgres. This > > > is the output I get when trying to do this in irb: > > >=20 > > > irb(main):001:0> require 'dbi' > > > =3D> true > > > irb(main):002:0> dbh =3D DBI.connect("DBI:Pg:test","test","test") > > > DBI::InterfaceError: Could not load driver (Could not find driver Pg = or pg (error: > > > no such file to load -- pg)) > > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:318:in `load_driver' > > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:160:in `_get_full_d= river' > > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:145:in `connect' > > > from (irb):2 > > >=20 > > >=20 > > > irb(main):001:0> require 'dbd/Pg' > > > LoadError: no such file to load -- pg > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_requir= e.rb:31:in > > > `gem_original_require' > > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_requir= e.rb:31:in > > > `require' > > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:40 > > > from (irb):1:in `require' > > > from (irb):1 > > >=20 > > >=20 > > > # ls -l /usr/local/lib/ruby/site_ruby/1.8/dbd/ > > > total 10 > > > -rw-r--r-- 1 root wheel 6579 Nov 11 16:17 Pg.rb > > > drwxr-xr-x 2 root wheel 512 Nov 11 16:17 pg > > >=20 > > >=20 > > > # pkg_info | grep ruby > > > mod_ruby-1.3.0 An Apache module that embeds Ruby interpreter wit= hin > > > ruby+nopthreads-1.8.7.160_5,1 An object-oriented interpreted scriptin= g language > > > ruby18-aspectr-0.3.5 Ruby libraries for Aspect programming > > > ruby18-bdb-0.6.5_1 Ruby interface to Sleepycat's Berkeley DB revisio= n 2 or lat > > > ruby18-dbd_pg-0.3.8 PostgreSQL driver for DBI-for-Ruby > > > ruby18-dbi-0.4.3 DBI-for-Ruby - a common interface for SQL-based d= atabases > > > ruby18-eruby-1.0.5_1 Interprets Ruby code embedded in a text file lik= e PHP/ePerl > > > ruby18-fcgi-0.8.7 FastCGI library for Ruby > > > ruby18-gems-1.3.5 Package management framework for the Ruby language > > > ruby18-mmap-0.2.6 Ruby interface to manage memory-mapped file objec= ts > > > ruby18-postgres-0.7.9.2008.01.28_1 Ruby interface to PostgreSQL libra= ry > > > ruby18-setup.rb-3.4.1 Common installer script for ruby packages > > > rubygem-deprecated-2.0.1 A library intended to aid developers working= with > > > deprecate > > > rubygem-postgres-0.7.9.2008.01.28_1 Ruby interface to PostgreSQL libr= ary > > >=20 > > >=20 > > > I have tried to reinstall ruby and all of its dependencies, but no lu= ck. > > >=20 > > > I hope you can shed some light on what went wrong. The packages that = were > > > upgraded this morning (iirc) are: > > >=20 > > > ruby+nopthreads-1.8.7.160_5,1 > > > ruby18-aspectr-0.3.5 > > > ruby18-dbd_pg-0.3.8 > > > ruby18-dbi-0.4.3 > > > ruby18-gems-1.3.5 > > > ruby18-postgres-0.7.9.2008.01.28_1 > > > rubygem-deprecated-2.0.1 > > > rubygem-postgres-0.7.9.2008.01.28_1 > > >=20 I'm not sure how dbi/dbd works, but I runned the application under truss(1) and it seems to be looking for pg.rb/pg.so in all ruby and rubygems directories available, which we don't have installed. Maybe the dbi library should be updated to look for pg directory instead, where all the Pg files seems to be installed? --=20 Stanislav Sedov ST4096-RIPE --Signature=_Sun__15_Nov_2009_00_17_23_-0800_a8Y9ZO2bb5tk9f6l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAgAGBQJK/7kZAAoJEKN82nOYvCd0J8AQAI9EqSfZPY9ktHpp02SwHOdD dsrIGzqIUe/dp0rQUDLULf1twxqr23NB4YKSwxa/FAdnENV8Xa3PfVmBe8oDAiRa lGMzwQPl+VBwNYypNjFG6UUnKvEScSVQXwKdfEnKkaX+9k/Xkdk2TthQmsAA6LFh 2xUWOlKMWGSrQF8NWVRzRPQ0/h38AJ4iwuevSzJrX1GncQ2zlJs7RRi867xM7J8a fY7HrgyjdkNqrr0AFdbMyku6i+mxtir0wDuCWYpJPVDp7mI1I62poKBN6NyTNlnR BBfiDfaBu/hMQVRHtq6BQrP37HccK/9oI9NvTPrXCb+L/mdhISLEwjBZsSssJb/5 Qdgw69CwlRdcRXEr7eF2bY7jpypaTl/7kIoEO5UGnkyS83Df139KZFw+vEyaxUTO /NIObD1E3Ut2/Suh72lK62KnbUHcPmbCFr+6+yrtd6VkYxFhqPgermYrS7qKNDd6 WLSfJNN8tJ1xthzUAm11ur/5WNzzJIIp2IAflbXyMAIg1PxUebAe3UjwENLQtHF0 qvREHwcqFxouKsFH71Wd47p3l32qRbiO/RKwij0537oH34Lh5yVj9d/xYyGYxLLK beVs9gF3bcatnE6GbHzw/+Qjv6Sg46yfB2CvwWDYJsOwv4Zr4bk/yAWsvTdKHlVr qdVx6okmwFeV9FnXMqpQ =SgDB -----END PGP SIGNATURE----- --Signature=_Sun__15_Nov_2009_00_17_23_-0800_a8Y9ZO2bb5tk9f6l-- From owner-freebsd-ruby@FreeBSD.ORG Sun Nov 15 10:35:10 2009 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3AAE1065676 for ; Sun, 15 Nov 2009 10:35:10 +0000 (UTC) (envelope-from stas@SpringDaemons.com) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2ED8FC08 for ; Sun, 15 Nov 2009 10:35:10 +0000 (UTC) Received: from sputnik.SpringDaemons.com (unknown [78.110.48.118]) by mx0.deglitch.com (Postfix) with ESMTPA id E90FC8FC51; Sun, 15 Nov 2009 13:35:07 +0300 (MSK) Received: by sputnik.SpringDaemons.com (Postfix, from userid 1024) id 48D76B86F; Sun, 15 Nov 2009 02:35:19 -0800 (PST) Date: Sun, 15 Nov 2009 02:35:13 -0800 From: Stanislav Sedov To: dirk.meyer@dinoex.sub.org (Dirk Meyer) Message-Id: <20091115023513.2df5da76.stas@FreeBSD.org> In-Reply-To: References: <20091111160649.GL74360@picard.dgc.se> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprin: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__15_Nov_2009_02_35_13_-0800_AB6ysSgApz3VRoUL" Cc: Penty Wenngren , freebsd-ruby@freebsd.org Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 10:35:10 -0000 --Signature=_Sun__15_Nov_2009_02_35_13_-0800_AB6ysSgApz3VRoUL Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 15 Nov 2009 10:56:06 +0100 dirk.meyer@dinoex.sub.org (Dirk Meyer) mentioned: > The update to ruby18-dbd_pg-0.3.8 is wrong. > seems that my patches where not commited. > I will merge my patches and commit the necessary fixes. >=20 Thanks! --=20 Stanislav Sedov ST4096-RIPE --Signature=_Sun__15_Nov_2009_02_35_13_-0800_AB6ysSgApz3VRoUL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAgAGBQJK/9lmAAoJEKN82nOYvCd0l5kQAJIcdB8sqvQ35Aww3ZcswcUE NI4ZOZ1V3FKrDKwMKvFh7hK79UQdKN9jylrUzf2mdRMMKJRhclGXrDGA5EzlJyd7 yxNr0r31FlwwSQ/amBHR4tq7kFzbynbsPifBMRp05j0BFvwaMs/gETzLDoSo2Efp JjYF0Df/kHYpS8lMXEG3W6+tf4TDY/ZIYKlRwxRVrAft9LlPPBfXdUWgwQqOnV1T v34hf5lunekWYET+/dFwcVi53BYX72oMW5KYdRqcBgcwMNnKUxeVlNKPozVuBPrj RXWKh+Yuvm3S1gr9hbeBfpGknynmLhMPuYljKWqRLH4vCoFhdbrzp2eurfR5hJhR lfah9ioWe7xYQm9+TaW0DnM3Y+KWUvwtHeF76TC3XtQUhT11PoFFR8BFwiHaPIoE SSwbyJXPHLIUNCeWMeU268R5D4PzlsxvZo9NsSH242Fz5rQ5lkUCtdjOTc2qNB+q YOVeO5ITYwcfmEckXYaSYYkyx3hTpOdFa8JSzfLUQSQfqCcOfcxgeGI32TXXep5s MOBq2c/M8OuWXPwOOFJVneQpDiDh4NamQh4BpvJNNkCLSLcVrDpS5KlvM9IZfEGm 8VztJopEB15ff1s/MtWCDRrPwKDBCllNTKA6TFtbmAGXd5K6V5UxBv5m9TSEGrLw fGjNi+wM6+BzvTt68koI =9mCp -----END PGP SIGNATURE----- --Signature=_Sun__15_Nov_2009_02_35_13_-0800_AB6ysSgApz3VRoUL-- From owner-freebsd-ruby@FreeBSD.ORG Mon Nov 16 11:08:24 2009 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E773E10656B1 for ; Mon, 16 Nov 2009 11:08:24 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD53D8FC1A for ; Mon, 16 Nov 2009 11:08:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAGB8Ooe012523 for ; Mon, 16 Nov 2009 11:08:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAGB8Oeo012521 for ruby@FreeBSD.org; Mon, 16 Nov 2009 11:08:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Nov 2009 11:08:24 GMT Message-Id: <200911161108.nAGB8Oeo012521@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: ruby@FreeBSD.org Cc: Subject: Current problem reports assigned to ruby@FreeBSD.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 11:08:25 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/140364 ruby ports-mgmt/portupgrade-devel: #! line substitution is o ports/140273 ruby ports-mgmt/portupgrade-devel chokes on bsdpan pkgs o ports/140192 ruby ports-mgmt/portupgrade-devel fails to install a new po o ports/140008 ruby ports-mgmt/portupgrade: many papercut omissions on por o ports/138796 ruby [patch] - update converters/ruby-lv o ports/137958 ruby ports-mgmt/portupgrade fails with recursive dependency o ports/137708 ruby ports-mgmt/portupgrade: portupgrade -cRn is broken s ports/134714 ruby ports-mgmt/portupgrade deletes user data without quest o ports/134182 ruby ports-mgmt/portupgrade incorrectly handles manual reje o ports/131111 ruby ports-mgmt/portupgrade-devel: completely removes packa o ports/129930 ruby ports-mgmt/portupgrade - portinstall tries to install o ports/129891 ruby ports-mgmt/portupgrade fails to recognize variations o o ports/128881 ruby ports-mgmt/portupgrade backtrace o ports/127889 ruby ports-mgmt/portupgrade detects spurious failures and s o ports/127019 ruby ports-mgmt/portupgrade does not recognize fail conditi o ports/126140 ruby ports-mgmt/portupgrade runtime error o ports/125936 ruby ports-mgmt/portupgrade -R fails if BUILD_DEP's are not o ports/112818 ruby ports-mgmt/portupgrade -a fails with database error 18 problems total. From owner-freebsd-ruby@FreeBSD.ORG Mon Nov 16 15:09:10 2009 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CC221065694 for ; Mon, 16 Nov 2009 15:09:10 +0000 (UTC) (envelope-from penty@dgc.se) Received: from smtp05.dgcsystems.net (smtp05.dgcsystems.net [83.241.254.75]) by mx1.freebsd.org (Postfix) with ESMTP id 2D9288FC12 for ; Mon, 16 Nov 2009 15:09:09 +0000 (UTC) Received: from picard.dgc.se (220.248.181.62.in-addr.dgcsystems.net [62.181.248.220]) by smtp05.dgcsystems.net (Postfix) with ESMTP id 163F06A12F6; Mon, 16 Nov 2009 16:09:08 +0100 (CET) Received: by picard.dgc.se (Postfix, from userid 1000) id 0055AB833; Mon, 16 Nov 2009 16:09:07 +0100 (CET) Date: Mon, 16 Nov 2009 16:09:07 +0100 From: Penty Wenngren To: Dirk Meyer Message-ID: <20091116150907.GY74360@picard.dgc.se> References: <20091111160649.GL74360@picard.dgc.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: DGC Solutions AB Cc: "freebsd-ruby@freebsd.org" Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: penty.wenngren@dgc.se List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 15:09:10 -0000 On Sun, Nov 15, 2009 at 10:56:06AM +0100, Dirk Meyer wrote: > > > After having upgraded our installed ports this morning we have a few > > machines that no longer want to play with ruby, dbi and postgres. This > > is the output I get when trying to do this in irb: > > > > irb(main):001:0> require 'dbi' > > => true > > irb(main):002:0> dbh = DBI.connect("DBI:Pg:test","test","test") > > DBI::InterfaceError: Could not load driver (Could not find driver Pg or pg (error: > > no such file to load -- pg)) > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:318:in `load_driver' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:160:in `_get_full_driver' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:145:in `connect' > > from (irb):2 > > The update to ruby18-dbd_pg-0.3.8 is wrong. > seems that my patches where not commited. > I will merge my patches and commit the necessary fixes. > > > ruby18-dbd_pg-0.3.8 > Thanks Dirk, it seems your patches solved that problem. However, now I get another error message instead: $ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'dbi' => true irb(main):003:0> dbh = DBI.connect("DBI:Pg:mydb","user","secret") DBI::OperationalError: can't format from /usr/local/lib/ruby/site_ruby/1.8/dbd/pg/database.rb:82:in `initialize' from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `new' from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `connect' from /usr/local/lib/ruby/site_ruby/1.8/dbi/handles/driver.rb:33:in `connect' from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:148:in `connect' from (irb):3 // Penty -- Penty Wenngren DGC Solutions AB From owner-freebsd-ruby@FreeBSD.ORG Mon Nov 16 15:20:56 2009 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2610B1065679 for ; Mon, 16 Nov 2009 15:20:56 +0000 (UTC) (envelope-from dirk.meyer@dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9DECE8FC12 for ; Mon, 16 Nov 2009 15:20:55 +0000 (UTC) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.14.3/8.14.2) with ESMTP id nAGFK2bl019398; Mon, 16 Nov 2009 16:20:03 +0100 (CET) (envelope-from dirk.meyer@dinoex.sub.org) Received: from build7.dinoex.sub.de (dinoex@localhost) by uucp.dinoex.sub.de (8.14.3/8.14.2/Submit) with BSMTP id nAGFK22Z019386; Mon, 16 Nov 2009 16:20:02 +0100 (CET) (envelope-from dirk.meyer@dinoex.sub.org) To: penty.wenngren@dgc.se, freebsd-ruby@freebsd.org Message-ID: From: dirk.meyer@dinoex.sub.org (Dirk Meyer) Organization: privat Date: Mon, 16 Nov 2009 16:17:48 +0100 X-Mailer: Dinoex 1.79 References: <20091111160649.GL74360@picard.dgc.se> <20091116150907.GY74360@picard.dgc.se> X-Gateway: ZCONNECT build7.dinoex.sub.de [UNIX/Connect 0.94] X-PGP-Fingerprint: 44 16 EC 0A D3 3A 4F 28 8A 8A 47 93 F1 CF 2F 12 X-Copyright: (C) Copyright 2001 by Dirk Meyer -- All rights reserved. X-PGP-Key-Avail: mailto:pgp-public-keys@keys.de.pgp.net Subject:GET 0x331CDA5D X-ZC-VIA: 20091116000000W+1@dinoex.sub.org X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 194.45.71.2; Sender-helo: uucp.dinoex.sub.de; ) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (uucp.dinoex.sub.de [194.45.71.2]); Mon, 16 Nov 2009 16:20:05 +0100 (CET) Cc: Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 15:20:56 -0000 Hallo Penty Wenngren, > Thanks Dirk, it seems your patches solved that problem. However, now I get > another error message instead: > > $ irb > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'dbi' > => true > irb(main):003:0> dbh = DBI.connect("DBI:Pg:mydb","user","secret") > DBI::OperationalError: can't format > from /usr/local/lib/ruby/site_ruby/1.8/dbd/pg/database.rb:82:in > `initialize' > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `new' > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `connect' > from /usr/local/lib/ruby/site_ruby/1.8/dbi/handles/driver.rb:33:in > `connect' > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:148:in `connect' > from (irb):3 The short name never worked for me even before the update. Do you have a setup where it worked this way? I used for some years this form and I tested it: dbh = DBI.connect("DBI:Pg:dbname=mydb","user","secret") kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org] http://people.freebsd.org/~dinoex/errorlogs/ From owner-freebsd-ruby@FreeBSD.ORG Mon Nov 16 15:45:36 2009 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10E43106566C for ; Mon, 16 Nov 2009 15:45:36 +0000 (UTC) (envelope-from penty@dgc.se) Received: from smtp05.dgcsystems.net (smtp05.dgcsystems.net [83.241.254.75]) by mx1.freebsd.org (Postfix) with ESMTP id C34588FC1C for ; Mon, 16 Nov 2009 15:45:35 +0000 (UTC) Received: from picard.dgc.se (220.248.181.62.in-addr.dgcsystems.net [62.181.248.220]) by smtp05.dgcsystems.net (Postfix) with ESMTP id 075636A475F; Mon, 16 Nov 2009 16:45:34 +0100 (CET) Received: by picard.dgc.se (Postfix, from userid 1000) id E8CD4B833; Mon, 16 Nov 2009 16:45:33 +0100 (CET) Date: Mon, 16 Nov 2009 16:45:33 +0100 From: Penty Wenngren To: Dirk Meyer Message-ID: <20091116154533.GZ74360@picard.dgc.se> References: <20091111160649.GL74360@picard.dgc.se> <20091116150907.GY74360@picard.dgc.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: DGC Solutions AB Cc: "freebsd-ruby@freebsd.org" Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: penty.wenngren@dgc.se List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 15:45:36 -0000 On Mon, Nov 16, 2009 at 04:17:48PM +0100, Dirk Meyer wrote: > Hallo Penty Wenngren, > > > Thanks Dirk, it seems your patches solved that problem. However, now I get > > another error message instead: > > > > $ irb > > irb(main):001:0> require 'rubygems' > > => true > > irb(main):002:0> require 'dbi' > > => true > > irb(main):003:0> dbh = DBI.connect("DBI:Pg:mydb","user","secret") > > DBI::OperationalError: can't format > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/pg/database.rb:82:in > > `initialize' > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `new' > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `connect' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi/handles/driver.rb:33:in > > `connect' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:148:in `connect' > > from (irb):3 > > The short name never worked for me even before the update. > Do you have a setup where it worked this way? > Yes, we actually have a whole bunch of scripts with the short name that worked until the upgrade last week. > I used for some years this form and I tested it: > dbh = DBI.connect("DBI:Pg:dbname=mydb","user","secret") > I will have that in mind. Better safe than sorry, so I will convert the connection strings in our scripts to use that form instead. I tried the same connection string as before, but with dbname=mydb instead, and I get the same error message. // Penty -- Penty Wenngren DGC Solutions AB From owner-freebsd-ruby@FreeBSD.ORG Thu Nov 19 11:40:03 2009 Return-Path: Delivered-To: ruby@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 108121065679 for ; Thu, 19 Nov 2009 11:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DAD4B8FC1E for ; Thu, 19 Nov 2009 11:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAJBe2d0081362 for ; Thu, 19 Nov 2009 11:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAJBe2rc081361; Thu, 19 Nov 2009 11:40:02 GMT (envelope-from gnats) Date: Thu, 19 Nov 2009 11:40:02 GMT Message-Id: <200911191140.nAJBe2rc081361@freefall.freebsd.org> To: ruby@FreeBSD.org From: Rainer Duffner Cc: Subject: Re: ports/140273: ports-mgmt/portupgrade-devel chokes on bsdpan pkgs X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rainer Duffner List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 11:40:03 -0000 The following reply was made to PR ports/140273; it has been noted by GNATS. From: Rainer Duffner To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/140273: ports-mgmt/portupgrade-devel chokes on bsdpan pkgs Date: Thu, 19 Nov 2009 12:33:33 +0100 I've also got this problem. When will it be fixed? (Posting here mostly to get notified if and when a fix is available) From owner-freebsd-ruby@FreeBSD.ORG Fri Nov 20 15:17:03 2009 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24CDE1065676 for ; Fri, 20 Nov 2009 15:17:03 +0000 (UTC) (envelope-from penty@dgc.se) Received: from smtp05.dgcsystems.net (smtp05.dgcsystems.net [83.241.254.75]) by mx1.freebsd.org (Postfix) with ESMTP id D6D718FC1D for ; Fri, 20 Nov 2009 15:17:02 +0000 (UTC) Received: from picard.dgc.se (220.248.181.62.in-addr.dgcsystems.net [62.181.248.220]) by smtp05.dgcsystems.net (Postfix) with ESMTP id 5212A1CC6E; Fri, 20 Nov 2009 16:43:20 +0100 (CET) Received: by picard.dgc.se (Postfix, from userid 1000) id B68E0B833; Fri, 20 Nov 2009 16:17:00 +0100 (CET) Date: Fri, 20 Nov 2009 16:17:00 +0100 From: Penty Wenngren To: Dirk Meyer Message-ID: <20091120151700.GY74360@picard.dgc.se> References: <20091111160649.GL74360@picard.dgc.se> <20091116150907.GY74360@picard.dgc.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Organization: DGC Solutions AB Cc: "freebsd-ruby@freebsd.org" Subject: Re: Ruby, dbi and PostgreSQL X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: penty.wenngren@dgc.se List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 15:17:03 -0000 On Tue, Nov 17, 2009 at 06:12:41PM +0100, Dirk Meyer wrote: > Penty Wenngren schrieb:, > > > Thanks Dirk, it seems your patches solved that problem. However, now I get > > another error message instead: > > > > $ irb > > irb(main):001:0> require 'rubygems' > > => true > > irb(main):002:0> require 'dbi' > > => true > > irb(main):003:0> dbh = DBI.connect("DBI:Pg:mydb","user","secret") > > DBI::OperationalError: can't format > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/pg/database.rb:82:in > > `initialize' > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `new' > > from /usr/local/lib/ruby/site_ruby/1.8/dbd/Pg.rb:157:in `connect' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi/handles/driver.rb:33:in > > `connect' > > from /usr/local/lib/ruby/site_ruby/1.8/dbi.rb:148:in `connect' > > from (irb):3 > > There is an API breakage in the underlying postgres module. > > Please install: > ruby18-dbd_pg-0.3.8_2 > ruby18-pg-0.8.0 > > I verified it works here with just: > require 'dbi' > dbh = DBI.connect("DBI:Pg:mydb","user","secret") > It took some time for ports to get updated, but after having upgraded to the latest versions it seems to work just fine now. Thank you very much :) // Penty -- Penty Wenngren DGC Solutions AB From owner-freebsd-ruby@FreeBSD.ORG Sat Nov 21 07:29:24 2009 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD6031065679 for ; Sat, 21 Nov 2009 07:29:24 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mail.droso.net (koala.ipv6.droso.net [IPv6:2001:6c8:6:c:20d:56ff:fe6f:f935]) by mx1.freebsd.org (Postfix) with ESMTP id 857618FC20 for ; Sat, 21 Nov 2009 07:29:24 +0000 (UTC) Received: from koala.droso.net (localhost.droso.net [IPv6:::1]) by mail.droso.net (Postfix) with ESMTP id C5B331CC4A for ; Sat, 21 Nov 2009 08:29:23 +0100 (CET) From: linimon@FreeBSD.org To: ruby@freebsd.org Message-Id: <20091121072923.C5B331CC4A@mail.droso.net> Date: Sat, 21 Nov 2009 08:29:23 +0100 (CET) Cc: Subject: FreeBSD ports that you maintain which are currently marked broken X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: portmgr-feedback@FreeBSD.org List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 07:29:24 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we periodically notify users of ports that are marked as "broken" in their Makefiles. In many cases these ports are failing to compile on some subset of the FreeBSD build environments. The most common problem is that recent versions of -CURRENT include gcc4.2, which is much stricter than older versions. The next most common problem is that compiles succeed on the i386 architecture (e.g. the common Intel PC), but fail on one or more of the other architectures due to assumptions about things such as size of various types, byte-alignment issues, and so forth. In occasional cases we see that the same port may have different errors in different build environments. The script that runs on the build cluster uses heuristics to try to 'guess' the error type to help you isolate problems, but it is only a rough guide. One more note: on occasion, there are transient build errors seen on the build farm. Unfortunately, there is not yet any way for this algorithm to tell the difference (humans are much, much better at this kind of thing.) The errors are listed below. In the case where the same problem exists on more than one build environment, the URL points to the latest errorlog for that type. (By 'build environment' here we mean 'combination of 6.x/7.x/-current with target architecture'.) (Note: the dates are included to help you to gauge whether or not the error still applies to the latest version. The program that generates this report is not yet able to determine this automatically.) portname: x11-toolkits/ruby-panelapplet broken because: does not build with GNOME 2.26. build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=ruby-panelapplet If these errors are ones that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Every effort has been made to make sure that these error reports really do correspond to a port that you maintain. However, due to the fact that this is an automated process, it may indeed generate false matches. If one of these errors fits that description, please forward this email to the author of this software, Mark Linimon , so that he can attempt to fix the problem in the future. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-ruby@FreeBSD.ORG Sat Nov 21 08:18:22 2009 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBB0D1065676 for ; Sat, 21 Nov 2009 08:18:22 +0000 (UTC) (envelope-from vk7rb@internode.on.net) Received: from mail.internode.on.net (bld-mail14.adl6.internode.on.net [150.101.137.99]) by mx1.freebsd.org (Postfix) with ESMTP id 0DDA18FC1A for ; Sat, 21 Nov 2009 08:18:21 +0000 (UTC) Received: from [192.168.0.42] (unverified [59.167.73.249]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 8863206-1927428 for ; Sat, 21 Nov 2009 18:33:11 +1030 (CDT) Message-ID: <4B079EBD.9020600@internode.on.net> Date: Sat, 21 Nov 2009 19:03:09 +1100 From: Robert McKenzie User-Agent: Thunderbird 2.0.0.23 (X11/20090826) MIME-Version: 1.0 To: ruby@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: portupgrade-devel X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 08:18:22 -0000 Sir, Just a quick email to ask why it should be that the above package should no longer be working properly. I have done a search of the net and found that others are experiencing the same problem as me although they would appear to put it down to another reason. What I have found is that if I use "-a", the list of ports that needs to be updated is not passed properly and it would appear that they are not passed at all and falls over in pkgtools.rb at line 953 but if I put the list of ports to be updated on the command line and don't rely on "-a" it works properly. As I am not familiar with ruby the above is about the only information I have that may help point to where it is falling over. Regards, Robert McKenzie.