pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43684: ruby: rbconfig.rb has inappropriate CONFIG["INSTALL"]



>Number:         43684
>Category:       pkg
>Synopsis:       ruby: rbconfig.rb has inappropriate CONFIG["INSTALL"]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 29 13:05:00 +0000 2010
>Originator:     rudolf
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
NetBSD 5.1_RC3 i386
>Description:
It is currently not possible to install as a non-root user (to custom gempath) 
any gem, which needs to be compiled during installation. This is because 
rbconfig.rb (e.g. /usr/pkg/lib/ruby/1.8/i386-netbsdelf/rbconfig.rb) sets:

CONFIG["INSTALL"] = '/usr/bin/install -c -o root -g wheel'

which effectively prevents to successfully finish the process of installation 
of such a gem for any non-root user (Operation not permitted).

>How-To-Repeat:
install lang/ruby and misc/rubygems,

$ mkdir my_gems
$ env GEM_HOME=~/my_gems GEM_PATH=~/my_gems gem install unicode -v 0.1

[ failure ]

>Fix:
I think, that the origin of this problem is the unconditional

CONFIGURE_ENV+= ac_given_INSTALL=${INSTALL:Q}\ -c\ -o\ ${BINOWN}\ -g\ ${BINGRP}

in mk/configure/gnu-configure.mk (which is included by 
mk/configure/configure.mk, which is included by mk/configure/bsd.configure.mk, 
which is included by mk/bsd.pkg.mk, which is included by 
lang/ruby18-base/Makefile).



Home | Main Index | Thread Index | Old Index