From 50022159dda4723f99a758617d20ea92be0af86f Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 27 Aug 2010 18:31:53 +0200 Subject: [PATCH] ruby: fixed by using $arch_machine while constructing the path for fixing 'rbconfig.rb' --- ruby/ruby/ruby.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ruby/ruby/ruby.conf b/ruby/ruby/ruby.conf index 208a77bcf..261ff2f1d 100644 --- a/ruby/ruby/ruby.conf +++ b/ruby/ruby/ruby.conf @@ -33,13 +33,12 @@ var_append makeinstopt ' ' 'install-doc' pkg_ruby_postmake() { local ruby_ver="$(echo $ver | cut -d '.' -f-2)" - local platform="$(echo $arch | arch2uname)" if pkginstalled linux-header; then local os="linux" fi # fixup rbconfig.rb (otherwise the path of our install wrapper leaks in) - sed -i -e "s,\(CONFIG\[\"INSTALL\"\] =\).*,\1 '/usr/bin/install -c'," "$root$libdir/ruby/$ruby_ver/$platform-$os/rbconfig.rb" + sed -i -e "s,\(CONFIG\[\"INSTALL\"\] =\).*,\1 '/usr/bin/install -c'," "$root$libdir/ruby/$ruby_ver/$arch_machine-$os/rbconfig.rb" } hook_add postmake 5 'pkg_ruby_postmake'