From 7370b21dac05bbc8c295d1d41a8cdc4267079107 Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Sat, 31 Aug 2024 23:43:07 +0300 Subject: extra/ruby: Fix prepare() --- extra/ruby/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extra/ruby/PKGBUILD') diff --git a/extra/ruby/PKGBUILD b/extra/ruby/PKGBUILD index c477d2f6..b3d9a130 100644 --- a/extra/ruby/PKGBUILD +++ b/extra/ruby/PKGBUILD @@ -19,12 +19,17 @@ if [ "${CARCH}" = "i486" ]; then )" fi +prepare() { + cd "ruby-${pkgver}" + patch -p1 -i ../055613fd868a8c94e43893f8c58a00cdd2a81f6d.patch +} + # Seems like 3.2.x will require this patch if [[ $pkgver == 3.2.* ]]; then source+=(055613fd868a8c94e43893f8c58a00cdd2a81f6d.patch) unset sha512sums b2sums+=(SKIP) - eval "$(declare -f prepare | sed 's@patch @patch -p1 -i ../055613fd868a8c94e43893f8c58a00cdd2a81f6d.patch; patch @')" + #eval "$(declare -f prepare | sed 's@patch @patch -p1 -i ../055613fd868a8c94e43893f8c58a00cdd2a81f6d.patch; patch @')" # MJIT might work on 3.3.x (might also need an explicit LDFLAGS="$LDFLAGS -fstack-protector" patch) eval "$(declare -f build | sed 's@./configure@./configure --disable-jit-support@')" # Global variable $0 actually sets the program name FAILED -- cgit v1.2.3-70-g09d2