Received: from host4.kei.pl ([195.149.226.213] helo=smtp.host4.kei.pl) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1NYDBp-0004mK-Bw for openembedded-devel@lists.openembedded.org; Fri, 22 Jan 2010 07:40:20 +0100 Received: (qmail 5907 invoked by uid 813007); 22 Jan 2010 06:38:01 -0000 X-clamdmail: clamdmail 0.18a Received: from 195.149.226.213 (HELO localhost.localdomain) (marcin@juszkiewicz.com.pl@195.149.226.213) by 195.149.226.213 with ESMTPA; 22 Jan 2010 06:38:01 -0000 From: Marcin Juszkiewicz To: openembedded-devel@lists.openembedded.org Date: Fri, 22 Jan 2010 07:37:55 +0100 Message-Id: <1264142275-17415-1-git-send-email-marcin@juszkiewicz.com.pl> X-Mailer: git-send-email 1.6.6 X-SA-Exim-Connect-IP: 195.149.226.213 X-SA-Exim-Mail-From: marcin@juszkiewicz.com.pl X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: No (on linuxtogo.org); Unknown failure Subject: [STABLE][PATCH] ruby-native: fix building with gcc 4.4.x X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 06:40:20 -0000 From: Marcin Juszkiewicz Looks like gcc 4.4.x do not like the way Ruby programmers used preprocessor. This change is not present in .dev due to different versions of Ruby. Signed-off-by: Marcin Juszkiewicz --- recipes/ruby/files/gcc44.patch | 23 +++++++++++++++++++++++ recipes/ruby/ruby-native_1.8.5.bb | 5 +++++ 2 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 recipes/ruby/files/gcc44.patch diff --git a/recipes/ruby/files/gcc44.patch b/recipes/ruby/files/gcc44.patch new file mode 100644 index 0000000..b8f8ee4 --- /dev/null +++ b/recipes/ruby/files/gcc44.patch @@ -0,0 +1,23 @@ +--- + math.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- ruby-1.8.5.orig/math.c ++++ ruby-1.8.5/math.c +@@ -32,13 +32,15 @@ domain_check(x, msg) + rb_sys_fail(msg); + } + if (isnan(x)) { + #if defined(EDOM) + errno = EDOM; +-#elif define(ERANGE) ++#else ++#if define(ERANGE) + errno = ERANGE; + #endif ++#endif + continue; + } + break; + } + } diff --git a/recipes/ruby/ruby-native_1.8.5.bb b/recipes/ruby/ruby-native_1.8.5.bb index e4d2a33..f35363d 100644 --- a/recipes/ruby/ruby-native_1.8.5.bb +++ b/recipes/ruby/ruby-native_1.8.5.bb @@ -1,2 +1,7 @@ require ruby.inc inherit native + +PR = "r1" + +SRC_URI += " file://gcc44.patch;patch=1 " + -- 1.6.6