<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Why is the package being built from git?  The tarballs contain all the<br>
files needed, and rpcgen isn't needed when building from the tarball.<br>
<br>
Rich.<br></div></blockquote><div>Well, that's up to the package maintainer, he must not know about the tarballs either. I just wanted to use to software and it is not in Manjaro's official repository, so I went for the AUR.<br></div><div><br></div><div>Anyways, I succeeded in compiling it by installing  <i>ruby-rdoc</i> and <i>ruby-rake, </i>which eliminated the following compiler errors. However, in the case of ruby-rake the errors give little to no evidence as to what is missing. <br></div><div>I personally have no business (usually) with compiling stuff from source and should actually thank you lads for the software you made available for the community. Still I think your GitHub and libguestfs page (<a href="http://libguestfs.org/guestfs-building.1.html">http://libguestfs.org/guestfs-building.1.html</a>) should use of some improvement. There's no denying there's information missing in both. The GitHub page doesn't tell us anything at all either about building from tarballs or the likes, it just points to the building guide above,<b> </b><i>which in turn</i><b> </b>doesn't mention anything about preferring the tarballs or them being complete, so one just assumes it is ok to compile from git, which is the case for most open-source software.  Yet the instructions to compile from git don't mention it's mandatory to have these dependencies installed. <br></div><div><br></div><div>If those were only mentioned, people will avoid spending hours of investigation as to why it doesn't compile when all the dependencies are supposedly met.</div><div><br></div><div>Anyways, thanks for the attention and support, I'll communicate the package maintainer of the tarballs and the why he should be using it instead.<br></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 7 de jul. de 2020 às 05:11, Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jul 06, 2020 at 07:52:42PM -0300, Ezequiel Santos wrote:<br>
> Actually, I was trying to compile it from the AUR repository (<br>
> <a href="https://aur.archlinux.org/packages/libguestfs-git/" rel="noreferrer" target="_blank">https://aur.archlinux.org/packages/libguestfs-git/</a>) when I came across this<br>
> problem.<br>
> Now, answering your question:<br>
> *1. Are there any files under common/ ?*<br>
> Yes. There are several files there in, including Makefile.am,<br>
> guestfs_protocol.x, but not guestfs_protocol.c or guestfs_protocol.h<br>
> <br>
> However, I was talking to the package maintainer and he's stated that<br>
> <br>
> > rpcgen is used to create the files that are missed in your builds:<br>
> ><br>
> > $ grep -n rpcgen makepkg.out<br>
> > 3426:checking for rpcgen... rpcgen<br>
> > 4712:checking for rpcgen... rpcgen<br>
> > 5409:rpcgen -c -o guestfs_protocol.c-t guestfs_protocol.x<br>
> > 5410:rpcgen -h -o guestfs_protocol.h-t guestfs_protocol.x<br>
> > 5749:rpcgen -h -o rc_protocol.h-t rc_protocol.x<br>
> > 5750:rpcgen -c -o rc_protocol.c-t rc_protocol.x<br>
> ><br>
> > So I think the solution would be to add *rpcsvc-proto* (provider of<br>
> > rpcgen) to makedepends. On feedback that it works I'll make this update.<br>
> ><br>
> <br>
>  I installed *rpcsvc-proto *and indeed it created the missing files<br>
> (including the .c and .h file mentioned above) and it eliminated that<br>
> compiler error (just now I got a different one, which I'll try solving<br>
> later),<br>
> <br>
> However, it is of my concern that, as the maintainer of that package<br>
> mentioned:<br>
> <br>
> > This is a bit messy:<br>
> ><br>
> >    1. error should have been triggered at configure stage when rpcgen was<br>
> >    not found, rather than at compile stage.<br>
> >    2. <a href="http://libguestfs.org/guestfs-building.1.html" rel="noreferrer" target="_blank">http://libguestfs.org/guestfs-building.1.html</a> does mention in<br>
> >    section *Full list of requirements* that *The rpcgen tool is optional,<br>
> >    except if you want to compile from git*. However, there is section *BUILDING<br>
> >    FROM GIT* which also lists specific dependencies, but not rpcgen; so<br>
> >    if you are directly looking for git build instructions, *you'll miss<br>
> >    it. *<br>
> ><br>
> > I personally tried agree with him, because I tried to find info on how to<br>
> properly compile this and although I didn't try manually fetching the code<br>
> from git, I could find enough information to solve this problem and thus I<br>
> think *there is *something to be fixed upstream, even if it's just<br>
> documentation.<br>
<br>
Why is the package being built from git?  The tarballs contain all the<br>
files needed, and rpcgen isn't needed when building from the tarball.<br>
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
virt-top is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://people.redhat.com/~rjones/virt-top" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
<br>
</blockquote></div></div>