diff --git a/srcpkgs/ofono/patches/fix-TEMP_FAILURE_RETRY.patch b/srcpkgs/ofono/patches/fix-TEMP_FAILURE_RETRY.patch new file mode 100644 index 00000000000..19539edd084 --- /dev/null +++ b/srcpkgs/ofono/patches/fix-TEMP_FAILURE_RETRY.patch @@ -0,0 +1,21 @@ +diff --git a/drivers/mbimmodem/mbim.c b/drivers/mbimmodem/mbim.c +index 54b18ac..5f924ca 100644 +--- drivers/mbimmodem/mbim.c ++++ drivers/mbimmodem/mbim.c +@@ -41,6 +41,15 @@ + #define HEADER_SIZE (sizeof(struct mbim_message_header) + \ + sizeof(struct mbim_fragment_header)) + ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__ \ ++ ({ long int __result; \ ++ do __result = (long int) (expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; })) ++#endif ++ + const uint8_t mbim_uuid_basic_connect[] = { + 0xa2, 0x89, 0xcc, 0x33, 0xbc, 0xbb, 0x8b, 0x4f, 0xb6, 0xb0, + 0x13, 0x3e, 0xc2, 0xaa, 0xe6, 0xdf + diff --git a/srcpkgs/ofono/template b/srcpkgs/ofono/template index 2c7ada06831..56175021885 100644 --- a/srcpkgs/ofono/template +++ b/srcpkgs/ofono/template @@ -1,18 +1,22 @@ # Template file for 'ofono' pkgname=ofono -version=1.25 +version=1.26 revision=1 build_style=gnu-configure -configure_args="--disable-bluez4" +configure_args="--disable-bluez4 --enable-external-ell" conf_files="/etc/ofono/phonesim.conf /etc/dbus-1/system.d/ofono.conf" hostmakedepends="pkg-config" -makedepends="libglib-devel eudev-libudev-devel mobile-broadband-provider-info" +makedepends="libglib-devel eudev-libudev-devel mobile-broadband-provider-info ell-devel" short_desc="Infrastructure for building mobile telephony (GMS/UTMS) applications" maintainer="Daniel Santana " license="GPL-2.0-or-later" homepage="https://01.org/ofono" distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz" -checksum=eb011fcd3080e93f3a56f96be60350b6595a8b5f36b61646312ba41b0bcb0d75 +checksum=92e18c20c889addda648aefbb5e3ab1238007d88b18449f407a96533afe18026 + +pre_configure() { + rm -rf ell +} post_install() { vsv ofonod