Hello!
Based on my understanding of:
|
dir_config('git2').any? or pkg_config('libgit2') |
, it should find the libgit2 prefix (LIBGIT2_DIR) using either a
--with-git2-dir=$my-prefix passed to
gem install, or automatically via
pkg-config.
Neither works on my system, so I had to resort to manually patching LIBGIT2_DIR. pkg-config is available in the build environment and:
$ pkg-config --cflags libgit2
-I/gnu/store/agd3gdj1nhpq4w1hyfnhya66m9qlqfdk-libgit2-1.5.1/include -I/gnu/store/aj9iv9xfxb8bj8rg0r7v65xjh1skyb5k-openssl-1.1.1t/include -I/gnu/store/mqz2h2v1i7lx555yaz89sqd06kpgdr62-pcre2-10.37/include -I/gnu/store/v8d7j5i02nfz951x1szbl9xrd873vc3l-zlib-1.2.12/include
$ find /gnu/store/agd3gdj1nhpq4w1hyfnhya66m9qlqfdk-libgit2-1.5.1 -name version.h
/gnu/store/agd3gdj1nhpq4w1hyfnhya66m9qlqfdk-libgit2-1.5.1/include/git2/version.h
Thanks!
Hello!
Based on my understanding of:
rugged/ext/rugged/extconf.rb
Line 69 in 6379f23
--with-git2-dir=$my-prefixpassed togem install, or automatically viapkg-config.Neither works on my system, so I had to resort to manually patching
LIBGIT2_DIR.pkg-configis available in the build environment and:Thanks!