Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 208c556b3a6a
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9f67ac65c934
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 18, 2021

  1. 3
    Copy the full SHA
    9f67ac6 View commit details
Showing with 11 additions and 1 deletion.
  1. +11 −1 dev-lang/ruby/ruby-2.7.4.recipe
12 changes: 11 additions & 1 deletion dev-lang/ruby/ruby-2.7.4.recipe
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ HOMEPAGE="https://www.ruby-lang.org/"
COPYRIGHT="1993-2021 Yukihiro Matsumoto"
LICENSE="Ruby
BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cache.ruby-lang.org/pub/ruby/2.7/ruby-$portVersion.tar.bz2"
CHECKSUM_SHA256="bffa8aec9da392eda98f1c561071bb6e71d217d541c617fc6e3282d79f4e7d48"
SOURCE_DIR="ruby-$portVersion"
@@ -88,6 +88,16 @@ BUILD_PREREQUIRES="
defineDebugInfoPackage ruby$secondaryArchSuffix \
"$libDir"/libruby.so.$libVersion

PATCH()
{
# Hack for ripper build
sed -i \
-e "/#define YYLTYPE_IS_DECLARED 1/a #define YYEMPTY -2" \
-e "/#define YYLTYPE_IS_DECLARED 1/a #define YYUNDEF 257" \
-e "/#define YYLTYPE_IS_DECLARED 1/a #define YYerror 256" \
$sourceDir/ext/ripper/ripper.y
}

BUILD()
{
export CFLAGS="-D_BSD_SOURCE"