Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267487 - dev-lang/ruby-1.8: error build if cross-compile.
Summary: dev-lang/ruby-1.8: error build if cross-compile.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 01:10 UTC by Leonid
Modified: 2009-06-13 10:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch (ruby-1.8.7_p72-r11.ebuild.patch,525 bytes, text/plain)
2009-04-26 01:13 UTC, Leonid
Details
Cross-compil patch for ext/extmk.rb (ruby18-cross.patch,249 bytes, patch)
2009-04-26 01:14 UTC, Leonid
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.