mirror of
https://github.com/containers/podman-machine-qemu
synced 2026-07-24 00:53:50 +00:00
No description
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
without installing this on the github actions workers, ninja
fails to find the 'distutils' module
this fixes the following error on the github actions workers
```
/opt/podman/qemu/bin/gdbus-codegen ui/dbus-display1.xml --glib-min-required 2.64 --output-directory /Users/runner/work/podman-machine-qemu/podman-machine-qemu/qemu-8.2.0/build/ui --interface-prefix org.qemu. --c-namespace QemuDBus --generate-c-code dbus-display1
Traceback (most recent call last):
File "/opt/podman/qemu/bin/gdbus-codegen", line 53, in <module>
from codegen import codegen_main
File "/opt/podman/qemu/share/glib-2.0/codegen/codegen_main.py", line 29, in <module>
from . import dbustypes
File "/opt/podman/qemu/share/glib-2.0/codegen/dbustypes.py", line 22, in <module>
from . import utils
File "/opt/podman/qemu/share/glib-2.0/codegen/utils.py", line 22, in <module>
import distutils.version
ModuleNotFoundError: No module named 'distutils'
ninja: build stopped: subcommand failed.
make[1]: *** [run-ninja] Error 1
make: *** [build] Error 2
```
Signed-off-by: Anjan Nath <kaludios@gmail.com>
|
||
| .github/workflows | ||
| build-qemu.sh | ||
| build.sh | ||
| README.md | ||
Qemu build for macOS
How to use the scripts
- install some dependencies, these should already exist if brew is used
$ brew install ronn gengetopt automake autoconf libtool cmake meson ninja
- run the
build-qemu.shscript
$ chmod +x build-qemu.sh
# create the prefix/installation directory
$ mkdir -p /opt/podman/qemu
$ chwon -R <user:group> /opt/podman
$ PREFIX=/opt/podman/qemu ./build-qemu.sh
- finally add the
$PREFIX/bintoPATH
$ export PATH=$PATH:$PREFIX/bin
- test the build using an alpine image (download virtual image: https://www.alpinelinux.org/downloads/)
$ qemu-system-x86_64 -m 512 -nic user -boot d -cdrom alpine-virt-3.15.4-x86.iso -display cocoa