File: bump-libgit2.patch

package info (click to toggle)
ruby-rugged 1.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,752 kB
  • sloc: ansic: 8,722; ruby: 7,473; sh: 99; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/ext/rugged/extconf.rb
+++ b/ext/rugged/extconf.rb
@@ -66,17 +66,6 @@ if arg_config("--use-system-libraries",
   puts "Building Rugged using system libraries.\n"
 
   dir_config('git2').any? or pkg_config('libgit2')
-
-  major = 1
-  minor = 8
-
-  try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected ~> #{major}.#{minor}.0"
-#include <git2/version.h>
-
-#if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor}
-#error libgit2 version is not compatible
-#endif
-  SRC
 else
   if !find_executable('cmake')
     abort "ERROR: CMake is required to build Rugged."