ayaports/user/ruby3.0-rugged/fix-extconf-version-check.patch

14 lines
562 B
Diff
Raw Normal View History

2023-03-10 05:36:54 +00:00
diff --git a/ext/rugged/extconf.rb b/ext/rugged/extconf.rb
2023-08-31 17:01:46 +00:00
index 7dbd2b3..92251e3 100644
2023-03-10 05:36:54 +00:00
--- a/ext/rugged/extconf.rb
+++ b/ext/rugged/extconf.rb
2023-08-31 17:01:46 +00:00
@@ -70,7 +70,7 @@ if arg_config("--use-system-libraries", !!ENV['RUGGED_USE_SYSTEM_LIBRARIES'])
2023-03-10 05:36:54 +00:00
major = minor = nil
- File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line|
+ File.readlines(File.join("/usr", "include", "git2", "version.h")).each do |line|
2023-08-31 17:01:46 +00:00
if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR\s+([0-9]+)$/))
2023-03-10 05:36:54 +00:00
major = matches[1]
next