diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-08-17 09:20:51 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-08-17 09:24:16 +0200 |
commit | b34146172c4b69231795cfed3379c1b0391d6ace (patch) | |
tree | 3acd55fd8172aa98ec8ec6523bd7665891cc502c /dev-lang/ruby | |
parent | dev-python/mygpoclient: Stabilize 1.9-r1 ALLARCHES, #938076 (diff) | |
download | gentoo-b34146172c4b69231795cfed3379c1b0391d6ace.tar.gz gentoo-b34146172c4b69231795cfed3379c1b0391d6ace.tar.bz2 gentoo-b34146172c4b69231795cfed3379c1b0391d6ace.zip |
dev-lang/ruby: fix doc and test when ruby 3.1 is not installed yet
Backport fixes from ruby 3.2 to set LD_LIBRARY_PATH where needed.
Closes: https://bugs.gentoo.org/938020
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-lang/ruby')
-rw-r--r-- | dev-lang/ruby/ruby-3.1.6-r1.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-lang/ruby/ruby-3.1.6-r1.ebuild b/dev-lang/ruby/ruby-3.1.6-r1.ebuild index bf2c830a4665..8ee6c384862b 100644 --- a/dev-lang/ruby/ruby-3.1.6-r1.ebuild +++ b/dev-lang/ruby/ruby-3.1.6-r1.ebuild @@ -94,7 +94,7 @@ src_prepare() { rm -fr ext/fiddle/libffi-3.2.1 || die # Remove webrick tests because setting LD_LIBRARY_PATH does not work for them. - # rm -rf tool/test/webrick || die + rm -rf tool/test/webrick || die # Remove tests that are known to fail or require a network connection rm -f test/ruby/test_process.rb test/rubygems/test_gem{,_path_support}.rb || die @@ -222,10 +222,12 @@ src_configure() { } src_compile() { + local -x LD_LIBRARY_PATH="${S}${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" emake V=1 EXTLDFLAGS="${LDFLAGS}" MJIT_CFLAGS="${CFLAGS}" MJIT_OPTFLAGS="" MJIT_DEBUGFLAGS="" } src_test() { + local -x LD_LIBRARY_PATH="${S}${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" emake V=1 check } |