libvirt/src
Eric Blake 6094b1ff19 build: avoid -lgcrypt with newer gnutls
https://bugzilla.redhat.com/show_bug.cgi?id=951637

Newer gnutls uses nettle, rather than gcrypt, which is a lot nicer
regarding initialization.  Yet we were unconditionally initializing
gcrypt even when gnutls wouldn't be using it, and having two crypto
libraries linked into libvirt.so is pointless, but mostly harmless
(it doesn't crash, but does interfere with certification efforts).

There are three distinct version ranges to worry about when
determining which crypto lib gnutls uses, per these gnutls mails:
2.12: http://lists.gnu.org/archive/html/gnutls-devel/2011-03/msg00034.html
3.0: http://lists.gnu.org/archive/html/gnutls-devel/2011-07/msg00035.html

If pkg-config can prove version numbers and/or list the crypto
library used for static linking, we have our proof; if not, it
is safer (even if pointless) to continue to use gcrypt ourselves.

* configure.ac (WITH_GNUTLS): Probe whether to add -lgcrypt, and
define a witness WITH_GNUTLS_GCRYPT.
* src/libvirt.c (virTLSMutexInit, virTLSMutexDestroy)
(virTLSMutexLock, virTLSMutexUnlock, virTLSThreadImpl)
(virGlobalInit): Honor the witness.
* libvirt.spec.in (BuildRequires): Make gcrypt usage conditional,
no longer needed in Fedora 19.

Signed-off-by: Eric Blake <eblake@redhat.com>
2013-08-12 09:58:48 -06:00
..
access Adapt to VIR_ALLOC and virAsprintf in src/access/* 2013-07-10 11:07:31 +02:00
conf Reverse logic allowing partial DHCP host XML 2013-08-07 16:31:12 +02:00
cpu cpu: Fix one compile error for PPC. 2013-07-29 16:12:15 +08:00
esx Fix minor typos in messages and docs 2013-07-30 07:07:33 -06:00
hyperv Convert 'int i' to 'size_t i' in src/hyperv/ files 2013-07-10 17:55:16 +01:00
interface Convert 'int i' to 'size_t i' in src/interface/ files 2013-07-10 17:55:16 +01:00
libxl libxl: fix libvirtd segfault 2013-08-09 18:01:30 -06:00
locking Add an example config file for virtlockd 2013-08-09 15:03:04 +01:00
lxc Ensure securityfs is mounted readonly in container 2013-08-08 14:25:50 +01:00
network bridge driver: extract platform specifics 2013-08-01 15:47:02 -06:00
node_device Convert 'int i' to 'size_t i' in src/node_device/ files 2013-07-10 17:55:16 +01:00
nwfilter nwfilter: Use -m conntrack rather than -m state 2013-08-06 20:30:46 -04:00
openvz maint: fix typo for SENTINEL 2013-07-30 10:49:53 -06:00
parallels Convert 'int i' to 'size_t i' in src/parallels/ files 2013-07-10 17:55:16 +01:00
phyp Convert 'int i' to 'size_t i' in src/phyp/ files 2013-07-10 17:55:15 +01:00
qemu qemu: Allow hotplug of multiple SCSI devices 2013-08-08 14:16:34 +02:00
remote remote: Fix a segfault in remoteDomainCreateWithFlags 2013-08-09 11:05:26 +08:00
rpc Record the where the auto-generated data comes from 2013-08-09 17:13:02 +01:00
secret Convert 'int i' to 'size_t i' in src/secret/ files 2013-07-10 17:40:14 +01:00
security Expose ownership ID parsing 2013-07-24 14:29:11 +02:00
storage virStateDriver - Separate AutoStart from Initialize 2013-07-26 09:30:53 -04:00
test Convert 'int i' to 'size_t i' in src/test/ files 2013-07-10 17:40:13 +01:00
uml virStateDriver - Separate AutoStart from Initialize 2013-07-26 09:30:53 -04:00
util Make check for /dev/loop device names stricter to avoid /dev/loop-control 2013-08-09 17:43:10 +01:00
vbox Convert 'int i' to 'size_t i' in src/vbox/ files 2013-07-10 17:40:13 +01:00
vmware maint: fix typo for SENTINEL 2013-07-30 10:49:53 -06:00
vmx Change domain controller index type to unsigned 2013-07-12 14:55:04 +02:00
xen xen: Use internal interfaces in xenDomainUsedCpus 2013-08-06 11:53:43 -06:00
xenapi Convert 'int i' to 'size_t i' in src/{xen,xenapi,xenxs} files 2013-07-10 17:40:13 +01:00
xenxs Convert 'int i' to 'size_t i' in src/{xen,xenapi,xenxs} files 2013-07-10 17:40:13 +01:00
check-aclrules.pl Extend the ACL test case to validate filter rule checks 2013-07-03 15:54:54 +01:00
check-driverimpls.pl
check-drivername.pl
check-symfile.pl
check-symsorting.pl
datatypes.c
datatypes.h
driver.c Introduce OOM reporting to virAsprintf 2013-07-10 11:07:31 +02:00
driver.h Separate out StateAutoStart from StateInitialize 2013-07-26 09:30:53 -04:00
dtrace2systemtap.pl
fdstream.c Merge virCommandPreserveFD / virCommandTransferFD 2013-07-18 12:18:24 +01:00
fdstream.h
gnutls_1_0_compat.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
internal.h
libvirt_atomic.syms
libvirt_daemon.syms
libvirt_driver_modules.syms
libvirt_esx.syms
libvirt_gnutls.syms
libvirt_internal.h New internal migration APIs with extensible parameters 2013-06-25 01:13:16 +02:00
libvirt_libssh2.syms
libvirt_linux.syms
libvirt_lxc.syms
libvirt_openvz.syms
libvirt_private.syms qemu: add helper functions for diskchain checking 2013-08-01 13:26:27 +08:00
libvirt_probes.d
libvirt_public.syms Introduce new domain create APIs to pass pre-opened FDs to LXC 2013-07-18 11:01:14 +01:00
libvirt_qemu_probes.d
libvirt_qemu.syms
libvirt_sasl.syms
libvirt_vmx.syms
libvirt_xenxs.syms
libvirt-lxc.c Ensure LXC/QEMU APIs set the filename for errors 2013-08-02 15:32:26 +01:00
libvirt-qemu.c Ensure LXC/QEMU APIs set the filename for errors 2013-08-02 15:32:26 +01:00
libvirt.c build: avoid -lgcrypt with newer gnutls 2013-08-12 09:58:48 -06:00
libvirt.conf
lxc_protocol-structs
Makefile.am Add documentation for access control system 2013-08-09 17:13:02 +01:00
nodeinfo.c nodeinfo: Don't fail on non-contiguous NUMA topologies 2013-07-12 09:11:36 +02:00
nodeinfo.h
qemu_protocol-structs
README
remote_protocol-structs Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event 2013-07-18 15:28:45 +02:00
virkeepaliveprotocol-structs
virnetprotocol-structs

       libvirt library code README
       ===========================

The directory provides the bulk of the libvirt codebase. Everything
except for the libvirtd daemon and client tools. The build uses a
large number of libtool convenience libraries - one for each child
directory, and then links them together for the final libvirt.so,
although some bits get linked directly to libvirtd daemon instead.

The files directly in this directory are supporting the public API
entry points & data structures.

There are two core shared modules to be aware of:

 * util/  - a collection of shared APIs that can be used by any
            code. This directory is always in the include path
            for all things built

 * conf/  - APIs for parsing / manipulating all the official XML
            files used by the public API. This directory is only
            in the include path for driver implementation modules

 * vmx/   - VMware VMX config handling (used by esx/ and vmware/)


Then there are the hypervisor implementations:

 * esx/          - VMware ESX and GSX support using vSphere API over SOAP
 * hyperv/       - Microsoft Hyper-V support using WinRM
 * lxc/          - Linux Native Containers
 * openvz/       - OpenVZ containers using cli tools
 * phyp/         - IBM Power Hypervisor using CLI tools over SSH
 * qemu/         - QEMU / KVM using qemu CLI/monitor
 * remote/       - Generic libvirt native RPC client
 * test/         - A "mock" driver for testing
 * uml/          - User Mode Linux
 * vbox/         - Virtual Box using native API
 * vmware/       - VMware Workstation and Player using the vmrun tool
 * xen/          - Xen using hypercalls, XenD SEXPR & XenStore
 * xenapi/       - Xen using libxenserver


Finally some secondary drivers that are shared for several HVs.
Currently these are used by LXC, OpenVZ, QEMU, UML and Xen drivers.
The ESX, Hyper-V, Power Hypervisor, Remote, Test & VirtualBox drivers all
implement the secondary drivers directly

 * cpu/          - CPU feature management
 * interface/    - Host network interface management
 * network/      - Virtual NAT networking
 * nwfilter/     - Network traffic filtering rules
 * node_device/  - Host device enumeration
 * secret/       - Secret management
 * security/     - Mandatory access control drivers
 * storage/      - Storage management drivers


Since both the hypervisor and secondary drivers can be built as
dlopen()able modules, it is *FORBIDDEN* to have build dependencies
between these directories. Drivers are only allowed to depend on
the public API, and the internal APIs in the util/ and conf/
directories