<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 20, 2015 at 8:17 PM, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<div class="gmail_quote">On 19/02/2015 07:02, Miika Turkia wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<div dir="ltr"><br>
<div class="gmail_extra">As supossed, I had a v0.20.0 version
built from scratch overlaped with the debian package.
Cleaned it and the macro worked fine as debian version
(v0.21.3) has three parameters defined .<br>
<br>
</div>
<div class="gmail_extra">I think the wrapper was set to
support three parameters because v0.21 (at least the one
packaged in debian) had only those 3 and fourth was
introduced later. But agree with you 3 completely
different versions of the same library function in less than
a year is a mess (saying it smooth and politely).<br>
<br>
</div>
</div>
</blockquote>
<div>On Ubuntu Utopic (14.10) I also have the problem with only 1
parameter for git_remote _fetch<br>
</div>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">#define LIBGIT2_VERSION "0.20.0"<br>
<br>
</div>
<div class="gmail_extra">I use the attached patch on my tree,
but never sent it out as I have no clue about how the libgit
versioning/API works.<br>
<br>
miika<br>
</div>
</div>
<br>
</blockquote></span>
I was away for two weeks and got out of touch with respect to the
mess with libgit2. I run Ubuntu 14.4 and the default version of
libgit-dev is V19.<br>
Does the latest Subsurface master run with libgit2 V19? The first
#if in that file appears to provide for this <br>
<br>
#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 20<br>
<br>
but I get make errors as discussed previously on this forum. Upon<br>
applying Miika's patch (above, to git-access.c), I get the
following:<br>
<br>
.obj/git-access.o: In function `is_git_repository':<br>
git-access.c:(.text+0x327): undefined reference to
`git_remote_fetch'<br></div></blockquote><div><br></div><div>Looks like this function was introduced on 0.20.0.<br><a href="https://libgit2.github.com/libgit2/#HEAD/group/remote/git_remote_fetch">https://libgit2.github.com/libgit2/#HEAD/group/remote/git_remote_fetch</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
Is there a sane solution for Debian/Ubuntu?<br></div></blockquote><div><br></div><div>Try the attached patch. At least it should allow you to compile again.<br><br></div><div>miika<br></div></div></div></div>