From 313afd12f941deb644b4ccec99e5278922008a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 24 Feb 2021 07:37:15 +0700 Subject: [PATCH] build-style/ruby-module: fix _vendorlibdir because of multilib change --- common/build-style/ruby-module.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/build-style/ruby-module.sh b/common/build-style/ruby-module.sh index 10c0abbde3..c45d1cd687 100644 --- a/common/build-style/ruby-module.sh +++ b/common/build-style/ruby-module.sh @@ -5,5 +5,9 @@ do_install() { local _vendorlibdir=$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]') + if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then + _vendorlibdir="${_vendorlibdir//lib$XBPS_WORDSIZE/lib$XBPS_TARGET_WORDSIZE}" + fi + LANG=C ruby install.rb --destdir=${DESTDIR} --sitelibdir=${_vendorlibdir} ${make_install_args} }