On Wed, 3 May 2017 12:05:48 +0200
"Paweł Hajdan, Jr." <phajdan...@gentoo.org> wrote:

> I encountered <https://bugs.gentoo.org/show_bug.cgi?id=617276> while
> working on some cross-compiling project.
> 
> Admittedly, it may not be that easy to handle host package
> dependencies fully automatically.
> 
> I'm wondering - is it documented what portage guarantees, and what I'm
> expected to just manually handle to provide host build dependencies?
> 
> Any other advice about properly using crossdev would also be
> appreciated. I'd be happy to test and help improve things.


From man emerge:


       --root-deps[=rdeps]
              If  no argument is given then build-time dependencies of
       packages for ROOT are installed to ROOT instead of /.  If the
       rdeps argument is given then discard all build-time dependencies
       of packages for ROOT.  This option is only meaningful when used
       together with ROOT and it should not be enabled under normal
       circumstances!

              Does not affect EAPIs that support HDEPEND.  Experimental
              EAPI 5-hdepend provides HDEPEND as a new means to adjust
              installation into "/" and ROOT.  If ebuilds using EAPIs
              which do not support HDEPEND are built  in  the same
              emerge run as those using EAPIs which do support HDEPEND,
              this option affects only the former.


crossdev wrappers set --root-deps=rdeps (read cross-emerge, this can be
overriden), but be careful: If you only care about getting all the deps
and maybe more then removing --root-deps might help you. However, when
cross compiling you will likely run into broken deps since / and ROOT
will not use the same keyword visibility.

Reply via email to