openbsd-ports/devel/ruby-gems/patches/patch-lib_rubygems_config_file_rb
jeremy b3b474bb7a This adds an ugly hack to make gem install --user-install work
for gems with native extensions. Without this, it calls
/usr/bin/install -o root -g bin as a regular user, which fails due
to permission issues. This removes the -o root -g bin, so it can
succeed as a regular user.

Regen patches while here.

Idea to just remove -o root -g bin instead of using cp -p from
landry@.

OK landry@
2010-10-06 18:12:19 +00:00

13 lines
399 B
Plaintext

$OpenBSD: patch-lib_rubygems_config_file_rb,v 1.3 2010/10/06 18:12:19 jeremy Exp $
--- lib/rubygems/config_file.rb.orig Mon Feb 15 20:14:16 2010
+++ lib/rubygems/config_file.rb Wed Oct 6 10:26:54 2010
@@ -63,7 +63,7 @@ class Gem::ConfigFile
path.strip
rescue LoadError
- '/etc'
+ '${SYSCONFDIR}'
end
SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'