Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-misc/basket/files/, kde-misc/basket/
Date: Sun, 01 Mar 2020 22:02:34
Message-Id: 1583100131.34f8f2b233bcf437aa08a2d48838645b50e77d16.asturm@gentoo
1 commit: 34f8f2b233bcf437aa08a2d48838645b50e77d16
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 22:01:05 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 22:02:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34f8f2b2
7
8 kde-misc/basket: Fix build against >=dev-libs/libgit2-0.99
9
10 Thanks-to: Dan Goodliffe <gentoo <AT> randomdan.homeip.net>
11 Closes: https://bugs.gentoo.org/710832
12 Package-Manager: Portage-2.3.90, Repoman-2.3.20
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 kde-misc/basket/basket-2.49b.ebuild | 5 +++-
16 .../files/basket-2.49b-libgit2-0.99-compat.patch | 32 ++++++++++++++++++++++
17 2 files changed, 36 insertions(+), 1 deletion(-)
18
19 diff --git a/kde-misc/basket/basket-2.49b.ebuild b/kde-misc/basket/basket-2.49b.ebuild
20 index 6a9fcbf3e6a..bbcfe4d1009 100644
21 --- a/kde-misc/basket/basket-2.49b.ebuild
22 +++ b/kde-misc/basket/basket-2.49b.ebuild
23 @@ -57,7 +57,10 @@ DEPEND="${RDEPEND}
24 >=dev-qt/qtconcurrent-${QTMIN}:5
25 "
26
27 -PATCHES=( "${FILESDIR}/${P}-xdg_mime_install_dir.patch" )
28 +PATCHES=(
29 + "${FILESDIR}/${P}-xdg_mime_install_dir.patch"
30 + "${FILESDIR}/${P}-libgit2-0.99-compat.patch" # bug #710832
31 +)
32
33 src_prepare() {
34 ecm_src_prepare
35
36 diff --git a/kde-misc/basket/files/basket-2.49b-libgit2-0.99-compat.patch b/kde-misc/basket/files/basket-2.49b-libgit2-0.99-compat.patch
37 new file mode 100644
38 index 00000000000..94793a090f1
39 --- /dev/null
40 +++ b/kde-misc/basket/files/basket-2.49b-libgit2-0.99-compat.patch
41 @@ -0,0 +1,32 @@
42 +From 094580f207b5ba9f44e9af00834f9c93f06fb440 Mon Sep 17 00:00:00 2001
43 +From: Dan Goodliffe <dan@××××××××××××××××.net>
44 +Date: Thu, 27 Feb 2020 18:04:21 +0000
45 +Subject: [PATCH] Use LIBGIT2_VER_MINOR for version test
46 +
47 +Addresses compatibility with libgit2-0.99
48 +---
49 + src/application.cpp | 4 ++--
50 + 1 file changed, 2 insertions(+), 2 deletions(-)
51 +
52 +diff --git a/src/application.cpp b/src/application.cpp
53 +index c52fb574..81fcd121 100644
54 +--- a/src/application.cpp
55 ++++ b/src/application.cpp
56 +@@ -56,7 +56,7 @@ Application::Application(int &argc, char **argv)
57 +
58 +
59 + #ifdef WITH_LIBGIT2
60 +- #if LIBGIT2_SOVERSION >= 22
61 ++ #if LIBGIT2_VER_MINOR >= 22
62 + git_libgit2_init();
63 + #else
64 + git_threads_init();
65 +@@ -67,7 +67,7 @@ Application::Application(int &argc, char **argv)
66 + Application::~Application()
67 + {
68 + #ifdef WITH_LIBGIT2
69 +- #if LIBGIT2_SOVERSION >= 22
70 ++ #if LIBGIT2_VER_MINOR >= 22
71 + git_libgit2_shutdown();
72 + #else
73 + git_threads_shutdown();