builder: Use libgnu.la instead of -lgnu.

This updates commit effcb99f838da1c4830b4a6b0cc4394b904376f2.

(cherry picked from commit a7a239f7ab8abe8e81861c06abea4dd21dc4cd3d)
daemon: parted: part-get-name: Don't leak partition type string.

Found by './configure --enable-valgrind-daemon'.

This fixes commit 820b87016794116c783bd224f2e776cfdf65108e.

(cherry picked from commit 4cea94a958d72e6f3411ba0caaccf9c27543d15c)
make-fs: Check for error return from guestfs_statvfs.

Found by Coverity.

(cherry picked from commit 410aae4b6f646e1fc20b82d24486c68f0c09916c)
make-fs: Close FILE* along error path.

Found by Coverity.

(cherry picked from commit 15b06d6100ceed0974d52d1aeffa67e9e34fc7da)
rescue: Don't leak various variables when using --suggest option with multi-boot guests.

This fixes a leak which was introduced in
commit 4255db65e58a86148ec291a7416a1148c453d926.

Found by Coverity.

(cherry picked from commit c8657535fd6c937a4ce9ebee647b03b8b6f76916)
builder: Remove recursive include of index-parse.h.

This breaks on Bison < 2.7, and seems unnecessary in any case since
the same file is included earlier.

(cherry picked from commit eff7aed6cfc24c1d605578f738a0d76112d9966b)
builder: Disable internal parallel xzcat on RHEL 6.

(cherry picked from commit 30bdadf032d1c210bae6e2785277afe030d9baf4)
utils: Remove for-loop variable decl.

Breaks Python distutils which doesn't use C99:

utils.c: In function ‘guestfs___copy_string_list’:
utils.c:79:7: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (size_t j = 0; j < i; ++j)
       ^
utils.c:79:7: note: use option -std=c99 or -std=gnu99 to compile your code

(cherry picked from commit bc1a4157941f482efebce19529dbad01537a0051)
utils: Move guestfs___validate_guid out of utils.c.

guestfs___validate_guid was a new function added to utils.c in
commit beef77403cd9d634b6ff6daa9f33d292e2d320a7.

However utils.c should not include <guestfs-internal.h> since the
other functions in this file can be used by all front-end code, not
just libguestfs.so.

This function is only needed in libguestfs.so, so move it to another
source file, and remove include of <guestfs-internal.h> from utils.c.

Also: use 'size_t' for counting, not 'int'.

This fixes commit beef77403cd9d634b6ff6daa9f33d292e2d320a7.

(cherry picked from commit 768ab2e01dab5a8e7e751c33b72c1341fcaf9dc3)
python: Remove unnecessary library dependencies.

We can remove the deps on libxml2, libvirt and gnulib, by only linking
with utils.o (instead of utils.a).

(cherry picked from commit 6af2306730b7e4e372e60b6435f87722972c504b)
handle: Free g->backend_settings.

This was not being freed, resulting in a memory leak if you used
LIBGUESTFS_BACKEND_SETTINGS.

Found by valgrind.

(cherry picked from commit 1893eaded0cf7be68bc30eb3a9fbde814cb42316)
src: Fix test-utils.c to test the validate_guid function again.

This fixes commit 768ab2e01dab5a8e7e751c33b72c1341fcaf9dc3.

(cherry picked from commit 0d9a61a91ddca03fd5652441caa2a8c9123639ee)
Add the now mandatory arch=ARCH field to the index file examples.

61323fa introduced a mandatory arch field within index files to
identify the architecture of the OS installed within a given template.
This change simply documents the requirement within the relevant
section of the virt-builder man page.

Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
(cherry picked from commit cf316569238194e5483d525c3ad618687a055656)
sparsify: Remove duplicate "EXIT STATUS" sections from man page.

(cherry picked from commit 07dff756a7e86154a3ee4f951764eb1fd1f5ed0f)
sparsify: Reorder external programs in SEE ALSO section.

(cherry picked from commit b03b3f6f463c80be90ca32d241a56123d4122ed6)
src/launch: improve the addition of the no-hpet option

Since HPET is specific to x86, we can safely add it its option only on
x86 and x86_64 when creating the libvirt XML (no more hitting the
launching failures due to that on other architectures).

Regarding the direct qemu launch, since qemu 1.1 (which is our current
minimum) "-ho-hpet" appears in the help only where actually supported,
so we could just checking for it and adding it only if present. This
should fix the architecture issues on this backend as well.

(cherry picked from commit 84f646a41a7571937a7b3f71f12338dfb60776b2)
customize: Add customize/*.ml files for translation.

(cherry picked from commit 8c46a644bc664de32835541883123fbabe6991fe)
customize: Add a "finishing" message at the end.

Useful, mainly because it tells you the total time spent running.

(cherry picked from commit 3fa5096f484087cd3415f7eb5dda98dfed11e7ed)
builder: Don't use configure to generate test-index file.

The file contained no replacement patterns so generating it
with configure did nothing.

(cherry picked from commit 795a162cee3765cce19cf7c52128ec27a9482aa2)
builder: Rearrange EXTRA_DIST in alphabetical order.

No functional change.

(cherry picked from commit 358c6571d0a70ec40ff8750885854d3ad6bb28ca)