[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/15: gnu: libjami: Prepare for libgit2 1.8.4.
From: |
guix-commits |
Subject: |
13/15: gnu: libjami: Prepare for libgit2 1.8.4. |
Date: |
Wed, 18 Dec 2024 07:25:12 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 011bf3280b823d2ae1d2fb5c1402c380e0e6320e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Dec 18 11:26:02 2024 +0100
gnu: libjami: Prepare for libgit2 1.8.4.
* gnu/packages/patches/libjami-libgit2-compatibility.patch: New file.
* gnu/packages/jami.scm (libjami)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
Change-Id: I6a87d47f9a0ec1663b7ad3459960e9aaaf4bf562
---
gnu/local.mk | 1 +
gnu/packages/jami.scm | 3 ++-
.../patches/libjami-libgit2-compatibility.patch | 23 ++++++++++++++++++++++
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index a177e0d2c0..9cdd26bd2a 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1700,6 +1700,7 @@ dist_patch_DATA =
\
%D%/packages/patches/libgnomeui-utf8.patch \
%D%/packages/patches/libgrss-CVE-2016-2001.patch \
%D%/packages/patches/libjami-ac-config-files.patch \
+ %D%/packages/patches/libjami-libgit2-compatibility.patch \
%D%/packages/patches/libjxr-fix-function-signature.patch \
%D%/packages/patches/libjxr-fix-typos.patch \
%D%/packages/patches/libofa-ftbfs-1.diff \
diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index 9c5d448609..25510b9df5 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -154,7 +154,8 @@
(base32
"1bw0laj93w4pvlxsr5abz59805ypbmg21z5393yzm82j4d35cfyr"))
(patches (search-patches
- "libjami-ac-config-files.patch"))))
+ "libjami-ac-config-files.patch"
+ "libjami-libgit2-compatibility.patch"))))
(outputs '("out" "bin" "debug")) ;"bin' contains jamid
(build-system gnu-build-system)
(arguments
diff --git a/gnu/packages/patches/libjami-libgit2-compatibility.patch
b/gnu/packages/patches/libjami-libgit2-compatibility.patch
new file mode 100644
index 0000000000..20896deac4
--- /dev/null
+++ b/gnu/packages/patches/libjami-libgit2-compatibility.patch
@@ -0,0 +1,23 @@
+Libgit2 1.8.0 went for 'git_commit *const' but 1.8.4 reverted back to
+'const git_commit *'.
+
+--- a/src/jamidht/conversationrepository.cpp
++++ b/src/jamidht/conversationrepository.cpp
+@@ -783,7 +783,7 @@ ConversationRepository::Impl::createMergeCommit(git_index*
index, const std::str
+ // Commit
+ git_buf to_sign = {};
+ // Check if the libgit2 library version is 1.8.0 or higher
+-#if( LIBGIT2_VER_MAJOR > 1 ) || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR
>= 8 )
++#if( LIBGIT2_VER_MAJOR > 1 ) || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR
>= 8 && LIBGIT2_VER_REVISION <= 3)
+ // For libgit2 version 1.8.0 and above
+ git_commit* const parents_ptr[2] {parents[0].get(), parents[1].get()};
+ #else
+@@ -1870,7 +1870,7 @@ ConversationRepository::Impl::commit(const std::string&
msg, bool verifyDevice)
+
+ git_buf to_sign = {};
+ // Check if the libgit2 library version is 1.8.0 or higher
+-#if( LIBGIT2_VER_MAJOR > 1 ) || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR
>= 8 )
++#if( LIBGIT2_VER_MAJOR > 1 ) || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR
>= 8 && LIBGIT2_VER_REVISION <= 3)
+ // For libgit2 version 1.8.0 and above
+ git_commit* const head_ref[1] = {head_commit.get()};
+ #else
- branch master updated (8c2e41f717 -> 3e096a6bab), guix-commits, 2024/12/18
- 02/15: gnu: Add julia-terminterface., guix-commits, 2024/12/18
- 03/15: gnu: Add julia-simdtypes., guix-commits, 2024/12/18
- 09/15: gnu: Add julia-initialvalues., guix-commits, 2024/12/18
- 12/15: gnu: squashfuse: Fix cross compiling., guix-commits, 2024/12/18
- 10/15: gnu: book-faif: Add missing dependency., guix-commits, 2024/12/18
- 14/15: gnu: libgit2: Update to 1.8.4., guix-commits, 2024/12/18
- 01/15: gnu: isc-dhcp: Fix cross compilation for arm32, guix-commits, 2024/12/18
- 08/15: gnu: libusb-compat: Fix upstream hash mismatch., guix-commits, 2024/12/18
- 04/15: gnu: julia-changesofvariables: Update to 0.1.9., guix-commits, 2024/12/18
- 13/15: gnu: libjami: Prepare for libgit2 1.8.4.,
guix-commits <=
- 05/15: gnu: Add julia-argcheck., guix-commits, 2024/12/18
- 06/15: gnu: julia-multivariatepolynomials: Update to 0.5.7., guix-commits, 2024/12/18
- 15/15: environment: Suppress all output with --verbosity=0, guix-commits, 2024/12/18
- 11/15: doc: Add note on nsncd as a replacement for nscd., guix-commits, 2024/12/18
- 07/15: lint: Check for more types of custom 'check phases., guix-commits, 2024/12/18