On Thu, Apr 6, 2023 at 6:13 PM David Michael <fedora.dm0(a)gmail.com> wrote:
On Thu, Mar 30, 2023 at 11:53 AM Fabio Valentini <decathorpe(a)gmail.com> wrote:
> I planned on reviewing firecracker as well once all dependencies are
> available (unless somebody beats me to it).
> There's some other things I need to work on today, so I might not get
> to it until tomorrow or this weekend.
Let me know if you don't expect to have time for this review for a
while, and I can ask about it on devel.
Sorry about the delay. I've been out sick since last weekend, and my
eyes still hurt when I look at screens for too long.
I will try to get an initial review pass done today.
I saw the new supported-arches option in rust2rpm specifically
mentioned being used to allow enabling more features. Is that the
only intended use case, or could it be used in place of Exclu*eArch in
all lib crates? I'm specifically wondering about the linux-loader
crate here. While it isn't a feature dependency, allowing it to be
installed on unsupported platforms would support cross-compiling which
could be handy in general. (Firecracker has other dependencies like
kvm-ioctls that would also need to be updated for it to be
cross-compiled from an unsupported platform, but linux-loader is the
only affected package in this set.)
This feature is intended to make library crates *available* on
unsupported architectures as a workaround for limitations of RPM and
Fedora build infrastructure ... but using system packages for cross
compilation is most likely never going to work (mostly because we need
to apply non-portable patches). Cross compilation is - for now - not a
supported use case at all (see also the other thread about compiling
librsvg2 for MinGW).
Fabio