build: Require new gudev to fix battery detection

gudev 234 had bugs converting cached sysfs properties to boolean which
caused upower to think that batteries were not there, as the "present"
sysfs attribute was misread.

Require at least gudev 235 to avoid battery detection being broken.

Closes: #149
This commit is contained in:
Bastien Nocera 2021-08-10 12:55:51 +02:00
parent 26c90728c3
commit e66c7da2d2

View file

@ -198,7 +198,7 @@ AC_SUBST(BACKEND, "$with_backend")
# only need GUdev on linux
have_idevice=no
if test x$with_backend = xlinux; then
PKG_CHECK_MODULES(GUDEV, [gudev-1.0 >= 234])
PKG_CHECK_MODULES(GUDEV, [gudev-1.0 >= 235])
AC_ARG_WITH(idevice, AS_HELP_STRING([--without-idevice],[Build without libimobiledevice]),
with_idevice=$withval,with_idevice=yes)
LIBPLIST_DEP=libplist