mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
subsurface: 4.9.3 -> 4.9.6
This commit is contained in:
parent
3d50d643f9
commit
144aba6a51
@ -1,41 +0,0 @@
|
||||
From dfa4bcafec4425659a409550085417af3c5c787b Mon Sep 17 00:00:00 2001
|
||||
From: Florian Klink <flokli@flokli.de>
|
||||
Date: Sat, 11 Apr 2020 12:38:38 +0200
|
||||
Subject: [PATCH] core: fix libgit ifdef to handle libgit2 v1.0 and onwards
|
||||
|
||||
Conditional code for older libgit versions was removed in
|
||||
https://github.com/Subsurface-divelog/subsurface/pull/2737,
|
||||
but it's a non-trivial backport, and master currently isn't really ready
|
||||
for a release.
|
||||
|
||||
So instead ship a patch fixing the one broken libgit2 conditional until
|
||||
a 4.10 release has been made.
|
||||
|
||||
Note the inverted logic - the if branch now handles the old libgit
|
||||
condition, and the else branch the newer versions, consistent with how
|
||||
it's done in the rest of the subsurface codebase.
|
||||
---
|
||||
core/git-access.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/core/git-access.c b/core/git-access.c
|
||||
index 3688cb90c..9997fc8fd 100644
|
||||
--- a/core/git-access.c
|
||||
+++ b/core/git-access.c
|
||||
@@ -359,10 +359,10 @@ static int try_to_git_merge(git_repository *repo, git_reference **local_p, git_r
|
||||
}
|
||||
|
||||
git_merge_init_options(&merge_options, GIT_MERGE_OPTIONS_VERSION);
|
||||
-#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR > 23
|
||||
- merge_options.flags = GIT_MERGE_FIND_RENAMES;
|
||||
-#else
|
||||
+#if !LIBGIT2_VER_MAJOR && LIBGIT2_VER_MINOR <= 22
|
||||
merge_options.tree_flags = GIT_MERGE_TREE_FIND_RENAMES;
|
||||
+#else
|
||||
+ merge_options.flags = GIT_MERGE_FIND_RENAMES;
|
||||
#endif
|
||||
merge_options.file_favor = GIT_MERGE_FILE_FAVOR_UNION;
|
||||
merge_options.rename_threshold = 100;
|
||||
--
|
||||
2.25.1
|
||||
|
@ -4,13 +4,13 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "4.9.3";
|
||||
version = "4.9.6";
|
||||
|
||||
subsurfaceSrc = (fetchFromGitHub {
|
||||
owner = "Subsurface-divelog";
|
||||
owner = "Subsurface";
|
||||
repo = "subsurface";
|
||||
rev = "v${version}";
|
||||
sha256 = "1i07f7appifx9j205x5a7ng01wsipxr6n9a3692pm60jli2nsir5";
|
||||
sha256 = "1w1ak0fi6ljhg2jc4mjqyrbpax3iawrnsaqq6ls7qdzrhi37rggf";
|
||||
fetchSubmodules = true;
|
||||
});
|
||||
|
||||
@ -39,13 +39,13 @@ let
|
||||
googlemaps = stdenv.mkDerivation rec {
|
||||
pname = "googlemaps";
|
||||
|
||||
version = "2017-12-18";
|
||||
version = "2018-06-02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vladest";
|
||||
repo = "googlemaps";
|
||||
rev = "79f3511d60dc9640de02a5f24656094c8982b26d";
|
||||
sha256 = "11334w0bnfb97sv23vvj2b5hcwvr0171hxldn91jms9y12l5j15d";
|
||||
rev = "54a357f9590d9cf011bf1713589f66bad65e00eb";
|
||||
sha256 = "159kslp6rj0qznzxijppwvv8jnswlfgf2pw4x8ladi8vp6bzxnzi";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ qmake ];
|
||||
@ -78,9 +78,6 @@ in stdenv.mkDerivation {
|
||||
|
||||
src = subsurfaceSrc;
|
||||
|
||||
# remove with the 4.10 release
|
||||
patches = [ ./0001-core-fix-libgit-ifdef-to-handle-libgit2-v1.0-and-onw.patch ];
|
||||
|
||||
buildInputs = [
|
||||
libdc googlemaps
|
||||
curl grantlee libgit2 libssh2 libusb-compat-0_1 libxml2 libxslt libzip
|
||||
|
Loading…
Reference in New Issue
Block a user