From 1638f0b1b7d541dfbf9913fa56c1ba1f9237a560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Skv=C4=9Bl=C3=BD?= Date: Thu, 28 Dec 2023 10:21:15 +0100 Subject: [PATCH] Fix build for older Ruby versions --- projects/ruby-lang.org/package.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/ruby-lang.org/package.yml b/projects/ruby-lang.org/package.yml index b16d94a1..4fb12224 100644 --- a/projects/ruby-lang.org/package.yml +++ b/projects/ruby-lang.org/package.yml @@ -24,14 +24,14 @@ build: ruby-lang.org: ^3 # ruby requires ruby to build # ^^ only linux because we got issues on darwin currently and darwin provides ruby (for now) script: - - patch -p1 < props/mkconfig.rb.diff + - patch -p1 -F5 < props/mkconfig.rb.diff - ./configure $ARGS - make --jobs {{hw.concurrency}} install # we provide these as `rubygems.org` - - run: rm bundle bundler gem + - run: rm -f bundle bundler gem working-directory: ${{prefix}}/bin - fix-shebangs.ts ${{prefix}}/bin/* @@ -48,7 +48,7 @@ build: if test -d $x; then rm -rf $x else - rm $x + rm -f $x fi done rm -rf ../gems/3.2.0/gems/bundler-*.*.* @@ -123,6 +123,7 @@ test: - run: ruby --yjit $FIXTURE + if: ^3 fixture: content: | def fib(n)