From cee7aff06b18061c3ffdecc41966002b2ce14b0f Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 12 Sep 2015 23:26:44 -0400 Subject: [PATCH] Ruby: Fix recipe on x86. - Add cflags define for _BSD_SOURCE, as the build would otherwise fail in the socket module due to detecting the presence of the ifaddrs header, but lacking the actual functions. --- dev-lang/ruby/ruby-2.2.2.recipe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-lang/ruby/ruby-2.2.2.recipe b/dev-lang/ruby/ruby-2.2.2.recipe index bc5421b19..030bada84 100644 --- a/dev-lang/ruby/ruby-2.2.2.recipe +++ b/dev-lang/ruby/ruby-2.2.2.recipe @@ -19,7 +19,7 @@ PATCHES="ruby-$portVersion.patchset" REVISION="1" -ARCHITECTURES="!x86_gcc2 ?x86 !x86_64" +ARCHITECTURES="!x86_gcc2 x86 !x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" @@ -78,6 +78,7 @@ BUILD() { libtoolize --force --copy --install autoconf + export CFLAGS=-D_BSD_SOURCE runConfigure --omit-dirs binDir ./configure --enable-shared \ --disable-silent-rules \ --bindir=$prefix/bin