Package Details: libguestfs-git 1.51.7+4.r11933.20231030.0e37e5fee-2

Git Clone URL: https://aur.archlinux.org/libguestfs-git.git (read-only, click to copy)
Package Base: libguestfs-git
Description: Access and modify virtual machine disk image
Upstream URL: https://libguestfs.org
Licenses: GPL2, LGPL2.1
Conflicts: guestfish, guestfsd, libguestfs, virt-rescue
Provides: erlang-guestfs, guestfish, guestfs-bash-completion, guestfsd, java-guestfs, libguestfs, libguestfs-gobject-1.0.so, libguestfs.so, lua-guestfs, ocaml-guestfs, perl-guestfs, php-guestfs, python-guestfs, ruby-guestfs, virt-rescue
Submitter: fartreason
Maintainer: None
Last Packager: dreieck
Votes: 0
Popularity: 0.000000
First Submitted: 2020-02-19 15:37 (UTC)
Last Updated: 2023-11-01 13:54 (UTC)

Latest Comments

« First ‹ Previous 1 2 3

ezequiel.ezb commented on 2020-07-07 03:04 (UTC) (edited on 2020-07-07 03:13 (UTC) by ezequiel.ezb)

just to keep you posted. I've been investigating the last compiler error and the related Makefile (which is under src/libguestfs/ruby) for about two hours now and found out this also has hard dependencies on


1. ruby-rdoc
2. ruby-rake

after installing them compilation finished and I already got it installed.

Was a bit harder to figure out though, because this part seems to have been generated by autoconf and the error messages produced weren't really helpful.

ezequiel.ezb commented on 2020-07-06 22:57 (UTC) (edited on 2020-07-06 23:09 (UTC) by ezequiel.ezb)

Indeed installing [i]rpcsvc-proto[/i] creates all of those missing files and eliminates that specific compilation error, so you're not wrong on this one.

I am stuck at another compilation error now, I'm checking into it.

fartreason commented on 2020-07-06 14:04 (UTC) (edited on 2020-07-06 14:08 (UTC) by fartreason)

rpcgen is used to create the files that are missed in your builds:

$ grep -n rpcgen makepkg.out
3426:checking for rpcgen... rpcgen
4712:checking for rpcgen... rpcgen
5409:rpcgen -c -o guestfs_protocol.c-t guestfs_protocol.x
5410:rpcgen -h -o guestfs_protocol.h-t guestfs_protocol.x
5749:rpcgen -h -o rc_protocol.h-t rc_protocol.x
5750:rpcgen -c -o rc_protocol.c-t rc_protocol.x

So I think the solution would be to add rpcsvc-proto (provider of rpcgen) to makedepends. On feedback that it works I'll make this update.

This is a bit messy:

  1. error should have been triggered at configure stage when rpcgen was not found, rather than at compile stage.
  2. http://libguestfs.org/guestfs-building.1.html does mention in section Full list of requirements that The rpcgen tool is optional, except if you want to compile from git. However, there is section BUILDING FROM GIT which also lists specific dependencies, but not rpcgen; so if you are directly looking for git build instructions, you'll miss it.

ezequiel.ezb commented on 2020-07-05 22:41 (UTC)

OR there's a missing dependency in this AUR package, but I took a look into debian's "libguestfs-dev' package and it includes none of these files, so I think it's the upstream source tree really missing the files that is causing the issue.

ezequiel.ezb commented on 2020-07-05 22:37 (UTC)

@rosco385 that's an upstream issue. I also experienced it. Red hat tells in libguestfs's github oage that bugs should be reported exclusively through their support forum or mailing list. I joined and sent a message, so let's see what comes out of it.

By the way, I don't think the problem is only a mismatching file extension. Since the makefile under /libguestfs-git/src/libguestfs/common/protocol contains multiple references to both guestfs_protocol.x and guestfs_protocol.c as well as a third file 'guestfs_protocol.h' and so rules out the possibility of it being a typo.

Surprisingly, both guestfs_protocol.c and guestfs_protocol.h are missing from the whole source tree, so I think there's no easy way of compiling this unless Red Hat themselves fixes the source code.

rosco385 commented on 2020-07-03 15:03 (UTC)

Pretty sure there's a typo here. Trying to install on Manjaro and I get:

make[2]: Entering directory '/var/tmp/pamac-build-rosco385/libguestfs-git/src/libguestfs/common/protocol'
make[2]: *** No rule to make target 'guestfs_protocol.c', needed by 'all'.  Stop.
make[2]: Leaving directory '/var/tmp/pamac-build-rosco385/libguestfs-git/src/libguestfs/common/protocol'
make[1]: *** [Makefile:2380: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/pamac-build-rosco385/libguestfs-git/src/libguestfs'
make: *** [Makefile:2280: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

The file in /libguestfs-git/src/libguestfs/common/protocol is guestfs_protocol.x not guestfs_protocol.c