Ignore case when generating AUTHORS file.
(cherry picked from commit 368b4c6480057ed090ee5793b6fdf88e138188e7)
rescue: Remove dead code.

This pty code was defended by #if 0 ... #endif and was dead code.
(cherry picked from commit e9d30742949e9e24259927fd0bd5104d6bb9bfff)
utils: Fix error messages for external commands that fail (RHBZ#921040).

This adds a common utility function (guestfs___exit_status_to_string)
and a common error function (guestfs___external_command_failed), and
uses them all over the library and tools when converting exit status
in error messages etc.

(cherry picked from commit 1b644ad64eb9b9c1d6e97953b98c8c00559bf37d)
tests: Make it easier to grep failures out of the log file.
(cherry picked from commit df656c9d5a49af97ecfce4147a276d478c78019e)
launch: Print attach-method, tmpdir, umask, euid when launching.

These are only printed when debugging is enabled, but should help
debugging hard-to-pin-down permissions problems.
(cherry picked from commit 0fd925da77983d6f438f2494d8dd3cd122234f68)
ruby: Support 'make INSTALLDIRS=vendor install' for Ruby as well as Perl.

As with Perl, you can now set INSTALLDIRS to control where Ruby places
its files (ie. in the site dir, which is the default, or in the vendor
dir).

The difference in file layout between 'make install' and
'make INSTALLDIRS=vendor install' is shown below (for Fedora 18).

--- /tmp/site	2013-03-14 12:14:35.740015694 +0000
+++ /tmp/vendor	2013-03-14 12:14:13.668093944 +0000
@@ -119,21 +119,20 @@
 ./usr/lib64/ocaml/guestfs/mlguestfs.cmxa
 ./usr/lib64/ocaml/stublibs/dllmlguestfs.so
 ./usr/lib64/ocaml/stublibs/dllmlguestfs.so.owner
-./usr/lib64/perl5/auto/Sys/Guestfs/Guestfs.bs
-./usr/lib64/perl5/auto/Sys/Guestfs/Guestfs.so
-./usr/lib64/perl5/auto/Sys/Guestfs/.packlist
 ./usr/lib64/perl5/perllocal.pod
-./usr/lib64/perl5/Sys/bindtests.pl
-./usr/lib64/perl5/Sys/Guestfs/Lib.pm
-./usr/lib64/perl5/Sys/Guestfs.pm
+./usr/lib64/perl5/vendor_perl/auto/Sys/Guestfs/Guestfs.bs
+./usr/lib64/perl5/vendor_perl/auto/Sys/Guestfs/Guestfs.so
+./usr/lib64/perl5/vendor_perl/auto/Sys/Guestfs/.packlist
+./usr/lib64/perl5/vendor_perl/Sys/bindtests.pl
+./usr/lib64/perl5/vendor_perl/Sys/Guestfs/Lib.pm
+./usr/lib64/perl5/vendor_perl/Sys/Guestfs.pm
 ./usr/lib64/php/modules/guestfs_php.so
 ./usr/lib64/pkgconfig/libguestfs-gobject-1.0.pc
 ./usr/lib64/pkgconfig/libguestfs.pc
 ./usr/lib64/python2.7/site-packages/guestfs.py
 ./usr/lib64/python2.7/site-packages/libguestfsmod.la
 ./usr/lib64/python2.7/site-packages/libguestfsmod.so
-./usr/local/lib64/ruby/site_ruby/_guestfs.so
-./usr/local/share/ruby/site_ruby/guestfs.rb
+./usr/lib64/ruby/vendor_ruby/_guestfs.so
 ./usr/sbin/libguestfs-make-fixed-appliance
 ./usr/share/doc/libguestfs/example-debian-netinst-cd.xml
 ./usr/share/doc/libguestfs/example-debian.xml
@@ -406,3 +405,4 @@
 ./usr/share/man/uk/man3/guestfs-perl.3
 ./usr/share/man/uk/man3/guestfs-python.3
 ./usr/share/man/uk/man3/guestfs-ruby.3
+./usr/share/ruby/vendor_ruby/guestfs.rb

For prompting me to fix this, thanks: Hilko Bengen.
(cherry picked from commit 87c9ec881cb695724e01d9f6fc9df996d4c67cb6)
README: Discourage general users from doing 'make install'.

It causes plenty of problems with people have multiple parallel
versions of libguestfs installed, and there's no benefit because you
can easily run libguestfs and tools from the build directory.
(cherry picked from commit 04acc32abf5bea2ce53f695b4030be5f2147a469)
erlang: Use $(ERLANG_LIB_DIR) to get Erlang libdir.

Instead of previous custom hack which didn't work properly on Debian.

Thanks: Hilko Bengen.
(cherry picked from commit e29a130d8f3dbf8eab23ae78aabc2d95e7f56470)
Mount /run as tmpfs inside appliance (workaround for febootstrap's /init)
(cherry picked from commit 85dd52f470f8cb84dbd83c8478b7f9feb3ab7b06)
launch: Move code concerned with adding drives to 'src/drives.c'.

Apart from adding a few comments, this is entirely code motion.

(cherry picked from commit 33ec3eca298c83d5af90a899fa5f22da6bd0a266)
drives: Refactor code to separate 'struct drive' creation from adding drives.
(cherry picked from commit b1df9a9df121e8386222291aacac9f9f8602c620)
drives: Make drv->readonly flag into a bool.
(cherry picked from commit e7e2b56569ddba018912193c192210ae50950815)
appliance: Use ignore_value() macro instead of casting return to (void).
(cherry picked from commit e7c78881fc539b10374d0507d6ca2c3edae65020)
appliance: Make sure cachedir has mode 0755 (RHBZ#921292).

See https://bugzilla.redhat.com/show_bug.cgi?id=921292#c4
(cherry picked from commit af1c53d104180415a8584c48f19fd4ea7df224f5)
lib: Add missing cases in switch statements.

These were being hidden by misguided use of the dangerous
-Wswitch-default flag.
(cherry picked from commit bf1c3196b53293c2f1c3cd37ab14b00b40d6e942)
inspection: Remove unused #includes.
(cherry picked from commit 766393d8542c9824c034016b7238c5e854ed323a)
build: Turn off warnings about overlength-strings and switch-default.

Cherry picked from commit 71de9ef03909218473d820938fff61665d35a6e7
and commit ae3011d5184eb7b9614695f87ba7d16460f558e4.
build: Fix 'make extra-tests' to call 'check-valgrind' instead of rule that doesn't exist.
(cherry picked from commit 55ce68784f447826c8796e491e8279f0df22f22a)
build: Small rearrangement of Makefile.am check-slow rule.
(cherry picked from commit 62d940d2dd3a152736663ec5318b1b2e240653d6)
build: Add 'make check-valgrind-with-appliance'.
(cherry picked from commit 97be29893e6a760bd1082008645942814a904c63)