When attempting to build /usr/ports/databases/rubygem-activerecord with Ruby 1.9.1 with the port configured to use option "NATIVE_POSTGRESQL", the dependency build of /usr/ports/databaes/rubygem-postgres fails to build, causing rubygem-activerecord to also fail to build. So really this is a PR for /usr/ports/databases/rubygem-postgres as well. BUILD ATTEMPT: root@host:/usr/ports/databases/rubygem-activerecord# make install ===> Vulnerability check disabled, database not found ===> Found saved configuration for rubygem-activerecord-2.3.4 ===> Extracting for rubygem-activerecord-2.3.4 => MD5 Checksum OK for rubygem/activerecord-2.3.4.gem. => SHA256 Checksum OK for rubygem/activerecord-2.3.4.gem. ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/bin/ruby19 - found ===> Patching for rubygem-activerecord-2.3.4 ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/bin/ruby19 - found ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/lib/ruby/gems/1.9/specifications/activesupport-2.3.4.gemspec - found ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/bin/ruby19 - found ===> Configuring for rubygem-activerecord-2.3.4 ===> Installing for rubygem-activerecord-2.3.4 ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/lib/ruby/gems/1.9/specifications/activesupport-2.3.4.gemspec - found ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/bin/ruby19 - found ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/bin/ruby19 - found ===> rubygem-activerecord-2.3.4 depends on file: /usr/local/lib/ruby/site_ruby/1.9/amd64-freebsd7/mysql.so - found ===> rubygem-activerecord-2.3.4 depends on package: rubygem-postgres>=0 - not found ===> Verifying install for rubygem-postgres>=0 in /usr/ports/databases/rubygem-postgres ===> Vulnerability check disabled, database not found => postgres-0.7.9.2008.01.28.gem doesn't seem to exist in /var/ports/distfiles/rubygem. => Attempting to fetch from http://files.rubyforge.mmmultiworks.com/ruby-pg/. fetch: http://files.rubyforge.mmmultiworks.com/ruby-pg/postgres-0.7.9.2008.01.28.gem: No address record => Attempting to fetch from http://files.rubyforge.vm.bytemark.co.uk/ruby-pg/. postgres-0.7.9.2008.01.28.gem 100% of 32 kB 39 kBps ===> Extracting for rubygem-postgres-0.7.9.2008.01.28_1 => MD5 Checksum OK for rubygem/postgres-0.7.9.2008.01.28.gem. => SHA256 Checksum OK for rubygem/postgres-0.7.9.2008.01.28.gem. ===> rubygem-postgres-0.7.9.2008.01.28_1 depends on file: /usr/local/bin/ruby19 - found ===> Patching for rubygem-postgres-0.7.9.2008.01.28_1 ===> rubygem-postgres-0.7.9.2008.01.28_1 depends on file: /usr/local/bin/ruby19 - found ===> rubygem-postgres-0.7.9.2008.01.28_1 depends on file: /usr/local/bin/ruby19 - found ===> rubygem-postgres-0.7.9.2008.01.28_1 depends on shared library: pq.5 - found ===> Configuring for rubygem-postgres-0.7.9.2008.01.28_1 ===> Installing for rubygem-postgres-0.7.9.2008.01.28_1 ===> rubygem-postgres-0.7.9.2008.01.28_1 depends on file: /usr/local/bin/ruby19 - found ===> Generating temporary packing list ===> Checking if databases/rubygem-postgres already installed /usr/bin/env /usr/local/bin/gem19 install -l --no-update-sources --no-ri --install-dir /usr/local/lib/ruby/gems/1.9 /var/ports/distfiles/rubygem/postgres-0.7.9.2008.01.28.gem -- --build-args --with-pgsql-include-dir=`/usr/local/bin/pg_config --includedir` --with-pgsql-lib-dir=`/usr/local/bin/pg_config --libdir` Building native extensions. This could take a while... ERROR: Error installing /var/ports/distfiles/rubygem/postgres-0.7.9.2008.01.28.gem: ERROR: Failed to build gem native extension. /usr/local/bin/ruby19 extconf.rb install -l --no-update-sources --no-ri --install-dir /usr/local/lib/ruby/gems/1.9 /var/ports/distfiles/rubygem/postgres-0.7.9.2008.01.28.gem -- --build-args --with-pgsql-include-dir=/usr/local/include --with-pgsql-lib-dir=/usr/local/lib extconf.rb:4:in `<main>': uninitialized constant PLATFORM (NameError) Gem files will remain installed in /usr/local/lib/ruby/gems/1.9/gems/postgres-0.7.9.2008.01.28 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out *** Error code 1 Stop in /usr/ports/databases/rubygem-postgres. *** Error code 1 Stop in /usr/ports/databases/rubygem-activerecord. *** Error code 1 Stop in /usr/ports/databases/rubygem-activerecord. How-To-Repeat: See above
Responsible Changed From-To: freebsd-ports-bugs->pgollucci Over to maintainer (via the GNATS Auto Assign Tool)
Responsible Changed From-To: pgollucci->dinoex really for databases/rubygem-postgres
State Changed From-To: open->feedback Sorry but rubygem-postgres idoes not support ruby 1.9 Please switch to the new API and use databases/rubygem-pg
dinoex 2010-01-11 21:06:02 UTC FreeBSD ports repository Modified files: databases/rubygem-postgres Makefile Log: - mark BROKEN for ruby 1.9 PR: 142461 Revision Changes Path 1.43 +7 -1 ports/databases/rubygem-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"
On Mon, Jan 11, 2010 at 1:56 PM, <dinoex@freebsd.org> wrote: > Synopsis: databases/rubygem-activerecord build fails when using Ruby 1.9 with option "NATIVE_POSTGRESQL" > > State-Changed-From-To: open->feedback > State-Changed-By: dinoex > State-Changed-When: Mon Jan 11 21:55:38 CET 2010 > State-Changed-Why: > > Sorry but rubygem-postgres idoes not support ruby 1.9 > > Please switch to the new API and use databases/rubygem-pg > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=142461 Should not "rubygem-activerecord" be marked BROKEN for Ruby 1.9 (at least if NATIVE_POSTGRESQL is selected) as well? Or at least should not there be a warning note when doing "make config" in rubygem-activerecord next to the NATIVE_POSTGRESQL option warning everyone that the option WILL NOT WORK under 1.9? It was the rubygem-activerecord port that attempted to include (as dependency) the rubygem-postgres gem instead of the rubygem-pg that you recommend. That sounds like a _BUG_ in rubygem-activerecord to me. Thanks, A puzzled Aaron out.
State Changed From-To: feedback->open Feedback received
Responsible Changed From-To: dinoex->pgollucci databases/rubygem-activerecord should be migrate to rubygem-pg activerecord should already support it.
State Changed From-To: open->closed Committed. Thanks!
pgollucci 2010-01-15 00:49:35 UTC FreeBSD ports repository Modified files: databases/rubygem-activerecord Makefile Log: - Convert from rubygem-postgres to reubygem-pg to fix ruby 1.9.x issues PR: ports/142461 Reported by: Aaron Gifford <astounding@gmail.com> With help from: dinoex Revision Changes Path 1.25 +3 -2 ports/databases/rubygem-activerecord/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"