[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

libsvn_ra_git [was: svn commit: r1583639 [1/3] - ...]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 1 Apr 2014 16:33:56 +0100 (BST)

Stefan Sperling wrote:

>> URL: http://svn.apache.org/r1583639
>> Log:
>> Create the ra-git branch: git repository access for Suversion
>
> For those who are going to test/review this:
>
> I forgot to mention that we currently use libgit-0.20.0 as our base.
> A different version of libgit2 might not work as expected.
>
> Building libgit2 is a breeze, by the way. It has a very portable
> cmake-based build system and no externals dependencies (except
> libssh, but that isn't yet supported by ra-git anyway).

Very cool!

I committed a couple of tweaks to the 'build.conf' file to help it build on Linux (I'm using Ubuntu 12.04). For the record, I built and installed libgit2 like this:

[[[
$ cd ~/src/libgit2-0.20.0
$ mkdir build && cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=~/.local/libgit2-0.20.0
[...]
$ cmake --build . --target install
[...]
[ 23%] Built target git2
[...]
[100%] Built target libgit2_clar
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/lib/libgit2.so.0.20.0
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/lib/libgit2.so.0
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/lib/libgit2.so
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/lib/pkgconfig/libgit2.pc
[...]
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/include/git2/diff.h
-- Installing: /home/julianfoad/.local/libgit2-0.20.0/include/git2.h
]]]

And then I configured Subversion with:

  LDFLAGS=-Wl,-rpath,$HOME/.local/libgit2-0.20.0/lib [my normal ./configure ... command]  --with-libgit2=$HOME/.local/libgit2-0.20.0

- Julian
Received on 2014-04-01 17:41:18 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.