mllib: hostname: add a newline in /etc/hostname

/etc/hostname usually has an ending newline, so add it when changing it.

(cherry picked from commit 3d4cc3cf576c5bf6105f5693eda87e5c6f775f5e)
java: Avoid warnings in the tests and examples.

Avoid warnings about missing serial version, and fix a warning about
raw types.

(cherry picked from commit 2954541fdd6bd419c43e861c187f4f384996b54d)
fish/uri: Initialize some variables to avoid a warning.

The warning only appears when we set CFLAGS to be the same as used by
RPM, which you can do by setting:

  CFLAGS="$(rpm --eval '%{__global_cflags}')"

before running ./configure.

FWIW the current value of that RPM expression (in Fedora 20) is:

  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches

It is not clear which option precisely enables the warning.

(cherry picked from commit cd9f7411741290add87910d531a9cd8685b3be91)
gobject: Use spaces between function name and call parameters.

This is just a whitespace change.

This was done by running the following command and then fixing a
couple of places where it got it wrong:

perl -pi.bak -e 'unless (m/#define/) { s/([a-zA-Z0-9])\(/$1 (/g }' \
  generator/gobject.ml

(cherry picked from commit 99ce50e0a0f9aa8b2c7459cc38e7d4e8760b19d2)
gobject: Don't direct error messages to /dev/null.

We might want to see them.

(cherry picked from commit 23d6d53633fa9cd1c5cd03fbed3aa954d5da2661)
gobject: Clean up some warnings about unused variables.

(cherry picked from commit e74c957a2b2a293290b54e23fb5a7b16f845917b)
gobject: Remove some more warnings from session.c code.

(cherry picked from commit 72713825c44b0aa2587a96cf9e1bf089e3227660)
mllib/uri-c.c: Remove unused variable.

(cherry picked from commit f8bac1329e845734333bf9ab13909a5364a1fa53)
configure: Move ocaml-gettext writing boilerplate to separate m4 module.

This is just code motion.

NOTE that after this commit you have to do:

  aclocal -I m4
  autoconf

as 'make' may not do this automatically.

(cherry picked from commit 9df9c871477d31ebd12c851069ba29ace352c584)
Remove some unused header files.

Found by make syntax-check.

(cherry picked from commit d56b8bcb2c6509b5644fb4d79abb3a4211191388)
test: Use = instead of == for testing string equality in bash script.

Found by make syntax-check.

(cherry picked from commit bf8d75590c3924c3ebe343bf354e93ec7e84ccf9)
podwrapper: Recognize git-style dates in ChangeLog

(cherry picked from commit bbfb9f9480baf3bbf62c6a07252bad9030bdc4a1)
generator: Sort most output.

Look for use of external_functions and fish_functions and replace with
use of external_functions_sorted and fish_functions_sorted where
possible.  This ensures that the output of the generator is sorted as
far as possible.

I also checked for uses of internal_functions and documented_functions
but those are not used.  The *_sorted versions are always used
instead.

(cherry picked from commit 6cc521dc4533d10659214cc660f31239de9e28e7)
FAQ: Remove old RHEL 6.5 section.

(cherry picked from commit 6594e88d80cbd49f798e393cad207d989adf7bc9)
FAQ: Create new section about problems opening disk images.

Move the stuff about encoding problems here, because these are not
really common problems.

(cherry picked from commit c16d5d3de49e3cddce07f161a3316873304adc9c)
FAQ: Add several common problems with opening disk images.

(cherry picked from commit 728ba9b33fa6002de7da72629ff59a7ea99807b5)
FAQ: Remove obsolete entry about libguestfs <= 1.13 and slow writes.

Long since not a problem.

(cherry picked from commit b987be513a919e91b79a045095f9b84db625165f)
fish: small refactor of config reading code

Even though so far there is just one possible setting to read, isolate
in an own function the code to parse a configuration file and read the
settings out of it.

Now there's a new config_t handle used every time, but since config_read
would reset an handle completely, there is no behaviour change.

(cherry picked from commit 5d2b0d1366fc72a79b842ee4bccaa99a16cab754)
fish: change order of config files being read

First read the global configuration and then the local one in user's
HOME, so the latter can really override system settings.

(cherry picked from commit 8577aded9851731ae146643631eda0002bac1e20)
builder: Add ScientificLinux 6.5.

(cherry picked from commit 7794d9a187b47799055f8206fa18608c5247823f)