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

Bug 395021

Summary: Writing ebuilds that have different dependencies across platforms undocumented
Product: Gentoo/Alt Reporter: Richard Yao (RETIRED) <ryao>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: QA    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Yao (RETIRED) gentoo-dev 2011-12-17 02:23:58 UTC
I want to import an ebuild from the main tree for a package whose dependency list varies between platforms, but there is no documentation that describes how to do this.
Comment 1 Richard Yao (RETIRED) gentoo-dev 2011-12-17 04:17:49 UTC
ABCD suggested in IRC that I handle this by using "kernel_linux? ( ... )" when manually importing ebuilds from the main tree that have Linux-specific dependencies listed that make no sense for the target platform.

That was the hint I needed, but I imagine that the documentation could mention this, so I will leave this open.
Comment 2 Fabian Groffen gentoo-dev 2011-12-19 09:31:01 UTC
depends a lot on what's the dependency

There is kernel_*, elibc_* and userland_* (see profiles/desc)  Since userland in Prefix is always GNU, it'll be close to useless for Prefix use, but the other two can help you sometimes.  But in some other cases, introducing a USE-flag and masking it on platforms where it cannot work (or forcing it, if it's necessary) would be a (much) cleaner solution.
Comment 3 Richard Yao (RETIRED) gentoo-dev 2012-03-01 16:39:16 UTC
Maybe it would be useful to have a link to the Gentoo Development Guide somewhere on the Prefix website. That should help minimize confusion.
Comment 4 Fabian Groffen gentoo-dev 2017-11-14 15:19:08 UTC
Prefix ebuilds no longer are imported or ecopied.