Kevin Kofler via devel <devel@lists.fedoraproject.org> writes:

> Carlos O'Donell wrote:
>> And assembling those sysroots is not straight forward.
>
> The easiest way is to unpack a live image. If you are targeting an Arch-
> based or similar distro, you will probably get away with just unpacking the 
> image, because it installs development files by default. But if you are 
> targeting Fedora or a similar distro, you will probably want to compose a 
> custom live image with a bunch of -devel packages. (You can also try to 
> install packages within the sysroot, but if you are cross-compiling to a 
> different architecture, that is not straightforward, you either need to use 
> host tools and point them to the sysroot, or to use CPU emulation to run the 
> tools within the sysroot, or as a last resort to unpack package contents 
> manually.)

Containers might also help, e.g.:

    podman run -it --rm \
      --mount=type=image,source=fedora:38-ppc64le,destination=/sysroot \
      fedora:38-x86_64 bash

The user still needs to compose both images with the required packages,
but it might be easier to keep them up-to-date.

-- 
Tulio Magno
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to