summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for 1.0.73.1.0.73Richard Jones2009-10-141-1/+1
|
* inspector: Generate language bindings for OCaml.Richard Jones2009-10-131-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a generic mechanism for deriving language bindings for virt-inspector, and implements one concrete binding, for OCaml. The bindings are generated from the RELAX NG schema (virt-inspector.rng) which is supposed to be a correct and always up to date description of the XML that the virt-inspector program can generate. From the RNG we generate a set of types to describe the output of virt-inspector for the language, plus an XML parser, plus some glue code to actually run an external instance of virt-inspector and parse the resulting XML. At runtime, an external 'virt-inspector --xml <name>' command runs and the XML is parsed into language-specific structures. This has been tested on the four example files (inspector/example?.xml) The only particular difficulty about the OCaml binding is the use of Obj.magic, which is naughty but works because of the isomorphism between the representation of tuples and records in OCaml. This seems to cause no problems in my test program. Apart from this, the OCaml binding is straightforward and could be adapted easily for any other languages that want type-safe virt-inspector bindings. It's important to keep virt-inspector.rng up to date with changes to virt-inspector's XML output format.
* inspector: Add tests for RELAX NG schema.Richard Jones2009-10-021-0/+4
|
* configure: Update comment about viewer.ml.Richard Jones2009-10-021-1/+3
|
* OCaml example: graphical disk usage viewer.Richard Jones2009-09-291-0/+8
| | | | | | | | | This is an example of how to write an app which uses libguestfs and libvirt, and has a responsive user interface (using threads). It is a Gtk-based "graphical virt-df". Read the top of the 'viewer.ml' file first for instructions on how to compile. This program is not compiled by default.
* maint: use spaces, not TABs for indentationJim Meyering2009-09-241-3/+3
| | | | | | | | "make syntax-check" was failing. This fixes it. * HACKING: Indent with spaces, not TABs. * configure.ac: Likewise. * rescue/virt-rescue: Likewise. * src/generator.ml: Likewise.
* Prepare for 1.0.72.1.0.72Richard Jones2009-09-231-1/+1
| | | | Also update PO files.
* New tool: virt-editRichard Jones2009-09-231-1/+6
| | | | | | | | | | | | | Edit any file in a guest. This was possibly previously using guestfish, but having a separate command makes it simpler. The usage is simply: virt-edit mydomain /some/file It runs $EDITOR or vi on the file, and if the user changes it, uploads the result back to the VM.
* Add 'virt-rescue' command.Richard Jones2009-09-231-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command runs a "rescue appliance" against a virtual machine or disk image. This is useful for making ad-hoc interactive changes to virtual machines. $ virt-rescue --ro /dev/vg_trick/F11x64 Welcome to virt-rescue, the libguestfs rescue shell. Note: The contents of / are the rescue appliance. You have to mount the guest's partitions under /sysroot before you will be able to examine them. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell ><rescue> mount /dev/vg_f11x64/lv_root /sysroot EXT4-fs (dm-0): barriers enabled kjournald2 starting: pid 269, dev dm-0:8, commit interval 5 seconds EXT4-fs (dm-0): internal journal on dm-0:8 EXT4-fs (dm-0): delayed allocation enabled EXT4-fs: file extents enabled EXT4-fs: mballoc enabled EXT4-fs (dm-0): mounted filesystem with ordered data mode ><rescue> ls /sysroot/ bin dev home lib64 media opt root selinux sys usr boot etc lib lost+found mnt proc sbin srv tmp var ><rescue> exit
* Rejig configure.ac tests for qemu vmchannel support.Richard Jones2009-09-231-11/+32
| | | | | | | | | | | vmchannel is no longer required, so we shouldn't test for it. However we should test instead for user mode networking support. Also fix up the documentation / error messages. Always test for vmchannel and user mode networking support in qemu. This gives us more troubleshooting information if people report bugs.
* Prepare for 1.0.71.1.0.71Richard Jones2009-09-221-1/+1
| | | | | | Update version number and update PO files. Put latest version and release date on the website front page.
* Fix verbose packet dumping functions.Richard Jones2009-09-171-0/+8
| | | | | | | | | | Add the configure parameter --enable-packet-dump so that this code can be enabled without editing the source. This code is normally commented out, because it is too verbose unless you happen to be debugging the underlying protocol. Because it is normally commented out, I found it had bit-rotted slightly. This commit also fixes the obvious problems.
* Disable -Wunsafe-loop-optimizationsRichard Jones2009-09-171-0/+2
| | | | | | This warning indicates that GCC could not do a particular sort of loop optimization. It pops up randomly in certain forms of looping code, and seems safe to ignore.
* Prepare for version 1.0.70.1.0.70Richard Jones2009-09-151-1/+1
|
* Set minimum gettext version to 0.17.Richard Jones2009-09-151-1/+1
| | | | | | | | | | | | | | This fixes the problem that the 1.0.69 tarball would fail in the po/ subdirectory when installing: make[1]: Entering directory `/builddir/build/BUILD/libguestfs-1.0.69/po' /bin/sh @MKINSTALLDIRS@ /builddir/build/BUILDROOT/libguestfs-1.0.69-1.fc11.x86_64/usr/share /bin/sh: @MKINSTALLDIRS@: No such file or directory make[1]: Leaving directory `/builddir/build/BUILD/libguestfs-1.0.69/po' RHEL 5.3 has gettext 0.14.6. However the tarball will still build (since it includes all the required code). This may cause a problem if RHEL users want to build from the git repository.
* Prepare for 1.0.69.Richard Jones2009-09-141-1/+1
|
* build: avoid some autoconf warningsJim Meyering2009-08-241-5/+5
| | | | * configure.ac: Move gl_EARLY and gl_INIT to be earlier.
* Remove virt-v2v. New repo: http://gitorious.org/virt-v2v/Richard Jones2009-08-201-7/+2
|
* tests: Use ISO instead of squashfs.Richard Jones2009-08-191-3/+3
| | | | | The squashfs format changes too much. Use an ISO file for the tests instead.
* Prepare for version 1.0.68.Richard Jones2009-08-191-1/+1
|
* build: new configure-time option: --enable-gcc-warningsJim Meyering2009-08-181-0/+61
| | | | | * configure.ac: Define/configure it. * src/Makefile.am: Use new variables.
* Version 1.0.67.1.0.67Richard Jones2009-08-131-1/+1
|
* build: enable automake's silent rules optionJim Meyering2009-08-101-0/+3
| | | | | | | * configure.ac: Use AM_SILENT_RULES([yes]). Those who want verbose build output may configure with --disable-silent-rules or use "make V=1". * daemon/configure.ac: Likewise.
* Allow network interface to be configured.Richard Jones2009-08-071-0/+11
| | | | | | | | Add ./configure --with-net-if=(virtio|ne2k_pci) option. This lets you workaround the following virtio_net bug: https://bugzilla.redhat.com/show_bug.cgi?id=516022
* Version 1.0.661.0.66Richard Jones2009-08-061-1/+1
|
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-109/+109
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* maint: use a git submodule for gnulibJim Meyering2009-08-031-0/+6
| | | | | | | | | | | | | | * .gitmodules: New file, to track gnulib. * .gnulib: Submodule directory. * Makefile.am (EXTRA_DIST): Don't list config.rpath or gitlog-to-changelog. * autogen.sh: Adapt to use the new submodule. * cfg.mk: New file. (SUBDIRS): Add gnulib/lib and gnulib/tests. (dist-hook): Reflect new location of getlog-to-changelog. * configure.ac: Set build-aux/ as AUX_DIR. Invoke gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
* configure.ac: more quotingJim Meyering2009-07-301-11/+18
| | | | | Also, prohibit an invalid value of $JAVA_HOME, since it must be used unquoted below.
* build: If guestfwd test fails, need to print AC_MSG_RESULT 'no'Richard Jones2009-07-301-0/+1
|
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Richard W.M. Jones wrote: > On Wed, Jul 29, 2009 at 10:50:44PM +0200, Jim Meyering wrote: >> The test for febootstrap-to-initramfs' --nocompress option >> was always failing for me on F11. Here's why: > [...] > > Ouch that's obscure. I've applied this patch and the previous > one you sent too. Thanks! Our messages crossed. Rebasing my fixed patch and adjusting the log: >From 9e7846da50ceeee57187f703835bd3975e789719 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: quote the other option test similarly * configure.ac: Quote properly.
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test for febootstrap-to-initramfs' --nocompress option was always failing for me on F11. Here's why: $ bash ~/w/co/libguestfs:210-comment-fix $ t=`febootstrap-to-initramfs 2>&1` [Exit 1] $ if ! echo $t|grep -sq -- --nocompress; then echo not found; fi not found Notice: without quotes, the [--nocompress] term expands to "k", because I happen to have a temporary file named "k": $ echo $t Usage: febootstrap-to-initramfs [--files=filelist] k DIR Please read febootstrap-to-initramfs(8) man page for more information. $ echo "$t" Usage: febootstrap-to-initramfs [--files=filelist] [--nocompress] DIR Please read febootstrap-to-initramfs(8) man page for more information. a simpler example gives a clue: $ touch a b c $ echo [--z] a b c $ echo [--a] a $ echo [--b] a b it's interpreting [--nocompress] as a range: "-" through "n", plus the other characters, ocmpres. "k" falls in the --n range. Anyhow, here's the fix: >From 84855642ed41828d01d55123cfab8d8dede759c1 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: fix test for --nocompress option * configure.ac: Fix underquoting bug that would cause the test for febootstrap-to-initramfs' --nocompress option always to fail with certain-letter-named files in the top directory.
* Version 1.0.65.1.0.65Richard Jones2009-07-291-1/+1
|
* Remove hard-coded qemu-kvm, replace with $QEMU.1.0.64Richard Jones2009-07-231-2/+2
|
* Version 1.0.631.0.63Richard Jones2009-07-231-1/+1
|
* Add libguestfs-test-tool.Richard Jones2009-07-221-0/+1
| | | | | | | | | | | This is an end-user testing tool, designed to test basic functionality of libguestfs/qemu/kernel combination on the end-user's final host machine. It does not perform a thorough test, but should be enough to find most booting issues. Also this is intended to be used when reporting bugs.
* configure: Detect new-style guestfwd support (RHBZ#512957)Richard W.M. Jones2009-07-211-7/+13
| | | | However new qemu 0.10.5 still doesn't work.
* Version 1.0.62.1.0.62Richard Jones2009-07-171-1/+1
|
* RHEL 5.4 fix: Check for qemu-kvm binary in /usr/libexecRichard W.M. Jones2009-07-171-1/+1
|
* Build fix: perl-libintl is not required for the basic Perl bindings.Richard Jones2009-07-151-1/+1
|
* Version 1.0.611.0.61Richard Jones2009-07-151-1/+1
|
* New tool virt-cat: display a file in a virtual machine.Richard Jones2009-07-151-2/+7
| | | | | | | | | This script is just a simpler way to cat a file from a VM. It is otherwise equivalent to using guestfish. virt-cat someguest /etc/fstab virt-cat someguest /var/log/messages | tail
* Make Perl strings translatable using perl-libintl.Richard Jones2009-07-151-2/+2
| | | | | | | | | All Perl strings are now marked as translatable using __"string" or __x("string {placeholder}", placeholder => $_). Perl strings now get copied to the PO files. The po/POTFILES.in file is now updated automagically whenever we add new *.c, *.pl or *.pm files into the repository.
* Version 1.0.60.1.0.60Richard W.M. Jones2009-07-141-1/+1
|
* Version 1.0.59.1.0.59Richard W.M. Jones2009-07-141-1/+1
|
* Fix UPDATES and host_cpu in configure.ac.Richard W.M. Jones2009-07-111-3/+1
| | | | | | UPDATES does not need to be propagated into config.h. host_cpu was AC_DEFINE'd twice.
* Version 1.0.58.1.0.58Richard W.M. Jones2009-07-101-1/+1
|
* Add 'version' call to get true library version number.Richard Jones2009-07-101-1/+14
| | | | | | This patch also changes the way that the version is specified in configure.ac. It is now made out of four parts (major, minor, release and extra) and constructed for AC_INIT.
* Version 1.0.57.1.0.57Richard Jones2009-07-101-1/+1
|
* Added framework for 'virt-df' command.Richard Jones2009-07-101-2/+7
|
* Added outline of the virt-v2v script.Richard Jones2009-07-101-2/+7
|