Skip to contentSkip to conversation

package/ofono: bump to version 1.28

PATCH New Nicolas Serafini 2 participants 2 messages Jan 24, 2019 – Jan 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ofono: bump to version 1.28

Add patch to fix musl TEMP_FAILURE_RETRY error

---
 package/ofono/0002-fix-musl-compile.patch | 37 +++++++++++++++++++++++
 package/ofono/ofono.hash                  |  4 ++-
 package/ofono/ofono.mk                    |  2 +-
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 package/ofono/0002-fix-musl-compile.patch
package/ofono/0002-fix-musl-compile.patch new file +37 -0
new file mode 100644
index 0000000000..369fb71791
@@ -0,0 +1,37 @@
+From 4a1d114fa3a5d6bef1f71222787c1f6c3a952284 Mon Sep 17 00:00:00 2001
+From: Nicolas Serafini <[email protected]>
+Date: Thu, 24 Jan 2019 10:11:42 +0100
+Subject: [PATCH] mbim: add optional copy of TEMP_FAILURE_RETRY macro (fix musl
+ compile)
+
+TEMP_FAILURE_RETRY is not available on musl.
+
+Signed-off-by: Nicolas Serafini <[email protected]>
+---
+ drivers/mbimmodem/mbim.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/drivers/mbimmodem/mbim.c b/drivers/mbimmodem/mbim.c
+index 54b18acf..4b040528 100644
+--- a/drivers/mbimmodem/mbim.c
++++ b/drivers/mbimmodem/mbim.c
+@@ -37,6 +37,16 @@
+ #include "mbim-message.h"
+ #include "mbim-private.h"
+ 
++/* taken from glibc unistd.h for musl support */
++#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
++
+ #define MAX_CONTROL_TRANSFER 4096
+ #define HEADER_SIZE (sizeof(struct mbim_message_header) + \
+ 					sizeof(struct mbim_fragment_header))
+-- 
+2.20.1
+
package/ofono/ofono.hash +3 -1
index 37933f126b..2dbb9986c7 100644
@@ -1,2 +1,4 @@
 # From https://www.kernel.org/pub/linux/network/ofono/sha256sums.asc
-sha256 a6b021cda0b444b772897cd637d5f455857fb5819b62c279a8302b44f9c7f2c3  ofono-1.21.tar.xz
+sha256 93bb2cedef54f897dd5200e22b072a6e38b5d9b44be57eebbbe8d513f0beb0e4	ofono-1.28.tar.xz
+# Locally computed
+sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4	COPYING
package/ofono/ofono.mk +1 -1
index b4b7915a30..0552a181fd 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OFONO_VERSION = 1.21
+OFONO_VERSION = 1.28
 OFONO_SOURCE = ofono-$(OFONO_VERSION).tar.xz
 OFONO_SITE = $(BR2_KERNEL_MIRROR)/linux/network/ofono
 OFONO_LICENSE = GPL-2.0
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/ofono: bump to version 1.28

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nicolas" == Nicolas Serafini <[email protected]> writes:

Add patch to fix musl TEMP_FAILURE_RETRY error

---
 package/ofono/0002-fix-musl-compile.patch | 37 +++++++++++++++++++++++
 package/ofono/ofono.hash                  |  4 ++-
 package/ofono/ofono.mk                    |  2 +-
 3 files changed, 41 insertions(+), 2 deletions(-)
 create mode 100644 package/ofono/0002-fix-musl-compile.patch
package/ofono/0002-fix-musl-compile.patch new file +0 -0
new file mode 100644
index 0000000000..369fb71791

package/ofono/0002-fix-musl-compile.patch line 9

Quoted 9 lines
package/ofono/0002-fix-musl-compile.patch new file +9 -0
@@ -0,0 +1,37 @@
+From 4a1d114fa3a5d6bef1f71222787c1f6c3a952284 Mon Sep 17 00:00:00 2001
+From: Nicolas Serafini <[email protected]>
+Date: Thu, 24 Jan 2019 10:11:42 +0100
+Subject: [PATCH] mbim: add optional copy of TEMP_FAILURE_RETRY macro (fix musl
+ compile)
+
+TEMP_FAILURE_RETRY is not available on musl.
+
+Signed-off-by: Nicolas Serafini <[email protected]>

Committed, thanks. Do not forget to submit the patch upstream.

Signature · 1 line
Bye, Peter Korsgaard