From 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 15 Jul 2022 00:52:21 +0100 Subject: added python deps for libvirt --- repo/qemu/qemu-static.xibuild.broken | 48 ++++++++++++++++++++++++++++++++++++ repo/qemu/qemu.xibuild | 8 +++--- 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 repo/qemu/qemu-static.xibuild.broken (limited to 'repo/qemu') diff --git a/repo/qemu/qemu-static.xibuild.broken b/repo/qemu/qemu-static.xibuild.broken new file mode 100644 index 0000000..7c61e7a --- /dev/null +++ b/repo/qemu/qemu-static.xibuild.broken @@ -0,0 +1,48 @@ +#!/bin/sh + +DESC="Static builds of qemu for chrooting" + +build () { + cd "$BUILD_ROOT"/build-static + CFLAGS="$CFLAGS -O2" "$BUILD_ROOT"/configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/libexec \ + --localstatedir=/var \ + --disable-glusterfs \ + --disable-xen \ + --disable-glusterfs \ + --disable-debug-info \ + --disable-bsd-user \ + --disable-werror \ + --disable-xen \ + --enable-kvm \ + --enable-seccomp \ + --enable-linux-user \ + --disable-system \ + --static \ + --disable-docs \ + --disable-sdl \ + --disable-gtk \ + --disable-spice \ + --disable-tools \ + --disable-guest-agent \ + --disable-guest-agent-msi \ + --disable-curses \ + --disable-curl \ + --disable-gnutls \ + --disable-gcrypt \ + --disable-nettle \ + --disable-cap-ng \ + --disable-brlapi \ + --disable-mpath \ + --disable-libnfs \ + --disable-numa \ + --disable-capstone && \ + make ARFLAGS="rc" || exit 1 +} + +package () { + cd "$BUILD_ROOT"/build-static + make DESTDIR="$PKG_DEST" install +} diff --git a/repo/qemu/qemu.xibuild b/repo/qemu/qemu.xibuild index 4660aaf..d859027 100644 --- a/repo/qemu/qemu.xibuild +++ b/repo/qemu/qemu.xibuild @@ -28,7 +28,7 @@ prepare () { } build() { - mkdir -p "$BUILD_ROOT"/build + mkdir -p "$BUILD_ROOT"/build "$BUILD_ROOT"/build-static cd "$BUILD_ROOT"/build CFLAGS="$CFLAGS -O2" "$BUILD_ROOT"/configure \ --prefix=/usr \ @@ -53,8 +53,10 @@ build() { --enable-sdl \ --enable-spice \ --enable-virglrenderer \ - --enable-gtk - make ARFLAGS="rc" + --enable-gtk && + make ARFLAGS="rc" || exit 1 + cd .. + } package() { -- cgit v1.2.1