Bug 103801 - lang/ruby18: unprivileged rubygems install of gems with extensions fails
Summary: lang/ruby18: unprivileged rubygems install of gems with extensions fails
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: Stanislav Sedov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 08:30 UTC by Dimitri Aivaliotis
Modified: 2006-10-09 14:20 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 Dimitri Aivaliotis 2006-09-29 08:30:18 UTC
rubygems allows for nonprivileged users to use a gems repository in their home directory.  When installing a gem that compiles an extension, the install of this compiled part fails because the CONFIG["INSTALL"] in rbconfig.rb is set to "/usr/bin/install -c -o root -g wheel".  An unprivileged user can obviously not install anything as root, so the install fails.

Fix: 

set CONFIG["INSTALL"] = '/usr/bin/install -c' in rbconfig.rb
How-To-Repeat: - install ruby and rubygems from ports.
- setup a local gem repository as an unprivileged user.
- install any gem that compiles an extension (mongrel, hpricot, etc.)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-29 08:30:29 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2006-09-30 10:59:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stas

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-10-09 14:17:21 UTC
stas        2006-10-09 13:17:16 UTC

  FreeBSD ports repository

  Modified files:
    lang/ruby18          Makefile 
  Log:
  - Add runtime knob to allow libraries installation under user
    privileges. When RB_INSTALL_USER environment  variable is set, ruby
    will not pass '${_BINOWNGRP}' to install program, thus allowing an
    ordinal user to install gem or library (e.g. into home directory).
  - Eliminate extra whitespace
  - Bump portrevision.
  
  PR:             ports/103801 (idea)
  Submitted by:   Dimitri Aivaliotis <aglarond@gmail.com>
  
  Revision  Changes    Path
  1.116     +12 -5     ports/lang/ruby18/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 4 Stanislav Sedov freebsd_committer freebsd_triage 2006-10-09 14:20:03 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!