Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267502 - dev-ruby cross-compiling error (gtk+). (inherit ruby)
Summary: dev-ruby cross-compiling error (gtk+). (inherit ruby)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 07:08 UTC by Leonid
Modified: 2009-08-04 22:08 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid 2009-04-26 07:08:31 UTC
extenv.rb make bad Makefiles.
It don't see CC, HOST, BUILD, TARGET varibles.

Ebuilds use CC varibles, but CFLAGS and DESTDIR don't using.
I wrote VERY VERY dirty hack(see Additional Information), please FIX it.

P.S. inherit gems don't work too. 

Reproducible: Always

Steps to Reproduce:
1. cross-ebuild ruby-gtk2

P.S.
1. cross-ebuild rcairo  # (ebuild: rcairo-1.8.0.ebuild) don't work too



VERY VERY dirty hack for all gtk-based ebuilds:

src_compile() {
    ruby extconf.rb
    emake CC="${CC}" CFLAGS="${CFLAGS}  \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/glib-2.0/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/lib/glib-2.0/include/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/gtk-2.0/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/cairo/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/pango-1.0 \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/lib/gtk-2.0/include/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/atk-1.0/ \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/gtk-unix-print-2.0 \
    -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/libglade-2.0/ \
    "\
    DESTDIR="/usr/armv4tl-softfloat-linux-gnueabi" || die "emake failed"
}
Comment 1 Leonid 2009-04-26 07:19:21 UTC
P.S. 
1. Sorry: "s/cross-ebuild/cross-emerge/"
2. This ebuild I build:
rcairo-1.6.2     ruby-config-0.3.2       rubygems-1.2.0        ruby-gtk2-0.16.0-r4       ruby-pango-0.16.0
ruby-atk-0.16.0  ruby-gdkpixbuf2-0.16.0  ruby-glib2-0.16.0-r3  ruby-libglade2-0.16.0-r1
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-08-04 22:08:11 UTC
I think we neew more information to actually do something about this (build logs, etc.)