Bug 142461 - databases/rubygem-activerecord build fails when using Ruby 1.9 with option "NATIVE_POSTGRESQL"
Summary: databases/rubygem-activerecord build fails when using Ruby 1.9 with option "N...
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: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 06:30 UTC by Aaron Gifford
Modified: 2010-01-15 00:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Gifford 2010-01-08 06:30:04 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-01-08 06:30:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2010-01-09 23:56:00 UTC
Responsible Changed
From-To: pgollucci->dinoex

really for databases/rubygem-postgres
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2010-01-11 20:55:38 UTC
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
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-01-11 21:06:11 UTC
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"
Comment 5 Aaron Gifford 2010-01-11 23:05:09 UTC
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.
Comment 6 Dirk Meyer freebsd_committer freebsd_triage 2010-01-14 08:46:19 UTC
State Changed
From-To: feedback->open

Feedback received 


Comment 7 Dirk Meyer freebsd_committer freebsd_triage 2010-01-14 08:46:19 UTC
Responsible Changed
From-To: dinoex->pgollucci

databases/rubygem-activerecord should be migrate to rubygem-pg 
activerecord should already support it.
Comment 8 Philip M. Gollucci freebsd_committer freebsd_triage 2010-01-15 00:49:44 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 9 dfilter service freebsd_committer freebsd_triage 2010-01-15 00:49:54 UTC
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"