summaryrefslogtreecommitdiffstats
path: root/abs/extra/libimobiledevice
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/libimobiledevice')
-rw-r--r--abs/extra/libimobiledevice/HOME-segfault.patch14
-rw-r--r--abs/extra/libimobiledevice/PKGBUILD18
-rw-r--r--abs/extra/libimobiledevice/swig-version-check.patch14
3 files changed, 22 insertions, 24 deletions
diff --git a/abs/extra/libimobiledevice/HOME-segfault.patch b/abs/extra/libimobiledevice/HOME-segfault.patch
new file mode 100644
index 0000000..e48e6cb
--- /dev/null
+++ b/abs/extra/libimobiledevice/HOME-segfault.patch
@@ -0,0 +1,14 @@
+The patch fixes segfault when both $XDG_CONFIG_HOME and $HOME are unset
+Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
+--- src/userpref.c.orig 2012-06-04 17:04:57.387303630 +0300
++++ src/userpref.c 2012-06-04 17:06:05.741301627 +0300
+@@ -125,6 +125,9 @@
+ const char *cdir = getenv("XDG_CONFIG_HOME");
+ if (!cdir) {
+ cdir = getenv("HOME");
++ if (!cdir) {
++ cdir="/root";
++ }
+ strcpy(__config_dir, cdir);
+ strcat(__config_dir, DIR_SEP_S);
+ strcat(__config_dir, ".config");
diff --git a/abs/extra/libimobiledevice/PKGBUILD b/abs/extra/libimobiledevice/PKGBUILD
index 81a8003..bc921ac 100644
--- a/abs/extra/libimobiledevice/PKGBUILD
+++ b/abs/extra/libimobiledevice/PKGBUILD
@@ -1,27 +1,23 @@
-# $Id$
+# $Id: PKGBUILD 164989 2012-08-08 00:24:19Z tomegun $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Gabriel Martinez < reitaka at gmail dot com >
pkgname=libimobiledevice
-pkgver=1.1.1
-pkgrel=3
+pkgver=1.1.4
+pkgrel=2
pkgdesc="Is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
url="http://libimobiledevice.org/"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
-depends=('usbmuxd' 'libplist' 'gnutls' 'libgcrypt')
-makedepends=('python2' 'swig')
+depends=('usbmuxd' 'gnutls' 'libgcrypt')
options=('!libtool')
source=(http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2
- swig-version-check.patch)
-md5sums=('cdc13037e822d9ac2e109536701d153a'
- '8bb215e36fe0e08a72332c108c7842cc')
+ HOME-segfault.patch)
build() {
cd "$pkgname-$pkgver"
- # SWIG version check is wrong (still not fixed upstream)
- patch -p1 -i ../swig-version-check.patch
+ patch -p0 < "$srcdir/HOME-segfault.patch"
PYTHON=/usr/bin/python2 ./configure --prefix=/usr
make
@@ -31,3 +27,5 @@ package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
+md5sums=('3f28cbc6a2e30d34685049c0abde5183'
+ '0de709dbf8e79d0b00cca06f5e61d57c')
diff --git a/abs/extra/libimobiledevice/swig-version-check.patch b/abs/extra/libimobiledevice/swig-version-check.patch
deleted file mode 100644
index c56b095..0000000
--- a/abs/extra/libimobiledevice/swig-version-check.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -Nur libimobiledevice-1.0.3.old/configure libimobiledevice-1.0.3/configure
---- libimobiledevice-1.0.3.old/configure 2010-10-04 07:38:37.000000000 -0700
-+++ libimobiledevice-1.0.3/configure 2010-10-08 05:43:05.466686656 -0700
-@@ -3477,9 +3477,7 @@
- if test -z "$available_patch" ; then
- available_patch=0
- fi
-- if test $available_major -ne $required_major \
-- -o $available_minor -ne $required_minor \
-- -o $available_patch -lt $required_patch ; then
-+ if test $available_major -lt $required_major ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.21 is required. You have $swig_version. You should look at http://www.swig.org" >&5
- $as_echo "$as_me: WARNING: SWIG version >= 1.3.21 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
- SWIG=false