[libvirt] [Libvirt-ci] Build failed in Jenkins: libosinfo-build » libvirt-debian-9 #307

Daniel P. Berrangé berrange at redhat.com
Wed Jan 8 16:27:02 UTC 2020


On Wed, Jan 08, 2020 at 05:22:23PM +0100, Andrea Bolognani wrote:
> On Tue, 2020-01-07 at 19:07 +0000, Daniel P. Berrangé wrote:
> > On Tue, Jan 07, 2020 at 07:01:53PM +0000, ci at centos.org wrote:
> > > See <https://ci.centos.org/job/libosinfo-build/systems=libvirt-debian-9/307/display/redirect>
> > > <https://ci.centos.org/job/libosinfo-build/systems=libvirt-debian-9/ws/build/tmp-introspectnns2sh9a/Libosinfo-1.0>;;: /home/jenkins/build/libvirt/lib/x86_64-linux-gnu/libosinfo-1.0.so.0: version `LIBOSINFO_1.8.0' not found (required by <https://ci.centos.org/job/libosinfo-build/systems=libvirt-debian-9/ws/build/tmp-introspectnns2sh9a/Libosinfo-1.0)>
> > 
> > This problem is a bug in g-ir-scanner on Debian 9. It is mistakenly
> > linking against the libosinfo.so installed by the prevuous build
> > in $HOME/build/libvirt, instead of the one it just built locally.
> > 
> >   https://bugzilla.gnome.org/show_bug.cgi?id=781525
> > 
> > I fixed by
> > 
> > # ssh jenkins at libvirt-debian-9
> > $ cd build
> > $ find | grep libosinfo-1.0.so  | xargs rm
> > 
> > and then re-triggered the jobs.
> > 
> > It will potentially re-occurr any time we add a new public API to
> > libosinfo
> 
> Yeah, we've hit that in the past and we'll surely hit it again in
> the future. I don't have any bright ideas on how to avoid it, short
> of running something along the lines of
> 
>   $ find $VIRT_PREFIX -name 'libwhatever*so*' -delete
> 
> before each library build.

Hmm, we could add  $GITCHECKOUT/build/osinfo  to LD_LIBRARY_PATH
ahead of $HOME/build/libvirt/lib.  Main pain is that the directory
we'll need to add is different for each project

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list