Removed
Link Here
|
1 |
# Remove broken libgit2 detection |
2 |
|
3 |
--- ext/rugged/extconf.rb.orig 2024-10-19 10:29:11 UTC |
4 |
+++ ext/rugged/extconf.rb |
5 |
@@ -65,32 +65,6 @@ if arg_config("--use-system-libraries", !!ENV['RUGGED_ |
6 |
|
7 |
if arg_config("--use-system-libraries", !!ENV['RUGGED_USE_SYSTEM_LIBRARIES']) |
8 |
puts "Building Rugged using system libraries.\n" |
9 |
- |
10 |
- dir_config('git2').any? or pkg_config('libgit2') |
11 |
- |
12 |
- major = minor = nil |
13 |
- |
14 |
- File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line| |
15 |
- if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR\s+([0-9]+)$/)) |
16 |
- major = matches[1] |
17 |
- next |
18 |
- end |
19 |
- |
20 |
- if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR\s+([0-9]+)$/)) |
21 |
- minor = matches[1] |
22 |
- next |
23 |
- end |
24 |
- |
25 |
- break if major && minor |
26 |
- end |
27 |
- |
28 |
- try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected ~> #{major}.#{minor}.0" |
29 |
-#include <git2/version.h> |
30 |
- |
31 |
-#if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor} |
32 |
-#error libgit2 version is not compatible |
33 |
-#endif |
34 |
- SRC |
35 |
else |
36 |
if !find_executable('cmake') |
37 |
abort "ERROR: CMake is required to build Rugged." |