11196 Commits

Author SHA1 Message Date
Richard W.M. Jones
2a5ea2892e Version 1.41.1. v1.41.1 2019-09-02 10:12:38 +01:00
Richard W.M. Jones
3f8609434f rust: Add more source files to EXTRA_DIST.
Fixes commit 3f7ff1b068.
2019-09-02 10:01:05 +01:00
Richard W.M. Jones
ffd0b5484d Revert "rust: Add missing file to EXTRA_DIST."
This reverts commit 9a6d162852.

(This file was later removed in
commit 3f7ff1b0689408695d21b4c50384fa24b47e5e8f.)
2019-09-02 10:01:05 +01:00
Richard W.M. Jones
15d1611889 python: Ignore -Wcast-align warnings in Python 3.8 header files.
Disable this warning/error in the Python 3.8 header files:

In file included from /usr/include/python3.8/abstract.h:837,
                 from /usr/include/python3.8/Python.h:147,
                 from actions.h:31,
                 from actions-6.c:34:
/usr/include/python3.8/cpython/abstract.h: In function '_PyVectorcall_Function':
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast increases required alignment of target type [-Werror=cast-align]
   91 |     ptr = (vectorcallfunc*)(((char *)callable) + offset);
      |           ^
2019-09-02 09:00:18 +01:00
Richard W.M. Jones
451e6a7b97 python: Include <Python.h> in one place.
Previously to work around some problems in Python 2 header files we
had to include <Python.h> before any other config file.

For Python 3 which is all we really care about now this is no longer
needed.  We can move the include from three files into the local
"actions.h" file, bringing all the Python definitions and workarounds
into a single place.
2019-09-02 09:00:18 +01:00
Pino Toscano
2581d3c25e build: disable deprecated GTK stuff
We are not using deprecated GTK APIs/stuff, so make sure to not
accidentally use them, and easily catch more deprecations in the future.
2019-09-02 09:00:18 +01:00
Pino Toscano
ff7d94faf8 Copy GtkAttachOptions from GTK >= 3.4
GtkAttachOptions is part of GtkTable, which is used only with GTK < 3.4;
however, these enum values are used also in the GtkGrid version of the
code, so they are needed also when disabling deprecated stuff.

As easy solution to make the current code working without deprecated
stuff of GTK, copy the GtkAttachOptions enum when using GtkGrid (i.e.
with GTK >= 3.4).
2019-09-02 09:00:18 +01:00
Richard W.M. Jones
0731767a20 ocaml: Compile compat bytes.mli file. 2019-08-20 18:10:41 +01:00
Richard W.M. Jones
031016444a m4: ocaml: Remove unused definitions of OCAML_BYTES_COMPAT_*
These were last used in commit 024efc0f2f
and commit 8d09d716aa (both in Jul 2017).
2019-08-20 18:08:43 +01:00
Richard W.M. Jones
4b9efadce2 v2v: Fix missing backslash character in list of tests.
Fixes commit c0d95dcde8.
2019-08-20 17:43:10 +01:00
Richard W.M. Jones
2fbf9a3f94 Update gnulib.
Contains fix for a bug where it would always compile the
replacement accept4 function.

https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html

Thanks: Eric Blake
2019-08-20 17:32:19 +01:00
Richard W.M. Jones
11923627cd builder: templates: Add Debian 10 (buster). 2019-08-20 16:59:56 +01:00
Richard W.M. Jones
2cd905f093 Update gnulib. 2019-08-20 16:11:49 +01:00
Richard W.M. Jones
c873e04b26 Update docs/C_SOURCE_FILES. 2019-08-20 16:11:49 +01:00
Pino Toscano
5d94be2583 generator: improve pod2text invocation
- feed the content directly to stdin, avoid the need of read (and write)
  a temporary file
- read all the output at once, without a tail-recursive function
- apply trimming and first line discarding after closing the process
2019-08-13 16:01:25 +02:00
Pino Toscano
81a01f20c3 generator: adjust variable names
Rename some pod2text-related variables to better-fitting names.

This is just a small refactoring.
2019-08-13 13:45:13 +02:00
Pino Toscano
da0137e828 generator: isolate memoized cache in own module
Isolate the logic for the memoized disk cache in a small module, so it
can be reused for other tools.

Other than refactoring, there should be no behaviour changes.
2019-08-13 13:19:17 +02:00
Pino Toscano
8402a73465 v2v: -o rhv-upload: fix the phony ovirtsdk4 module
- add a no-op Connection.close(), as it called explicitly in the
  close() callback of the nbdkit plugin (rhv-upload-plugin.py)
- fix the types of the 'id' variables, which are strings
2019-08-13 07:43:42 +02:00
Pino Toscano
0c261637f9 Fix small issues in documentations of APIs
- fix names of arguments & optional arguments in C<..> markers
- use https for URLs where possible
- fix links to other guestfs APIs
- use more C<..> markers for special tests, shell commands, values of
  arguments, and names of fields
- link to command man pages where an explicit command is mentioned
- fix few incorrect documentation bits
2019-08-13 07:43:42 +02:00
Richard W.M. Jones
52c7e787d2 rust: Add README.md to EXTRA_DIST.
Fixes previous commit.
2019-08-12 20:36:28 +01:00
Hiroyuki Katsura
212f1a5f71 Rust bindings: Make it able to publish this crate
I added
- data required to publish this crate to `crates.io`.
- README.md which contains the details of how to publish this crate.
2019-08-12 20:34:47 +01:00
Richard W.M. Jones
dcfa382b27 v2v: Remove double space.
Tiny whitespace-only fix.
2019-08-09 12:51:10 +01:00
Richard W.M. Jones
4f30db5ae4 Update gnulib to latest version.
This fixes some test breakage I was experiencing with recent
kernel/glibc.
2019-08-08 13:17:37 +01:00
Richard W.M. Jones
7692c31494 v2v: -i vmx: Use scp -T option if available to unbreak scp (RHBZ#1733168).
Tested using:

cd v2v
LIBGUESTFS_BACKEND=direct ../run virt-v2v -i vmx -it ssh "ssh://localhost/$PWD/test-v2v-i-vmx-1.vmx" -o null -v -x

and manually examining the debug output.

Thanks: Ming Xie, Jakub Jelen.
2019-08-08 12:08:17 +01:00
Hiroyuki Katsura
3f7ff1b068 Rust bindings: Implement callback handlers
This patch includes:

- Event callback handlers
- Tests related to events(410-430)

src/bin/event.rs and src/bin/event_leak.rs
are the PoCs that Boxes related to callbacks are
not leaked.
2019-08-06 14:54:04 +01:00
Hiroyuki Katsura
bb0cb3e730 Rust bindings: Add Event structs, Clarify Handle lifetime
Without clarifying handle's lifetime, it is unable
to see how long the callbacks which the handle
owns will live. Then, Rust compiler will infer
that the callbacks have 'static lifetime. It is
not convenient for users.
2019-08-06 14:54:04 +01:00
Richard W.M. Jones
ab09bc25c7 build: Update miscellaneous files.
BUGS
docs/C_SOURCE_FILES
po/POTFILES
po/POTFILES-ml

These files are normally updated by ‘make dist’ but as we've not had a
release in a while they had not been updated for some time.
2019-07-29 12:57:24 +01:00
Richard W.M. Jones
b81c252e44 p2v: Add .gitignore to EXTRA_DIST.
Fixes commit 9fe175cd76.
2019-07-29 12:55:22 +01:00
Richard W.M. Jones
34a0a724c0 v2v: Fix EXTRA_DIST.
Fixes commit a27748d700.
2019-07-29 12:54:11 +01:00
Richard W.M. Jones
97e2be01b5 common/mltools: Fix EXTRA_DIST.
Fixes commit f79129b8dc.
2019-07-29 12:53:14 +01:00
Richard W.M. Jones
9a6d162852 rust: Add missing file to EXTRA_DIST. 2019-07-29 12:22:20 +01:00
Richard W.M. Jones
94f20e2511 rust: Remove rust/.gitignore from EXTRA_DIST.
Fixes commit b484ca4da1.
2019-07-29 12:18:17 +01:00
Richard W.M. Jones
45e66a567d generator: Use ~copyrights shorthand for ~copyrights:copyrights 2019-07-29 12:15:32 +01:00
Richard W.M. Jones
e6f5ec35cc generator: copywrites -> copyrights 2019-07-29 12:14:23 +01:00
Richard W.M. Jones
b484ca4da1 rust: Move .gitignore to top level file and add extra files. 2019-07-29 12:12:14 +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
6d251e3828 v2v: remove extra nbdkit bit from documentation (RHBZ#1723305)
Since there is no more need to build nbdkit from sources, then there is
no need to set $PATH with a custom build of nbdkit.

Followup of commit 0704d8eb0b.
2019-07-18 15:38:53 +02:00
Pino Toscano
730d2122c4 p2v: split appliance tests in own variable
This way they can be properly shipped also when creating a distribution
tarball ('make dist') from a build configured with --disable-appliance.
2019-07-08 18:58:19 +02:00
Pino Toscano
99cec3c1e7 p2v: fix tests with srcdir!=builddir
Point to files in the source directory using the right variables, so
they are found also when the build directory is different than the
source directory.
2019-07-08 18:56:06 +02:00
Pino Toscano
c5db961cf1 p2v: consider p2v-config.h as generated source
While it is generated at configure time for dependency reasons, consider
it a generated source nevertheless: after the first run, there will be
dependency rules available, so automake will trigger the proper rule to
generate it again using generate-p2v-config.pl.
2019-07-08 17:58:23 +02:00
Pino Toscano
31e8ae38d9 p2v: clean also the test images
Followup of commit ea4d9bd157, and
commit f02c0cb552.
2019-07-08 17:57:41 +02:00
Richard W.M. Jones
c22a8b68fe v2v: Allow Windows virtio ISO to be a block device as well as a regular file.
Thanks: Steven Rosenberg
2019-07-04 22:23:52 +01:00
Pino Toscano
f30840e01b p2v: stop including guestfs.h
It is no more needed, guestfs-utils.h is enough these days.
2019-07-03 12:41:02 +02:00
Pino Toscano
498f940419 contrib: move p2v files within p2v 2019-07-03 12:41:02 +02:00
Pino Toscano
fe96e24001 p2v: generate C about data authors from AUTHORS file
Create a small Perl script to generate about-authors.c from the p2v
AUTHORS file at build time, instead of generating in the generator
at dist time.
2019-07-03 12:41:02 +02:00
Pino Toscano
e7a550c2d8 p2v: ship generate-p2v-config.pl
Fixes commit 796ce74f31.
2019-07-03 12:41:02 +02:00
Pino Toscano
1fe60aabdf p2v: remove non-author credits
Soon only the virt-p2v authors will be available, so remove all the
other roles.  This leaves only in the virt-p2v about dialog, which is a
mild regression compared to the current situation, although it is just
for user information.
2019-07-03 12:40:52 +02:00
Pino Toscano
7ad6afc222 p2v: generate an AUTHORS file
Create a simple AUTHORS file for virt-p2v, so it is easier to
extract or use it later on.
2019-07-02 15:40:39 +02:00
Pino Toscano
f02c0cb552 p2v: tests: use a local blank-part disk image
Instead of using the "global" blank-part test image, use a local version
of it created with guestfish.
2019-07-01 18:47:18 +02:00
Pino Toscano
ea4d9bd157 p2v: tests: switch windows image with local fedora one
Instead of using the "global" Windows test image, use a local Fedora
image created with virt-builder.
2019-07-01 18:44:30 +02:00