🆕 Install vulkan-tools on Linux, for reims-ctl report's vulkaninfo
reims-ctl report puts vulkaninfo's whole report in a bug report's zip
(0956d83aa), but the installer installed only the Vulkan loader on Linux, so a
host without the distribution's vulkan-tools got the "vulkaninfo is not
installed" line in its place. vulkan-tools joins the apt, dnf and pacman lists,
under the same question the installer already asks before it installs the
missing packages, so a host that answers yes gets vulkaninfo with the rest.
The package has one name in every Linux family the script supports:
vulkan-tools on Debian and Ubuntu, on Fedora (where rpm -q --whatprovides
finds it by that name) and on Arch and CachyOS, so no family needs a name of
its own or a way around a missing package. Ubuntu, Fedora and Arch containers
resolved and installed it from their own repositories with the rest of their
lists, and vulkaninfo --summary ran in each. The Mac's Homebrew list and
MSYS2's are unchanged.
This commit is contained in:
1 parent
565b08b9c4
commit
2b4dd9cc24
2 files changed
+11
-8
No files matched your search
@@ -53,7 +53,8 @@ scripts/install-ctl.sh
|
||||
```
|
||||
|
||||
It installs what the build needs (apt on Ubuntu and Debian, dnf on Fedora, pacman on Arch and
|
||||
CachyOS, Homebrew on a Mac; Rust through rustup.rs), fetches `vendor/qemu`, builds the library on Vulkan (on a Mac,
|
||||
CachyOS, Homebrew on a Mac; Rust through rustup.rs), and on Linux `vulkan-tools` too, whose `vulkaninfo` goes into
|
||||
`reims-ctl report`'s zip. It fetches `vendor/qemu`, builds the library on Vulkan (on a Mac,
|
||||
on Mesa's KosmicKrisp, from Homebrew's `mesa`) and QEMU on it, installs QEMU into `~/.local/share/reims-ctl/qemu`, and
|
||||
`reims-ctl` into `~/.cargo/bin`. Where x86-64 VMs run, it installs
|
||||
[reims-util](https://github.com/steelbrain/reims-util) beside it; where arm64 VMs run, it installs
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
# - Linux on arm64 (Ubuntu or Debian, Fedora, Arch): arm64 VMs on KVM.
|
||||
# reims-ctl makes an arm64 VM by restoring macOS from an IPSW, and boots it
|
||||
# with Ambrosia. This script:
|
||||
# 1. checks the build's dependencies, and offers to install those missing
|
||||
# 1. checks the build's dependencies, and on Linux vulkan-tools, whose
|
||||
# vulkaninfo reims-ctl report runs, and offers to install those missing
|
||||
# (apt, pacman or dnf, through sudo; on a Mac, Homebrew's, and Xcode's
|
||||
# command line tools are needed), and rustup through rustup.rs, beside
|
||||
# any other cargo, whose installer asks its own questions;
|
||||
@@ -362,25 +363,26 @@ fi
|
||||
# its own window, which a VM on VMware SVGA shows its display in; pipewire,
|
||||
# pulse and ALSA for its audio backends; libusb for USB passthrough; the
|
||||
# SPICE server for -spice; gnutls for the arm64 VMs' AES; bzip2 unpacks its
|
||||
# firmware); and clang, which builds reims-ctl's driver module for Ambrosia,
|
||||
# the arm64 VMs' firmware. A new x86-64 VM's OVMF comes from reims-util, with
|
||||
# its OpenCore image.
|
||||
# firmware); clang, which builds reims-ctl's driver module for Ambrosia, the
|
||||
# arm64 VMs' firmware; and vulkan-tools, whose vulkaninfo reims-ctl report runs
|
||||
# for a bug report's zip (the same name on Debian and Ubuntu, Fedora and Arch).
|
||||
# A new x86-64 VM's OVMF comes from reims-util, with its OpenCore image.
|
||||
apt_pkgs=(build-essential git curl ca-certificates pkg-config python3 python3-venv ninja-build
|
||||
flex bison bzip2 cmake binutils clang libglib2.0-dev libpixman-1-dev libslirp-dev
|
||||
zlib1g-dev libfdt-dev libpipewire-0.3-dev libpulse-dev libasound2-dev libusb-1.0-0-dev
|
||||
libspice-server-dev libgnutls28-dev libvulkan1
|
||||
libspice-server-dev libgnutls28-dev libvulkan1 vulkan-tools
|
||||
libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxfixes-dev libxss-dev
|
||||
libxtst-dev libxkbcommon-dev libwayland-dev libwayland-bin libdecor-0-dev
|
||||
libegl-dev libgl-dev libdrm-dev libgbm-dev libdbus-1-dev libudev-dev libgtk-3-dev)
|
||||
pacman_pkgs=(base-devel git curl python ninja pkgconf flex bison bzip2 cmake clang
|
||||
glib2 pixman libslirp zlib dtc pipewire libpulse alsa-lib libusb spice gnutls vulkan-icd-loader
|
||||
glib2 pixman libslirp zlib dtc pipewire libpulse alsa-lib libusb spice gnutls vulkan-icd-loader vulkan-tools
|
||||
libx11 libxext libxrandr libxcursor libxi libxfixes libxss libxtst libxkbcommon
|
||||
wayland libdecor mesa libdrm dbus systemd-libs gtk3)
|
||||
# Fedora's names for the same, each checked as rpm -q --whatprovides finds it.
|
||||
dnf_pkgs=(gcc gcc-c++ make git curl ca-certificates pkgconf-pkg-config python3 ninja-build
|
||||
flex bison bzip2 cmake binutils clang glib2-devel pixman-devel libslirp-devel
|
||||
zlib-devel libfdt-devel pipewire-devel pulseaudio-libs-devel alsa-lib-devel libusb1-devel
|
||||
spice-server-devel gnutls-devel vulkan-loader
|
||||
spice-server-devel gnutls-devel vulkan-loader vulkan-tools
|
||||
libX11-devel libXext-devel libXrandr-devel libXcursor-devel libXi-devel libXfixes-devel
|
||||
libXScrnSaver-devel libXtst-devel libxkbcommon-devel wayland-devel libdecor-devel
|
||||
libglvnd-devel libdrm-devel mesa-libgbm-devel dbus-devel systemd-devel gtk3-devel)
|
||||
|
||||
Reference in new issue
Block a user