libvirt: new package
RFC 1/1 libvirt: new package
Libvirt is collection of software that provides a convenient way to manage virtual machines and other virtualization functionality, such as storage and network interface management. These software pieces include an API library, a daemon (libvirtd), and a command line utility (virsh).
---
v0: primitive package, for experimental purposes only
--- package/Config.in | 1 + package/libvirt/Config.in | 22 ++++++++++++++++++++++ package/libvirt/libvirt.hash | 2 ++ package/libvirt/libvirt.mk | 25 +++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 package/libvirt/Config.in create mode 100644 package/libvirt/libvirt.hash create mode 100644 package/libvirt/libvirt.mk
package/Config.in +1 -0
@@ -1888,6 +1888,7 @@ menu "System tools" source "package/keyutils/Config.in" source "package/kmod/Config.in" source "package/kvmtool/Config.in" + source "package/libvirt/Config.in" source "package/lxc/Config.in" source "package/monit/Config.in" source "package/ncdu/Config.in"
package/libvirt/Config.in new file +22 -0
@@ -0,0 +1,22 @@ +config BR2_PACKAGE_LIBVIRT + bool "libvirt" + depends on !BR2_STATIC_LIBS # libnl, lvm2 + depends on BR2_USE_MMU # needs fork() + depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, libtirpc + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBTIRPC + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_YAJL + help + Libvirt is collection of software that provides a convenient + way to manage virtual machines and other virtualization + functionality, such as storage and network interface + management. These software pieces include an API library, a + daemon (libvirtd), and a command line utility (virsh). + + http://libvirt.org/ + +comment "libvirt needs a glibc or uClibc toolchain w/ threads, dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL
package/libvirt/libvirt.hash new file +2 -0
@@ -0,0 +1,2 @@ +# locally computed +sha256 4e7bcb209eeef99f026484293abc733e30ed06dabcdde62c4c3e95f71b2b67ba libvirt-3.7.0.tar.xz
package/libvirt/libvirt.mk new file +25 -0
@@ -0,0 +1,25 @@ +################################################################################ +# +# libvirt +# +################################################################################ + +LIBVIRT_VERSION = 3.7.0 +LIBVIRT_SITE = http://libvirt.org/sources +LIBVIRT_SOURCE = libvirt-$(LIBVIRT_VERSION).tar.xz +LIBVIRT_LICENSE = LGPL-2.1+ +LIBVIRT_LICENSE_FILES = COPYING +# LIBVIRT_INSTALL_STAGING = YES +LIBVIRT_DEPENDENCIES = libnl libtirpc libxml2 lvm2 yajl +LIBVIRT_CONF_ENV += \ + CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" \ + LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`" + +LIBVIRT_CONF_OPTS = \ + --disable-debug \ + --with-gnu-ld \ + --without-dtrace \ + --without-vmware \ + --without-vbox + +$(eval $(autotools-package))
Signature · 1 line
2.13.5
Hi Carlos,
Quoted 18 lines · Carlos Santos
package/libvirt/Config.in new file +12
-0@@ -0,0 +1,22 @@ +config BR2_PACKAGE_LIBVIRT + bool "libvirt" + depends on !BR2_STATIC_LIBS # libnl, lvm2 + depends on BR2_USE_MMU # needs fork() + depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, libtirpc + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBTIRPC + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_YAJL + help + Libvirt is collection of software that provides a convenient
package/libvirt/Config.in line 22
Quoted 10 lines
package/libvirt/Config.in new file +10
-0+ way to manage virtual machines and other virtualization + functionality, such as storage and network interface + management. These software pieces include an API library, a + daemon (libvirtd), and a command line utility (virsh). + + http://libvirt.org/ + +comment "libvirt needs a glibc or uClibc toolchain w/ threads, dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL
The musl incompatibility is because of lvm2, right? This part is missing from the dependencies listed above.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -Quoted 33 lines
From: "Baruch Siach" <[email protected]>
To: "Carlos Santos" <[email protected]>
Cc: buildroot at buildroot.org
Sent: Thursday, September 14, 2017 12:29:58 AM
Subject: Re: [Buildroot] [RFC v0] libvirt: new packageHi Carlos,
Quoted 24 lines · Carlos Santos
package/libvirt/Config.in new file +18
-0@@ -0,0 +1,22 @@ +config BR2_PACKAGE_LIBVIRT + bool "libvirt" + depends on !BR2_STATIC_LIBS # libnl, lvm2 + depends on BR2_USE_MMU # needs fork() + depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, libtirpc + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBTIRPC + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LVM2 + select BR2_PACKAGE_YAJL + help + Libvirt is collection of software that provides a convenient + way to manage virtual machines and other virtualization + functionality, such as storage and network interface + management. These software pieces include an API library, a + daemon (libvirtd), and a command line utility (virsh). + + http://libvirt.org/
Quoted 8 lines
Quoted 5 lines
package/libvirt/Config.in new file +4
-0+ +comment "libvirt needs a glibc or uClibc toolchain w/ threads, dynamic library" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS ||
BR2_TOOLCHAIN_USES_MUSLThe musl incompatibility is because of lvm2, right? This part is missing from the dependencies listed above.
Right. I will fix it in the next version. Thanks!
Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens