No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anjan Nath 95e29808fd ghci: install setuptools python module needed by ninja
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>
2024-01-30 22:39:06 +05:30
.github/workflows ghci: install setuptools python module needed by ninja 2024-01-30 22:39:06 +05:30
build-qemu.sh make the script fail when there is an error 2024-01-30 22:39:06 +05:30
build.sh remove set -x and fail on pipefail 2024-01-30 22:39:06 +05:30
README.md change default prefix to /opt/podman/qemu 2022-06-28 10:57:48 +05:30

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.sh script
$ 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/bin to PATH
$ export PATH=$PATH:$PREFIX/bin
$ qemu-system-x86_64 -m 512 -nic user -boot d -cdrom alpine-virt-3.15.4-x86.iso -display cocoa