Apply the attached patch, followed by doing: make -C perl clean ./configure make
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
>From ad92a262bf6a3fd1e49a15ea7a7e81201f2a728e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" <[email protected]> Date: Thu, 25 Feb 2016 08:48:50 +0000 Subject: [PATCH] perl: Don't embed API number in Sys::Guestfs. It means you have to rerun `make -C perl clean ; make' every time you add an API, and is useless anyway. --- generator/perl.ml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/generator/perl.ml b/generator/perl.ml index 5250ce1..f11477b 100644 --- a/generator/perl.ml +++ b/generator/perl.ml @@ -722,16 +722,17 @@ package Sys::Guestfs; use strict; use warnings; -# This version number changes whenever a new function -# is added to the libguestfs API. It is not directly -# related to the libguestfs version number. +# This is always 1.0, never changes, and is unrelated to the +# real libguestfs version. If you want to find the libguestfs +# library version, use $g->version. If you want to test if +# APIs/parameters are present, use %%guestfs_introspection. use vars qw($VERSION); -$VERSION = '0.%d'; +$VERSION = '1.0'; require XSLoader; XSLoader::load ('Sys::Guestfs'); -" max_proc_nr; +"; (* Methods. *) pr "\ -- 2.5.0
_______________________________________________ Libguestfs mailing list [email protected] https://www.redhat.com/mailman/listinfo/libguestfs
