Date: Saturday, May 6, 2023 @ 16:59:20
  Author: heftig
Revision: 476870

1.3.0-8: libplist 2.3.0

Added:
  libimobiledevice/trunk/libplist-2.3.0.diff
Modified:
  libimobiledevice/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   13 ++++++++++---
 libplist-2.3.0.diff |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-06 16:44:23 UTC (rev 476869)
+++ PKGBUILD    2023-05-06 16:59:20 UTC (rev 476870)
@@ -4,7 +4,7 @@
 
 pkgname=libimobiledevice
 pkgver=1.3.0
-pkgrel=7
+pkgrel=8
 pkgdesc="Library that talks the protocols to support iPhone and iPod Touch 
devices on Linux"
 url="https://libimobiledevice.org/";
 arch=(x86_64)
@@ -25,8 +25,12 @@
 )
 provides=(libimobiledevice-1.0.so)
 _commit=15f8652126664e3a4b980e5d1c039b9053ce8566
-source=("git+https://github.com/libimobiledevice/libimobiledevice#commit=$_commit";)
-b2sums=('SKIP')
+source=(
+  "git+https://github.com/libimobiledevice/libimobiledevice#commit=$_commit";
+  libplist-2.3.0.diff
+)
+b2sums=('SKIP'
+        
'136390910a57e70c3ce458ab5c6def4e079b7eb4c2946447102078ca511f8d112caf9460c074ecbb6c8a4f526e0aa50015d2f92acf66dbbb666bd007e361ee5e')
 
 pkgver() {
   cd $pkgname
@@ -39,6 +43,9 @@
   # Update ac_python_devel.m4 to newer ax_python_devel.m4
   git cherry-pick -n eea4f1be91
 
+  # Compatibility with libplist 2.3.0
+  git apply -3 ../libplist-2.3.0.diff
+
   NOCONFIGURE=1 ./autogen.sh
 }
 

Added: libplist-2.3.0.diff
===================================================================
--- libplist-2.3.0.diff                         (rev 0)
+++ libplist-2.3.0.diff 2023-05-06 16:59:20 UTC (rev 476870)
@@ -0,0 +1,32 @@
+diff --git i/common/utils.c w/common/utils.c
+index 7f66ec2..7ebe997 100644
+--- i/common/utils.c
++++ w/common/utils.c
+@@ -314,7 +314,7 @@ int plist_read_from_filename(plist_t *plist, const char 
*filename)
+       return 1;
+ }
+ 
+-int plist_write_to_filename(plist_t plist, const char *filename, enum 
plist_format_t format)
++int plist_write_to_filename(plist_t plist, const char *filename, 
plist_format_t format)
+ {
+       char *buffer = NULL;
+       uint32_t length;
+diff --git i/common/utils.h w/common/utils.h
+index 2c3acec..4faa5bd 100644
+--- i/common/utils.h
++++ w/common/utils.h
+@@ -51,13 +51,8 @@ char *generate_uuid(void);
+ void buffer_read_from_filename(const char *filename, char **buffer, uint64_t 
*length);
+ void buffer_write_to_filename(const char *filename, const char *buffer, 
uint64_t length);
+ 
+-enum plist_format_t {
+-      PLIST_FORMAT_XML,
+-      PLIST_FORMAT_BINARY
+-};
+-
+ int plist_read_from_filename(plist_t *plist, const char *filename);
+-int plist_write_to_filename(plist_t plist, const char *filename, enum 
plist_format_t format);
++int plist_write_to_filename(plist_t plist, const char *filename, 
plist_format_t format);
+ 
+ void plist_print_to_stream(plist_t plist, FILE* stream);
+ 

Reply via email to