Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 267487

Summary: dev-lang/ruby-1.8: error build if cross-compile.
Product: Gentoo Linux Reporter: Leonid <asm>
Component: [OLD] DevelopmentAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild patch
Cross-compil patch for ext/extmk.rb

Description Leonid 2009-04-26 01:10:46 UTC
If cross-compiling, ext/extmk.rb have error.

I wrote patch files/ruby18-cross.patch:
--- ./ext/extmk.rb	2009-04-26 03:44:04.000000000 +0400
+++ ./ext/extmk.rb	2009-04-26 03:44:45.000000000 +0400
@@ -356,4 +354,5 @@
 end
+$ruby="" if $ruby == nil
 $ruby << " -I'$(topdir)'"
 unless CROSS_COMPILING
   $ruby << " -I'$(top_srcdir)/lib'"

and patch for ebuild:
*** ruby-1.8.7_p72-r11.ebuild.old	2009-04-26 05:01:40.000000000 +0400
--- ruby-1.8.7_p72-r11.ebuild	2009-04-26 05:01:05.000000000 +0400
***************
*** 73,73 ****
--- 73,74 ----
  	epatch "${FILESDIR}/${PN}-ossl_ocsp-verification.patch"
+ 	epatch "${FILESDIR}/${PN}${MY_SUFFIX}-cross.patch"


Reproducible: Always

Steps to Reproduce:
1. cross-emerge ruby
Comment 1 Leonid 2009-04-26 01:13:58 UTC
Created attachment 189441 [details]
Ebuild patch
Comment 2 Leonid 2009-04-26 01:14:42 UTC
Created attachment 189442 [details, diff]
Cross-compil patch for ext/extmk.rb
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-04-26 08:05:19 UTC
Please add a build log, emerge --info, and tell us for what arch you are cross-compiling.