libvirt/examples
Eric Blake acf522e85a examples: Avoid gnulib, have standalone examples
Commit 0c6ad476 updated gnulib, which rearranged some of the
conditions in gnulib wrapper headers such that compilation
started failing on BSD systems when the normal system <unistd.h>
tried to include another system header but instead got a
gnulib wrapper header in an incomplete state; this is because
gnulib headers only work if <config.h> is included first.

Commit b6f78259 papered over the symptoms of that by including
<config.h> in all the examples.  But this logic is backwards -
if our examples are truly meant to be stand-alone, they should
NOT depend on how libvirt was configured, and should NOT
depend on the gnulib fixes for system quirks.  In particular,
if an example does not need to link against libgnulib.la,
then it also does not need to use -Ignulib in its compile
flags, and likewise does not need to include <config.h> since
none of the gnulib wrapper headers should be interfering.

So, revert (most of) b6f78259 (except for the bogus pre-patch
use of "config.h" in admin/logging.c: if config.h is included,
it should be via <> rather than "", and must be before any
system headers); then additionally nuke all mention of
<config.h>, -Ignulib, and -llibgnu.la, making all of the
examples truly standalone.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-01-08 09:26:51 -06:00
..
admin examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
apparmor apparmor: fix ptrace rules with kernel 4.18 2018-08-27 10:46:45 +02:00
dominfo Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
dommigrate examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
domsuspend examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
domtop examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
hellolibvirt examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
lxcconvert Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
object-events examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
openauth examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
polkit examples: Use one top level makefile 2016-01-09 21:14:12 -05:00
rename examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00
systemtap Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
xml examples: Add clean-traffic-gateway into nwfilters 2018-07-18 14:03:47 +02:00
Makefile.am examples: Avoid gnulib, have standalone examples 2019-01-08 09:26:51 -06:00