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

Bug 498098

Summary: dev-libs/dbus-glib - Cross-compile fix using HDEPEND
Product: Gentoo Linux Reporter: James Le Cuirot <chewi>
Component: [OLD] LibraryAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED INVALID    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 317337    
Bug Blocks:    
Attachments: dbus-cross-compile.patch
dbus-cross-compile.patch
dbus-glib-cross-compile.patch

Description James Le Cuirot gentoo-dev 2014-01-14 21:20:46 UTC
Created attachment 367850 [details, diff]
dbus-cross-compile.patch

Apologies for filing this as it is similar to bug #498030, which was closed for relying on an unofficial/experimental EAPI, but I would still like to offer it up as a use-case and it may be helpful to somebody.

This patch works around the fact that dbus-binding-tool is built and then used to build the examples and tools. Unfortunately it doesn't work out of the box because the various eclasses don't allow this EAPI even though it probably works just fine.

I didn't apply this fix for the tests because enabling tests when you're cross-compiling is a bit of a non-starter.
Comment 1 James Le Cuirot gentoo-dev 2014-01-14 21:24:42 UTC
Created attachment 367852 [details, diff]
dbus-cross-compile.patch

Oops, emacs automatically slipped in an unrelated whitespace fix!
Comment 2 James Le Cuirot gentoo-dev 2014-01-15 21:22:15 UTC
Created attachment 367914 [details, diff]
dbus-glib-cross-compile.patch

Slightly misunderstood HDEPEND. Moved more deps from DEPEND to HDEPEND.
Comment 3 Pacho Ramos gentoo-dev 2014-01-18 10:39:46 UTC
We cannot apply this or do anything until HDEPEND is not approved for a next eapi :/