dockerfiles: install bindgen from cargo on Ubuntu 22.04

Because Ubuntu 22.04 has a very old version of bindgen, that
does not have the important option --allowlist-file, it will
not be able to use --enable-rust out of the box.  Instead,
install the latest version of bindgen-cli via "cargo install"
in the container, following QEMU's own documentation.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2024-10-18 18:01:22 +02:00
parent 5b1b5a8ae4
commit 951f71ad67
5 changed files with 19 additions and 4 deletions

View file

@ -7,7 +7,6 @@
packages:
- bash
- bc
- bindgen
- bison
- bsdextrautils
- bzip2

View file

@ -7,7 +7,6 @@
packages:
- bash
- bc
- bindgen
- bison
- bsdextrautils
- bzip2