aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gvfs-add-support-for-libplist-2.2.patch
blob: 250eef2c8b042d2818a9ac5763d9ca924af2f1a6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Source: https://gitlab.gnome.org/GNOME/gvfs/-/commit/13551f3f40d41f1357126ac5a26d0fa012cd8123

Note: This change should be incorporated into stable version 1.46.x of gvfs.

From 13551f3f40d41f1357126ac5a26d0fa012cd8123 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 16 Jun 2020 13:28:35 +0200
Subject: [PATCH] afc: Add support for libplist-2.2

Which changed name from libplist to libplist-2.0 to embed its API
version number in the library name.
---
 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 1750f65ca..187bfd55f 100644
--- a/meson.build
+++ b/meson.build
@@ -357,7 +357,10 @@ config_h.set('HAVE_LOGIND', enable_logind)
 enable_afc = get_option('afc')
 if enable_afc
   libimobiledevice_dep = dependency('libimobiledevice-1.0', version: '>= 1.2')
-  libplist_dep = dependency('libplist', version: '>= 0.15')
+  libplist_dep = dependency('libplist-2.0', required: false)
+  if not libplist_dep.found()
+    libplist_dep = dependency('libplist', version: '>= 0.15')
+  endif
 endif
 
 # *** Check if we should build with GOA volume monitor ***
-- 
GitLab