Bug 156217 - port www/rubygem-passenger fails to install with ruby 1.9
Summary: port www/rubygem-passenger fails to install with ruby 1.9
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: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 10:40 UTC by gebhart
Modified: 2011-04-06 20:40 UTC (History)
0 users

See Also:


Attachments
file.diff (432 bytes, patch)
2011-04-06 10:40 UTC, gebhart
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gebhart 2011-04-06 10:40:10 UTC
Port www/rubygem-passenger fails to install when using ruby 1.9:

===>  Checking if www/rubygem-passenger 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 /usr/ports/distfiles/rubygem/passenger-3.0.4.gem -- --build-args 
Successfully installed passenger-3.0.4
1 gem installed
Installing RDoc documentation for passenger-3.0.4...
(cd /usr/local/lib/ruby/gems/1.9/gems/passenger-3.0.4 && lib/ruby/gems/1.9/gems/passenger-3.0.4/bin/rake19 nginx)
lib/ruby/gems/1.9/gems/passenger-3.0.4/bin/rake19: not found
*** Error code 127

Stop in /usr/ports/www/rubygem-passenger.
*** Error code 1

Stop in /usr/ports/www/rubygem-passenger.
*** Error code 1

Stop in /usr/ports/www/rubygem-passenger.

Fix: I guess, the problem is in /usr/ports/Mk/bsd.ruby.mk :

.if ${RUBY_VER} == 1.8
RAKE_BIN=       ${LOCALBASE}/bin/rake
.else
RAKE_BIN=       ${GEM_LIB_DIR}/bin/rake${RUBY_VER:S/.//}
.endif

There is usually no rake in the bin dir of a gem, in this case passenger.
The following patch works for me and seems reasonable to me to make sure, rake of ruby 1.9 is used:
How-To-Repeat: When ruby 1.9 is installed from the ports and the following entries are
in /etc/make.conf:
RUBY_VER=1.9
RUBY_DEFAULT_VER=1.9

then install passenger:

cd /usr/ports/www/rubygem-passenger & make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-04-06 10:40:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby

ruby@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2011-04-06 10:40:22 UTC
Maintainer of www/rubygem-passenger,

Please note that PR ports/156217 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156217

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2011-04-06 10:40:24 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Jacob Atzen 2011-04-06 10:50:30 UTC
I am not sure how to respond to this as the proposed patch is a patch to bsd.ruby.mk and not the passenger port.

-- 
Cheers,
- Jacob Atzen

On Wednesday, April 6, 2011 at 11:40 , Edwin Groothuis wrote: 
> Maintainer of www/rubygem-passenger,
> 
> Please note that PR ports/156217 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156217
> 
> -- 
> Edwin Groothuis via the GNATS Auto Assign Tool
> edwin@FreeBSD.org
>
Comment 5 Jonathan Chu 2011-04-06 17:04:12 UTC
swills@ says the patch looks good, but this will require an -exp run
because it is for bsd.ruby.mk
Comment 6 dfilter service freebsd_committer freebsd_triage 2011-04-06 20:36:59 UTC
stas        2011-04-06 19:36:50 UTC

  FreeBSD ports repository

  Modified files:
    Mk                   bsd.ruby.mk 
  Log:
  - As ports ruby 1.9 now includes a recent version of rake,
    revert a part of 1.197 by pgollucci which breaks rake with
    ruby 1.9 and switch back to using the ruby 1.9 bundled one.
  
  PR:             ports/155539, ports/156217
  Submitted by:   Ralf Gebhart <gebhart@secnetix.de>, Anonymous <swell.k@gmail.com>
  
  Revision  Changes    Path
  1.204     +3 -3      ports/Mk/bsd.ruby.mk
_______________________________________________
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 Stanislav Sedov freebsd_committer freebsd_triage 2011-04-06 20:37:26 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!