[libvirt] [PATCH] build: fix build --without-remote

Eric Blake eblake at redhat.com
Wed Jun 29 14:53:07 UTC 2011


On 06/29/2011 03:36 AM, Daniel P. Berrange wrote:
> On Tue, Jun 28, 2011 at 09:31:50PM -0600, Eric Blake wrote:
>> When configured --without-remote, the files remote_protocol.[ch]
>> are not built by src/Makefile, but are still used by daemon/Makefile.
>> The solution is to copy the implicit rule.
>>
>> * daemon/Makefile.am (%protocol.c, %protocol.h): Copy from src.
> 
> Does it make sense to allow building of the daemon, when the
> client is disabled ?

Hmm, good metaquestion.  And I bet that if I fix that issue, then this
patch would not be needed.

> I can see value in building client, but not daemon, since you
> might want a remote only build. But I'm not sure I see any
> point in the reverse. So we could make configure force the
> daemon disabled, if the client is disabled instead. Or make
> it raise an error if the user requests that combo

Well, the build in question was './configure --without-remote', which is
useful only for connecting to non-daemon hypervisors like ESX.  If you
are going to skip all rpc-related code, then you should skip both client
and daemon.

I'll look into that more today.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110629/1e828e89/attachment-0001.sig>


More information about the libvir-list mailing list