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