Bug 1262983

Summary: python: Cannot compile pip module if installed libguestfs != pip guestfs version
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-29 13:24:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2015-09-14 19:46:39 UTC
Description of problem:

The python bindings assume that the version of libguestfs they
will be compiled against is precisely the same version of libguestfs.
This is a fair assumption given that we bundle the python bindings
with libguestfs.

However it breaks when using the pip install method
(https://github.com/libguestfs/libguestfs/commit/fcbfc4775fa2a44020974073594a745ca420d614)
where the version of libguestfs installed is not the
same as the version of the bindings -- in fact they could
be very different.

Version-Release number of selected component (if applicable):

1.31.6

How reproducible:

100%

Steps to Reproduce:
1. On RHEL 7, check out libguestfs from git (ie. libguestfs will be
much newer than the RHEL 7 version)
2. Follow the instructions in the link above to build Python bindings.

Actual results:

Many compilation failures for functions, macros and structs that
don't exist.

Comment 1 Richard W.M. Jones 2015-09-15 13:55:21 UTC
Patches posted:
https://www.redhat.com/archives/libguestfs/2015-September/msg00063.html