summaryrefslogtreecommitdiff
path: root/extra/libimobiledevice
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-09 00:02:24 +0000
committerroot <root@rshg054.dnsready.net>2012-08-09 00:02:24 +0000
commita28736b03b50ff37ce2cd0fb2fa1ef2e37508108 (patch)
treead764bf5ccbcea902e6cd4d189364e0411bd67f8 /extra/libimobiledevice
parentef815a5d80eecd4ba0679a376386741c374e0d1b (diff)
Thu Aug 9 00:02:24 UTC 2012
Diffstat (limited to 'extra/libimobiledevice')
-rw-r--r--extra/libimobiledevice/HOME-segfault.patch14
-rw-r--r--extra/libimobiledevice/PKGBUILD12
2 files changed, 22 insertions, 4 deletions
diff --git a/extra/libimobiledevice/HOME-segfault.patch b/extra/libimobiledevice/HOME-segfault.patch
new file mode 100644
index 000000000..e48e6cb42
--- /dev/null
+++ b/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/extra/libimobiledevice/PKGBUILD b/extra/libimobiledevice/PKGBUILD
index b17bff63f..bc921ac16 100644
--- a/extra/libimobiledevice/PKGBUILD
+++ b/extra/libimobiledevice/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id: PKGBUILD 164368 2012-07-31 19:43:16Z eric $
+# $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.4
-pkgrel=1
+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' 'gnutls' 'libgcrypt')
options=('!libtool')
-source=(http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2)
+source=(http://libimobiledevice.org/downloads/$pkgname-$pkgver.tar.bz2
+ HOME-segfault.patch)
build() {
cd "$pkgname-$pkgver"
+ patch -p0 < "$srcdir/HOME-segfault.patch"
+
PYTHON=/usr/bin/python2 ./configure --prefix=/usr
make
}
@@ -24,4 +27,5 @@ package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
-md5sums=('3f28cbc6a2e30d34685049c0abde5183')
+md5sums=('3f28cbc6a2e30d34685049c0abde5183'
+ '0de709dbf8e79d0b00cca06f5e61d57c')