On 2025/01/11 05:40, Sebastian Reitenbach wrote:
> Hi, 
> this update would help getting sysutils/ruby-pdk updated.
> 
> The patch is necessary to make the test suite pass successfully.

> +--- spec/ldiff_spec.rb.orig
> ++++ spec/ldiff_spec.rb
> +@@ -79,7 +79,7 @@ RSpec.describe "bin/ldiff" do
> +     right = options.fetch(:right)
> + 
> +     stdout, stderr = capture_subprocess_io do
> +-      system("ruby -Ilib bin/ldiff #{flag} spec/fixtures/#{left} 
> spec/fixtures/#{right}")
> ++      system("ruby${GEM_BIN_SUFFIX} -Ilib bin/ldiff #{flag} 
> spec/fixtures/#{left} spec/fixtures/#{right}")
> +     end

I would recommend "ln -fs ${RUBY} ${WRKDIR}/bin/ruby" in pre-test
instead of patching + SUBST_CMD.

Reply via email to