Package Details: libimobiledevice-git 1:1.3.0.r240.gd1a98e0-1

Git Clone URL: https://aur.archlinux.org/libimobiledevice-git.git (read-only, click to copy)
Package Base: libimobiledevice-git
Description: Library that talks the protocols to support iPhone and iPod Touch devices on Linux
Upstream URL: http://www.libimobiledevice.org/
Licenses: LGPL-2.1-or-later
Conflicts: libimobiledevice
Provides: libimobiledevice, libimobiledevice-1.0.so
Submitter: None
Maintainer: intelfx
Last Packager: intelfx
Votes: 72
Popularity: 0.025054
First Submitted: 2010-03-25 16:57 (UTC)
Last Updated: 2024-06-28 08:45 (UTC)

Dependencies (11)

Required by (40)

Sources (1)

Latest Comments

1 2 3 4 5 6 .. 14 Next › Last »

kysh commented on 2025-05-21 12:29 (UTC)

Confirmed that the patch from @ufo_driver works to successfully build, compile and install the package.

ufo_driver commented on 2025-05-18 22:44 (UTC)

I applied the following patch and it compiled successfully. It is like for some reason it doesn't detect PY_MAJOR_VERSION and it thinks we are trying to compile it with Python 2.

diff --git a/cython/debugserver.pxi b/cython/debugserver.pxi
index a3b7d1e..0ec864c 100644
--- a/cython/debugserver.pxi
+++ b/cython/debugserver.pxi
@@ -45,11 +45,7 @@ cdef class DebugServerError(BaseError):

 # from http://stackoverflow.com/a/17511714
 # https://github.com/libimobiledevice/libimobiledevice/pull/198
-from cpython cimport PY_MAJOR_VERSION
-if PY_MAJOR_VERSION <= 2:
-    from cpython.string cimport PyString_AsString
-else:
-    from cpython.bytes cimport PyBytes_AsString as PyString_AsString
+from cpython.bytes cimport PyBytes_AsString as PyString_AsString
 cdef char ** to_cstring_array(list_str):
     if not list_str:
         return NULL

kysh commented on 2025-05-18 09:45 (UTC) (edited on 2025-05-18 11:48 (UTC) by kysh)

@ZachBacon ran into the exact same issue and just wanted to add a bit more context

make[2]: Leaving directory '/tmp/libimobiledevice-git/src/libimobiledevice/include'
Making all in cython
make[2]: Entering directory '/tmp/libimobiledevice-git/src/libimobiledevice/cython'
/usr/bin/cython -I/usr/include/plist/cython -I../src -o imobiledevice.c imobiledevice.pyx
warning: imobiledevice.pxd:9:4: Exception already a builtin Cython type

Error compiling Cython file:
------------------------------------------------------------
...

# from http://stackoverflow.com/a/17511714
# https://github.com/libimobiledevice/libimobiledevice/pull/198
from cpython cimport PY_MAJOR_VERSION
if PY_MAJOR_VERSION <= 2:
    from cpython.string cimport PyString_AsString
    ^
------------------------------------------------------------

debugserver.pxi:50:4: 'cpython/string.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...

# from http://stackoverflow.com/a/17511714
# https://github.com/libimobiledevice/libimobiledevice/pull/198
from cpython cimport PY_MAJOR_VERSION
if PY_MAJOR_VERSION <= 2:
    from cpython.string cimport PyString_AsString
    ^
------------------------------------------------------------

debugserver.pxi:50:4: 'cpython/string/PyString_AsString.pxd' not found
make[2]: *** [Makefile:811: imobiledevice.c] Error 1
make[2]: Leaving directory '/tmp/libimobiledevice-git/src/libimobiledevice/cython'
make[1]: *** [Makefile:477: all-recursive] Error 1
make[1]: Leaving directory '/tmp/libimobiledevice-git/src/libimobiledevice'
make: *** [Makefile:407: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Were you able to resolve?

ZachBacon commented on 2025-05-16 06:05 (UTC) (edited on 2025-05-16 06:07 (UTC) by ZachBacon)

I seem to be running into an issue regarding the cpython portion

Error compiling Cython file:
------------------------------------------------------------
...

# from http://stackoverflow.com/a/17511714
# https://github.com/libimobiledevice/libimobiledevice/pull/198
from cpython cimport PY_MAJOR_VERSION
if PY_MAJOR_VERSION <= 2:
    from cpython.string cimport PyString_AsString
    ^
------------------------------------------------------------

debugserver.pxi:50:4: 'cpython/string.pxd' not found

Error compiling Cython file:
------------------------------------------------------------
...

# from http://stackoverflow.com/a/17511714
# https://github.com/libimobiledevice/libimobiledevice/pull/198
from cpython cimport PY_MAJOR_VERSION
if PY_MAJOR_VERSION <= 2:
    from cpython.string cimport PyString_AsString
    ^
------------------------------------------------------------

debugserver.pxi:50:4: 'cpython/string/PyString_AsString.pxd' not found
make[2]: *** [Makefile:811: imobiledevice.c] Error 1

intelfx commented on 2024-09-04 14:22 (UTC)

@BeniBensn: the error message tells exactly what is wrong.

BeniBensn commented on 2024-09-04 08:56 (UTC)

Can someone help me here?

...
checking for libplist-2.0 >= 2.6.0... no
configure: error: Package requirements (libplist-2.0 >= 2.6.0) were not met:

Package dependency requirement 'libplist-2.0 >= 2.6.0' could not be satisfied.
Package 'libplist-2.0' has version '2.4.0-7-g5461eda', required version is '>= 2.6.0'

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libplist_CFLAGS
and libplist_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...

I even tried to remove libimobiledevice-git and wanted to use libimobiledevice instead but this is also not possible...

Tblue commented on 2024-06-27 22:42 (UTC)

Please add libtatsu-git to the depends of this package. Build fails with:

checking for libtatsu-1.0 >= 1.0.3... no
configure: error: Package requirements (libtatsu-1.0 >= 1.0.3) were not met:

Package 'libtatsu-1.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libtatsu_CFLAGS
and libtatsu_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'libimobiledevice-git-1:1.3.0.r224.g77c727b-1': 
error: packages failed to build: libimobiledevice-git-1:1.3.0.r224.g77c727b-1

Installing libtatsu-git fixes the issue.

phyks commented on 2024-05-29 09:50 (UTC)

As of today, build fails with the following error:

userpref.c: In function 'pair_record_get_item_as_key_data':
userpref.c:1141:42: error: passing argument 2 of 'plist_get_data_val' from incompatible pointer type [-Wincompatible-pointer-types]
 1141 |                 plist_get_data_val(node, &buffer, &length);
      |                                          ^~~~~~~
      |                                          |
      |                                          char **

intelfx commented on 2024-04-03 23:01 (UTC) (edited on 2024-04-03 23:02 (UTC) by intelfx)

@garywh1te I had this too, even after today's PKGBUILD update switching the makedepends from cython0 to cython.

For me, removing cython0 and installing cython fixed the issue: the AUR package now successfully builds.

I don't know if there's a way to make this AUR build "prefer" cython over cython0 if both are installed, and I don't care because I have no other package (make)depending on cython0. So maybe my solution won't fly for you, but maybe it will.

No, there is not. Side effects of of user system configuration is out of scope of AUR; users are advised to build packages in a clean chroot to avoid this issue and similar.

garywh1te commented on 2024-04-03 22:49 (UTC)

@ronjouch everything works great after today's update. Thanks to @intelfx ! Yesterday removing cython0 and installing cython did not solve the problem