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.)
State Changed From-To: open->feedback Awaiting maintainers feedback
Responsible Changed From-To: freebsd-ports-bugs->stas I'll take it.
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"
State Changed From-To: feedback->closed Committed. Thanks!