ell: update to 0.35.

- Add temporary patch to replace rawmemchr with memchar for musl
- Add patch to include linux/types.h for __be16 and __be32 types
- Add checking capability
This commit is contained in:
Peter Bui 2020-11-30 09:12:34 -05:00 committed by Érico Nogueira Rolim
parent 8d2f8eddfa
commit 088cf3fadd
3 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,10 @@
--- ell/dhcp-server.c.orig 2020-11-30 12:16:40.821110152 -0500
+++ ell/dhcp-server.c 2020-11-30 12:16:55.123140621 -0500
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#include <linux/types.h>
#include <net/ethernet.h>
#include <sys/socket.h>
#include <arpa/inet.h>

View file

@ -0,0 +1,18 @@
This will be addressed in the next upstream release (>1.10) as shown here:
https://git.kernel.org/pub/scm/libs/ell/ell.git/commit/?id=3916c1cc32be205e185a8a56de5cde1b9ec60e81
--- ell/pem.c.orig 2020-11-30 09:02:25.583791998 -0500
+++ ell/pem.c 2020-11-30 09:03:23.548913496 -0500
@@ -224,7 +224,11 @@
/* Check that each header line has a key and a colon */
while (start < end) {
+#if defined(__GLIBC__)
const char *lf = rawmemchr(start, '\n');
+#else
+ const char *lf = memchr(start, '\n', end - start);
+#endif
const char *colon = memchr(start, ':', lf - start);
if (!colon)

View file

@ -1,17 +1,22 @@
# Template file for 'ell'
pkgname=ell
version=0.33
version=0.35
revision=1
build_style=gnu-configure
configure_args="--enable-glib"
hostmakedepends="pkg-config"
makedepends="libglib-devel"
checkdepends="dbus"
short_desc="Linux library for embedded development"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="GPL-2.0-only"
homepage="https://01.org/ell"
distfiles="${KERNEL_SITE}/libs/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=d9e40e641164150394b74b719b9726fc734f24b2cde679cf5f3be6915c34eded
checksum=2bfe9da7781f65f1cb1595a5a068a3ae74d4b68b74f287c6f0c892cfe623913f
do_check() {
dbus-run-session make check
}
ell-devel_package() {
depends="ell-${version}_${revision}"