From 81c4c7c2cf2c5ff27a6c02e41bf484a53ea942c2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 16 Sep 2009 17:22:57 +0200 Subject: make adk compile system work on shuttle - add some missing packages like cpio, lzma and gnu wget - make microperl more featureful, needed for kernel-header installation - make a dependency to perl - fix header installation for $libc-dev package - fix 64bit uclibc setup, simplify gcc patches and totally unrelated - add preliminary kvm and libvirt support (not tested) --- package/libvirt/Config.in | 8 ++++++ package/libvirt/Makefile | 33 ++++++++++++++++++++++ .../libvirt/patches/patch-src_storage_backend_c | 11 ++++++++ 3 files changed, 52 insertions(+) create mode 100644 package/libvirt/Config.in create mode 100644 package/libvirt/Makefile create mode 100644 package/libvirt/patches/patch-src_storage_backend_c (limited to 'package/libvirt') diff --git a/package/libvirt/Config.in b/package/libvirt/Config.in new file mode 100644 index 000000000..e4a322b18 --- /dev/null +++ b/package/libvirt/Config.in @@ -0,0 +1,8 @@ +config ADK_PACKAGE_LIBVIRT + prompt "libvirt........................... virtualization API" + tristate + select ADK_PACKAGE_LIBXML2 + select ADK_PACKAGE_LIBGNUTLS + default n + help + http://www.libvirt.org diff --git a/package/libvirt/Makefile b/package/libvirt/Makefile new file mode 100644 index 000000000..dcdb0804b --- /dev/null +++ b/package/libvirt/Makefile @@ -0,0 +1,33 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= libvirt +PKG_VERSION:= 0.7.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 8c2c14a7695c9c661004bcfc6468d62d +PKG_DESCR:= virtualization API +PKG_SECTION:= utils +PKG_DEPENDS:= libxml2 libgnutls +PKG_URL:= http://www.libvirt.org +PKG_SITES:= ftp://libvirt.org/libvirt/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBVIRT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +TCFLAGS+= -std=c99 +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --without-xen \ + --without-uml \ + --without-esx \ + --without-openvz \ + --without-sasl +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_LIBVIRT}/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libvirt/patches/patch-src_storage_backend_c b/package/libvirt/patches/patch-src_storage_backend_c new file mode 100644 index 000000000..d47a4493d --- /dev/null +++ b/package/libvirt/patches/patch-src_storage_backend_c @@ -0,0 +1,11 @@ +--- libvirt-0.7.0.orig/src/storage_backend.c 2009-08-05 14:50:01.000000000 +0200 ++++ libvirt-0.7.0/src/storage_backend.c 2009-09-11 13:23:38.000000000 +0200 +@@ -128,7 +128,7 @@ virStorageBackendCopyToFD(virConnectPtr + } + } + +- bzero(&zerobuf, sizeof(zerobuf)); ++ memset(&zerobuf, 0, sizeof(zerobuf)); + + if (VIR_ALLOC_N(buf, bytes) < 0) { + virReportOOMError(conn); -- cgit v1.2.3