From: pbui <pbui@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] iwd: update to 1.10.
Date: Mon, 30 Nov 2020 20:40:09 +0100 [thread overview]
Message-ID: <20201130194009.KikWX9iO-6jO92jbL7JXln56d8LKQG6LrehAzd-PXoU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26824@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
There is an updated pull request by pbui against master on the void-packages repository
https://github.com/pbui/void-packages iwd
https://github.com/void-linux/void-packages/pull/26824
iwd: update to 1.10.
- Built for x86_64, x86_64-musl.
- Tested on x86_64 with WPA2 network.
- Added new patches to ell to make it build for musl.
- Removed dhcp-fix patch (included upstream)
A patch file from https://github.com/void-linux/void-packages/pull/26824.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-iwd-26824.patch --]
[-- Type: text/x-diff, Size: 6004 bytes --]
From c09586dca2c5be5432c3f05ea3c97f3db29e242f Mon Sep 17 00:00:00 2001
From: Peter Bui <pbui@github.bx612.space>
Date: Mon, 30 Nov 2020 09:12:34 -0500
Subject: [PATCH 1/2] ell: update to 0.35.
- Add patch to replace rawmemchr with memchar for musl
- Add patch to include linux/types.h for __be16 and __be32 types
- Add checking capability
---
srcpkgs/ell/patches/linux-types.patch | 10 ++++++++++
srcpkgs/ell/patches/musl-rawmemchr.patch | 14 ++++++++++++++
srcpkgs/ell/template | 9 +++++++--
3 files changed, 31 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/ell/patches/linux-types.patch
create mode 100644 srcpkgs/ell/patches/musl-rawmemchr.patch
diff --git a/srcpkgs/ell/patches/linux-types.patch b/srcpkgs/ell/patches/linux-types.patch
new file mode 100644
index 00000000000..a3b6baa3cef
--- /dev/null
+++ b/srcpkgs/ell/patches/linux-types.patch
@@ -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>
diff --git a/srcpkgs/ell/patches/musl-rawmemchr.patch b/srcpkgs/ell/patches/musl-rawmemchr.patch
new file mode 100644
index 00000000000..e6c8e7bc9ea
--- /dev/null
+++ b/srcpkgs/ell/patches/musl-rawmemchr.patch
@@ -0,0 +1,14 @@
+--- 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)
diff --git a/srcpkgs/ell/template b/srcpkgs/ell/template
index bdf4f40c3b2..427104e5e16 100644
--- a/srcpkgs/ell/template
+++ b/srcpkgs/ell/template
@@ -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}"
From 3c22e9b93d212b2e3e478ff78c3f13fdc77a3b2c Mon Sep 17 00:00:00 2001
From: Peter Bui <pbui@github.bx612.space>
Date: Mon, 30 Nov 2020 09:18:12 -0500
Subject: [PATCH 2/2] iwd: update to 1.10.
- Drop unnecessary musl-rawmemchr patch.
---
srcpkgs/iwd/patches/dhcp-fix.patch | 32 ------------------------
srcpkgs/iwd/patches/musl-rawmemchr.patch | 14 -----------
srcpkgs/iwd/template | 6 ++---
3 files changed, 3 insertions(+), 49 deletions(-)
delete mode 100644 srcpkgs/iwd/patches/dhcp-fix.patch
delete mode 100644 srcpkgs/iwd/patches/musl-rawmemchr.patch
diff --git a/srcpkgs/iwd/patches/dhcp-fix.patch b/srcpkgs/iwd/patches/dhcp-fix.patch
deleted file mode 100644
index e3213323c30..00000000000
--- a/srcpkgs/iwd/patches/dhcp-fix.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 974ceb60c946b8b0183875131464335f91e9d6de Mon Sep 17 00:00:00 2001
-From: Denis Kenzior <denkenz@gmail.com>
-Date: Tue, 29 Sep 2020 16:09:31 -0500
-Subject: dhcp: Allow DOMAIN_NAME options with trailing NULL
-
----
- ell/dhcp-lease.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/ell/dhcp-lease.c b/ell/dhcp-lease.c
-index e93c618..ac90c6a 100644
---- ell/dhcp-lease.c
-+++ ell/dhcp-lease.c
-@@ -111,6 +111,15 @@ struct l_dhcp_lease *_dhcp_lease_parse_options(struct dhcp_message_iter *iter)
- if (memchr(v, 0, l - 1))
- goto error;
-
-+ /*
-+ * RFC2132 doesn't say whether ending NULLs are present
-+ * or not. However, section 2 recommends that trailing
-+ * NULLs should not be used but must not be treated
-+ * as an error
-+ */
-+ if (l_get_u8(v + l - 1) == 0)
-+ l -= 1;
-+
- if (!l_utf8_validate(v, l, NULL))
- goto error;
-
---
-cgit 1.2.3-1.el7
-
diff --git a/srcpkgs/iwd/patches/musl-rawmemchr.patch b/srcpkgs/iwd/patches/musl-rawmemchr.patch
deleted file mode 100644
index 9b027bc7028..00000000000
--- a/srcpkgs/iwd/patches/musl-rawmemchr.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/wiphy.c.orig 2019-11-16 09:09:02.009699886 -0500
-+++ src/wiphy.c 2019-11-16 09:25:25.188776792 -0500
-@@ -500,7 +500,11 @@
-
- if (out_num)
- *out_num =
-+#if defined(__GLIBC__)
- (uint8_t *) rawmemchr(wiphy->supported_rates[band], 0) -
-+#else
-+ (uint8_t *) memchr(wiphy->supported_rates[band], 0, SIZE_MAX) -
-+#endif
- wiphy->supported_rates[band];
-
- return wiphy->supported_rates[band];
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index c147de23de8..aa7e24ffb1d 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -1,7 +1,7 @@
# Template file for 'iwd'
pkgname=iwd
-version=1.9
-revision=3
+version=1.10
+revision=1
build_style=gnu-configure
configure_args="--disable-systemd-service --enable-pie
--enable-external-ell --enable-dbus-policy --enable-wired"
@@ -15,7 +15,7 @@ license="LGPL-2.1-or-later"
homepage="https://iwd.wiki.kernel.org/"
changelog="https://git.kernel.org/pub/scm/network/wireless/iwd.git/plain/ChangeLog"
distfiles="${KERNEL_SITE}/network/wireless/${pkgname}-${version}.tar.xz"
-checksum=1e6803885280da343805ad9997d604e1719c434266b83f1afffe210d55dfaea9
+checksum=94781d7435f1822dd55ae6abe8091e04db4c69abd2e800669981a1a75512e463
make_dirs="/var/lib/iwd 0600 root root
/var/lib/ead 0600 root root
/etc/iwd 755 root root"
next prev parent reply other threads:[~2020-11-30 19:40 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 14:25 [PR PATCH]  " pbui
2020-11-30 14:33 ` [PR REVIEW] " ericonr
2020-11-30 14:33 ` ericonr
2020-11-30 14:33 ` ericonr
2020-11-30 14:38 ` pbui
2020-11-30 14:42 ` ericonr
2020-11-30 15:01 ` [PR REVIEW] " pbui
2020-11-30 17:06 ` ericonr
2020-11-30 17:07 ` ericonr
2020-11-30 17:20 ` [PR PATCH] [Updated] " pbui
2020-11-30 17:21 ` [PR REVIEW] " pbui
2020-11-30 17:21 ` pbui
2020-11-30 17:22 ` pbui
2020-11-30 19:30 ` ericonr
2020-11-30 19:40 ` pbui [this message]
2020-11-30 19:40 ` pbui
2020-11-30 20:32 ` [PR REVIEW] " ericonr
2020-11-30 21:21 ` ahesford
2020-11-30 23:03 ` [PR PATCH] [Updated] " pbui
2020-11-30 23:06 ` [PR REVIEW] " pbui
2020-11-30 23:20 ` ericonr
2020-12-01 21:31 ` ericonr
2020-12-01 23:33 ` ahesford
2020-12-01 23:40 ` [PR PATCH] [Merged]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201130194009.KikWX9iO-6jO92jbL7JXln56d8LKQG6LrehAzd-PXoU@z \
--to=pbui@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).