From f1eca8c7222e5b3e20e694402d2cc92674f76160 Mon Sep 17 00:00:00 2001 From: Rick Farina Date: Wed, 6 Nov 2019 13:11:39 -0500 Subject: [PATCH] dev-ruby/rjb: fix build on openjdk-11 while not breaking it on icedtea-8 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Rick Farina --- dev-ruby/rjb/rjb-1.6.1.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-ruby/rjb/rjb-1.6.1.ebuild b/dev-ruby/rjb/rjb-1.6.1.ebuild index b8cfe20bb7cf..0c68f9ccbae4 100644 --- a/dev-ruby/rjb/rjb-1.6.1.ebuild +++ b/dev-ruby/rjb/rjb-1.6.1.ebuild @@ -35,6 +35,9 @@ all_ruby_prepare() { # Avoid encoding tests since not all locales may be available. sed -i -e '/test_kjconv/,/^ end/ s:^:#:' test/test.rb || die + + # Fix build on openjdk-11 + sed -i -e 's#javah -classpath ../data/rjb jp.co.infoseek.hp.arton.rjb.RBridge#javac -h . -classpath ../data/rjb RBridge.java#g' ext/extconf.rb || die } each_ruby_prepare() { -- 2.26.2