On Thu, Jun 27, 2019 at 11:01:20AM +0100, Samuel Bernardo wrote:
I try to compile again with ruby use flag activated and it compiled now. When in compile phase it didn't uninstall the previous installed version without ruby flag. Cloud this mean that it is missing some dependency in include path when compiling ruby guestfs gem, since .so and .a of libguestfs were already installed?
It's hard to say, but this is plausible. Could you encourage the author of this patch to submit it upstream? It's not quite complete since I think you will need some further changes to at least appliance/packagelist.in.
diff -Naur a/m4/guestfs-appliance.m4 b/m4/guestfs-appliance.m4 --- a/m4/guestfs-appliance.m4 2018-09-21 16:05:40.719638121 +0100 +++ b/m4/guestfs-appliance.m4 2018-11-21 23:46:42.371118647 +0000 @@ -108,6 +108,9 @@ [OPENSUSE | SLED | SLES],[DISTRO=SUSE], [ARCH],[DISTRO=ARCHLINUX]) AC_MSG_RESULT([$DISTRO (from /etc/os-release)]) + elif test -f /etc/gentoo-release; then + DISTRO=GENTOO + AC_MSG_RESULT([$DISTRO (from /etc/gentoo-release)]) else AC_MSG_ERROR([/etc/os-release not available, please specify the distro using --with-distro=DISTRO]) fi
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org