Commit Graph

1386 Commits

Author SHA1 Message Date
Richard W.M. Jones
85c99edec1 v2v: Remove virt-v2v.
It has moved to a new repository:
https://github.com/libguestfs/virt-v2v
2019-11-13 12:49:55 +00:00
Richard W.M. Jones
8097dc16e7 Version 1.41.6. 2019-10-15 13:34:40 +01:00
Richard W.M. Jones
20c2dfbe00 generator, customize, v2v: Only place generated files in libguestfs or common.
After the proposed split of the libguestfs repo, we will end up with
the following layout:

  libguestfs.git
      common -> git submodule libguestfs-common.git
      generator

  virt-v2v.git
      common -> git submodule libguestfs-common.git

  guestfs-tools.git
      common -> git submodule libguestfs-common.git

The generator will only be able to write to libguestfs directories and
the common directory/submodule.  This is mostly the case already with
only 6 exceptions:

  customize/customize-options.pod
  customize/customize-synopsis.pod
  customize/customize_cmdline.ml
  customize/customize_cmdline.mli
  v2v/uefi.ml
  v2v/uefi.mli

This commit moves these files around so they appear under common/ml*

It is somewhat unsatisfactory because it involves copying files
around, but there are some mitigating factors:

(1) Any changes now give us more freedom to develop faster and thus
clean things up in future.

(2) The v2v/uefi files ought to go away in future anyway.

This is simple code motion and should have no effect on the built
programs or tests.
2019-10-14 18:37:29 +01:00
Richard W.M. Jones
ddfec6a97d customize: Move Firstboot and SELinux_relabel modules to common/mlcustomize.
These two modules are a dependency of virt-v2v.  Since we intend to
split virt-v2v from the other OCaml virt-* programs, we cannot have a
dependency between virt-v2v and virt-customize.  Instead we must move
the modules to a common directory (common/mlcustomize) and have both
tools depending on the modules from there.

This is simple refactoring and should not affect how the programs work
or are tested.
2019-10-14 12:36:47 +01:00
Richard W.M. Jones
2299154dc8 Version 1.41.5. 2019-10-09 19:15:07 +01:00
Pino Toscano
dea9636c59 Remove remaining virt-p2v bits
Remove (almost) all the remaining bits related to virt-p2v.
2019-09-10 17:52:16 +02:00
Pino Toscano
2c02adb8ba Remove virt-p2v
This removes only the tool itself, and all the bits strictly needed to
not break the build.

This is now available as separate tool in its own repository:
https://github.com/libguestfs/virt-p2v
2019-09-10 17:52:16 +02:00
Richard W.M. Jones
bf5ee2fb21 Version 1.41.4. 2019-09-02 19:45:12 +01:00
Richard W.M. Jones
ad58324c70 Version 1.41.3. 2019-09-02 12:56:12 +01:00
Richard W.M. Jones
e8ab5b451a Version 1.41.2. 2019-09-02 12:23:28 +01:00
Richard W.M. Jones
2a5ea2892e Version 1.41.1. 2019-09-02 10:12:38 +01:00
Hiroyuki_Katsura
3bbd00c83e Rust bindings: Add Rust bindings
This patch includes Actions and their tests. Missing:

- Events
- Examples

Rust bindings: Add create / close functions

Rust bindings: Add 4 bindings tests

Rust bindings: Add generator of structs

Rust bindings: Add generator of structs for optional arguments

Rust bindings: Add generator of function signatures

Rust bindings: Complete actions

Rust bindings: Fix memory management

Rust bindings: Add bindtests

Rust bindings: Add additional 4 bindings tests

Rust bindings: Format test files

Rust bindings: Incorporate bindings to build system
2019-07-29 10:28:31 +01:00
Pino Toscano
796ce74f31 p2v: move kernel config to perl script
Instead of generating the p2v kernel config using the OCaml generator,
create a Perl script to do this job, mostly at build time.  This is done
to rely less on the generator for p2v, and because the generation of
these sources is quick enough that it can be done at build time (instead
of shipping the generated sources in dist tarballs).

The generate-p2v-config.pl mimics what generator/p2v_config.ml --
namings, and general structure are kept close to that for comparison.

The two C sources are created at build time by the script; however, the
p2v-config.h header is generated at configure time: this is done because
p2v-config.h is included by p2v.h (another header), which in turn is
included by all the p2v C sources -- automake is not able to properly
resolve the dependency, and thus it would not be generated properly.
2019-07-01 13:58:13 +02:00
Pino Toscano
99493eeddd common: Bundle the libvirt-ocaml library for use by virt-v2v
Add a copy of the libvirt-ocaml library, currently available at:
  https://libvirt.org/git/?p=libvirt-ocaml.git;a=summary
This is a snapshot at commit d3ed8dcf1b0a6a8a855ceecbe0bb97f21e6665e3,
which has all the features we need (and that builds fine).
It is expected to stay synchronized with upstream, until there is a new
upstream release, and it will be widespread enough.
2019-05-20 13:32:59 +02:00
Pino Toscano
fbaa5f003a build: correctly report whether vala is enabled
Use the right autoconf variable.

Followup of commit 4f96e823d3.
2019-01-23 14:56:27 +01:00
Corentin Noël
4f96e823d3 gobject: Add Vala binding support
RWMJ: Add optional dependency on vala to the docs.
2019-01-23 13:05:59 +00:00
Richard W.M. Jones
1de72f8f00 Version 1.40.0. 2019-01-16 12:04:25 +00:00
Richard W.M. Jones
61b86bac2e v2v: -o rhv-upload: Allow configure to set the nbdkit Python version.
No functional change, but it does allow downstream distributions to
adjust the nbdkit Python plugin used by virt-v2v -o rhv-upload mode:

./configure --with-virt-v2v-nbdkit-python-plugin=...
2019-01-16 11:57:57 +00:00
Richard W.M. Jones
05d4fcb64d Update copyright dates for 2019.
This command run over the source:

perl -pi.bak -e 's/(20[01][0-9])-2018/$1-2019/g' `git ls-files`
2019-01-08 11:58:30 +00:00
Richard W.M. Jones
6aa46f4303 Version 1.39.14. 2018-12-12 12:35:30 +00:00
Richard W.M. Jones
08a14d9fa7 Version 1.39.13. 2018-12-11 19:40:02 +00:00
Richard W.M. Jones
b7cf2dfff8 Version 1.39.12. 2018-12-11 19:15:22 +00:00
Richard W.M. Jones
e2bafffce2 Version 1.39.11. 2018-09-21 16:15:37 +01:00
Richard W.M. Jones
165add060e Version 1.39.10. 2018-09-21 11:57:08 +01:00
Richard W.M. Jones
09abb9c990 tools: Link OCaml programs with -runtime-variant _pic if available.
OCaml has a small runtime which is statically linked into the virt
tools (providing things like GC and primitives).  Since OCaml 4.03 it
has been possible to select variants of this runtime, one of which is
compiled with -fPIC, using ‘ocamlopt -runtime-variant _pic’.

This has performance implications on i686, but is relatively free on
other architectures.  Since it (in theory) adds to the security of the
final binary this commit enables it whenever it is available.
2018-09-21 10:16:34 +01:00
Richard W.M. Jones
598e879ad1 Version 1.39.9. 2018-08-28 22:17:02 +01:00
Richard W.M. Jones
1b25fc393b build: Use LT_INIT in configure.ac.
Avoids the warning:
libtoolize: Remember to add 'LT_INIT' to configure.ac.

This is the new name for AC_PROG_LIBTOOL, so I removed that.

However to use this macro we must enable AC_USE_SYSTEM_EXTENSIONS.
(AC_GNU_SOURCE was removed back in 2011).
2018-08-22 11:36:36 +01:00
Richard W.M. Jones
040cb93717 Version 1.39.8. 2018-07-27 12:06:04 +01:00
Richard W.M. Jones
ec2228ea05 inspector: Add a regression test for LUKS images (RHBZ#1602353). 2018-07-26 12:02:59 +01:00
Richard W.M. Jones
0521a2f9b7 Version 1.39.7. 2018-07-14 10:23:45 +01:00
Richard W.M. Jones
1d7b63447a Version 1.39.6. 2018-06-29 10:23:54 +01:00
Richard W.M. Jones
f366da30e6 Version 1.39.5. 2018-05-21 13:09:53 +01:00
Richard W.M. Jones
81d951239f Version 1.39.4. 2018-05-01 17:48:06 +01:00
Richard W.M. Jones
e515352f84 utils: Add utility to find maximum number of virtio-scsi disks.
This is an evolution of a Perl script that I originally wrote for this
bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1478201
2018-04-20 15:25:20 +01:00
Richard W.M. Jones
2fdaf27b08 Version 1.39.3. 2018-04-20 13:17:10 +01:00
Lin Ma
104d47453e configure: output the default backend in summary
Signed-off-by: Lin Ma <lma@suse.com>
2018-04-10 09:21:09 +01:00
Richard W.M. Jones
3a572b5fea Version 1.39.2. 2018-03-29 13:52:32 +01:00
Richard W.M. Jones
55b347d71c Version 1.39.1. 2018-03-13 12:17:28 +00:00
Richard W.M. Jones
1e99b96179 Version 1.38.0. 2018-02-09 09:39:02 +00:00
Pino Toscano
82fbf294fd daemon: build also without Hivex.OPEN_UNSAFE (RHBZ#1493048)
Do a configure check for the OPEN_UNSAFE flag in the OCaml binding of
Hivex, using it only when available.  This makes it possible to use
hivex < 1.3.14 to build libguestfs (the daemon, actually).

Amend the building documentation accordingly, bringing the minimum
version of hivex back as it was before
commit 64f49df747.
2018-02-06 17:27:23 +01:00
Richard W.M. Jones
382b544731 Version 1.37.37. 2018-02-06 14:24:18 +00:00
Richard W.M. Jones
ff80f294d3 Version 1.37.36. 2018-01-25 14:30:43 +00:00
Richard W.M. Jones
212762c593 Update copyright dates for 2018.
Run the following command over the source:

  perl -pi.bak -e 's/(20[01][0-9])-2017/$1-2018/g' `git ls-files`
2018-01-04 15:30:10 +00:00
Richard W.M. Jones
2c359583b3 Version 1.37.35. 2017-12-10 09:34:50 +00:00
Richard W.M. Jones
62da9d819f configure: If multiple entries in RELEASES file, pick first.
Multiple entries matching the grep would corrupt the output Makefile.
2017-12-10 09:16:45 +00:00
Richard W.M. Jones
50ca24b634 Version 1.37.34. 2017-11-16 23:05:17 +00:00
Richard W.M. Jones
068078ba95 Version 1.37.33. 2017-11-16 14:03:23 +00:00
Richard W.M. Jones
6c24213d78 Version 1.37.32. 2017-11-16 10:36:19 +00:00
Richard W.M. Jones
4864216309 Version 1.37.31. 2017-10-17 23:59:31 +01:00
Richard W.M. Jones
200e0d40bd Version 1.37.30. 2017-10-16 21:00:18 +01:00