Skip to contentSkip to conversation

iwd: Update to 1.4

PATCH Superseded Robert Joslyn 3 participants 7 messages Jan 31, 2020 – Feb 3, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 iwd: Update to 1.4

dbus is not required to compile, but is expected at run time. Move it to RDEPENDS.

From upstream changelog:

ver 1.4:
Fix issue with handling Crypto-Binding and invalid MACs. Fix issue with handling change station error results. Fix issue with handling DNS resolving installations.

ver 1.3:
Fix issue with handling EAP-GTC and password requests. Fix issue with handling Crypto-Binding TLV for PEAPv0. Fix issue with handling key installation and PEAP Phase 2. Fix issue with handling externally triggered scan requests. Fix issue with handling RCPI calculation for RRM requests.

ver 1.2:
Fix issue with handling scan requests while connecting. Fix issue with handling scan duration for RRM requests. Fix issue with handling parent TSF value for RRM requests.

ver 1.1:
Fix issue with simple configuration support checks. Fix issue with handling TLS tunnel and PEAPv0. Add support for radio resource management.

---
 ...am-Avoid-redirection-of-input-and-output-fi.patch | 12 +++++-------
 .../iwd/{iwd_1.0.bb => iwd_1.4.bb}                   |  6 ++++--
 2 files changed, 9 insertions(+), 9 deletions(-)
 rename meta-oe/recipes-connectivity/iwd/{iwd_1.0.bb => iwd_1.4.bb} (90%)
meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch +5 -7
index 93ef007f8..80126a870 100644
@@ -1,4 +1,4 @@
-From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00 2001
+From 46fc0e197598579dc05e42f137e84f86a9b926e9 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 4 Nov 2019 16:38:04 -0800
 Subject: [PATCH] Makefile.am: Avoid redirection of input and output files
@@ -15,26 +15,24 @@ make[1]: *** [Makefile:3544: monitor/iwmon.1] Error 1
 Upstream-Status: Pending
 
 Signed-off-by: Khem Raj <[email protected]>
+
 ---
  Makefile.am | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile.am b/Makefile.am
-index 823b7d02..1bd0005c 100644
+index 8c69d9f4..35a25fc0 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
+@@ -629,8 +629,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
  		< $< > $@
  
  if RUN_RST2MAN
 -RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \
--			--no-datestamp < $< > $@
+-			--no-datestamp $< $@
 +RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
 +			$(AM_V_GEN)$(RST2MAN) --strict --no-raw \
 +			--no-generator --no-datestamp $< $@
  else
  RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
  		{ echo "Generated manual page $@ does not exist"; false; }
--- 
-2.24.0
-
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +4 -2
similarity index 90%
rename from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb
rename to meta-oe/recipes-connectivity/iwd/iwd_1.4.bb
index cc34ca221..49fc45a74 100644
@@ -4,12 +4,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
 
 inherit autotools pkgconfig systemd python3native
 
-DEPENDS = "ell readline dbus python3-docutils-native"
+DEPENDS = "ell readline python3-docutils-native"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
           "
-SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
+SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
@@ -32,6 +32,8 @@ FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_uni
 
 SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"
 
+RDEPENDS_${PN} = "dbus"
+
 RRECOMMENDS_${PN} = "\
     kernel-module-pkcs7-message \
     kernel-module-pkcs8-key-parser \
Signature · 1 line
2.24.1
#1 lore raw

PATCH 2/3 iwd: Add PACKAGECONFIG options

Make it easier to disable optional client, monitor, and man page components and their dependencies. A user may want to disable the client to avoid the use of GPLv3 readline.

---
 meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +12 -2
index 49fc45a74..a023c0d28 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
 
 inherit autotools pkgconfig systemd python3native
 
-DEPENDS = "ell readline python3-docutils-native"
+DEPENDS = "ell"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
@@ -12,7 +12,15 @@ SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
 SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ??= " \
+    client \
+    monitor \
+    manual-pages \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
+PACKAGECONFIG[client] = "--enable-client,--disable-client,readline"
+PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor"
+PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native"
 PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
 PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
 PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
@@ -26,6 +34,8 @@ do_configure_prepend () {
 do_install_append() {
     mkdir --parents ${D}${docdir}/${BPN}
     install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
+    # If client and monitor are disabled, bindir is empty, causing a QA error
+    rmdir --ignore-fail-on-non-empty ${D}/${bindir}
 }
 
 FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/"
Signature · 1 line
2.24.1
#2 lore raw

Re: [meta-oe][PATCH 2/3] iwd: Add PACKAGECONFIG options

Quoted 27 lines · Robert Joslyn

Make it easier to disable optional client, monitor, and man page components and their dependencies. A user may want to disable the client to avoid the use of GPLv3 readline.

---
 meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +1 -1
index 49fc45a74..a023c0d28 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
 
 inherit autotools pkgconfig systemd python3native
 
-DEPENDS = "ell readline python3-docutils-native"
+DEPENDS = "ell"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
@@ -12,7 +12,15 @@ SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
 SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ · line 23

Quoted 10 lines
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +9 -1
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+PACKAGECONFIG ??= " \
+    client \
+    monitor \
+    manual-pages \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
+PACKAGECONFIG[client] = "--enable-client,--disable-client,readline"
+PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor"
+PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native"

If you make this PACKAGECONFIG[manpages], inherit manpages and drop it from the default PACKAGECONFIG you'll automatically get documentation driven by the api-documentation distro feature. Though at that possibly it should be a separate commit.

Maybe just /manual-pages/manpages/ as that's a common name?

Quoted 20 lines
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +2 -1
 PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
 PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
 PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
@@ -26,6 +34,8 @@ do_configure_prepend () {
 do_install_append() {
     mkdir --parents ${D}${docdir}/${BPN}
     install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
+    # If client and monitor are disabled, bindir is empty, causing a QA error
+    rmdir --ignore-fail-on-non-empty ${D}/${bindir}
 }
 
 FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/"
--

2.24.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 1 line
Alex Kiernan
#3 lore raw

Re: [meta-oe][PATCH 2/3] iwd: Add PACKAGECONFIG options

Quoted 51 lines · Alex Kiernan
Quoted 42 lines · Robert Joslyn

Make it easier to disable optional client, monitor, and man page components and their dependencies. A user may want to disable the client
to avoid the use of GPLv3 readline.

---
 meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
meta- renamed from meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +0 -0

oe/recipes-connectivity/iwd/iwd_1.4.bb
index 49fc45a74..a023c0d28 100644

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +0 -0
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "

file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"

inherit autotools pkgconfig systemd python3native

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +1 -1
-DEPENDS = "ell readline python3-docutils-native"
+DEPENDS = "ell"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-

output-fi.patch \

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +0 -1
@@ -12,7 +12,15 @@ SRC_URI =
 "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
 SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd',

d)}"

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +9 -0
+PACKAGECONFIG ??= " \
+    client \
+    monitor \
+    manual-pages \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+"
+PACKAGECONFIG[client] = "--enable-client,--disable-client,readline"
+PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor"
+PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-
Quoted 1 line

manual-pages,python3-docutils-native"

If you make this PACKAGECONFIG[manpages], inherit manpages and drop it from the default PACKAGECONFIG you'll automatically get documentation driven by the api-documentation distro feature. Though at that possibly it should be a separate commit.

Quoted 1 line

Maybe just /manual-pages/manpages/ as that's a common name?

That's a good idea. I wasn't familiar with that class, but I'll add that in the v2.

Thanks,
Robert

Quoted 25 lines
Quoted 23 lines

PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" PACKAGECONFIG[systemd] = "--with-systemd-
unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +1 -0
@@ -26,6 +34,8 @@ do_configure_prepend () {
 do_install_append() {
     mkdir --parents ${D}${docdir}/${BPN}
     install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
+    # If client and monitor are disabled, bindir is empty, causing a

QA error
+ rmdir --ignore-fail-on-non-empty ${D}/${bindir}
}

FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d
${systemd_unitdir}/network/"
--
2.24.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw

PATCH 3/3 iwd: Update formatting

In reply to Robert Joslyn

Try to conform better to the style guide.

---
 meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 35 +++++++++++++--------
 1 file changed, 22 insertions(+), 13 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +22 -13
index a023c0d28..b32656595 100644
@@ -1,17 +1,19 @@
-DESCRIPTION = "Wireless daemon for Linux"
+SUMMARY = "Wireless daemon for Linux"
+HOMEPAGE = "https://iwd.wiki.kernel.org/"
 LICENSE = "LGPL-2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
 
-inherit autotools pkgconfig systemd python3native
-
 DEPENDS = "ell"
 
-SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
-           file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
-          "
+SRC_URI = " \
+    git://git.kernel.org/pub/scm/network/wireless/iwd.git \
+    file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
+"
 SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
+inherit autotools pkgconfig systemd python3native
+
 PACKAGECONFIG ??= " \
     client \
     monitor \
@@ -25,22 +27,29 @@ PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
 PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
 PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
 
-EXTRA_OECONF += "--enable-external-ell"
+EXTRA_OECONF = "--enable-external-ell"
 
-do_configure_prepend () {
-    mkdir -p ${S}/build-aux
+SYSTEMD_SERVICE_${PN} = " \
+    iwd.service \
+    ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)} \
+"
+
+do_configure_prepend() {
+    install -d ${S}/build-aux
 }
 
 do_install_append() {
-    mkdir --parents ${D}${docdir}/${BPN}
+    install -d ${D}${docdir}/${BPN}
     install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
     # If client and monitor are disabled, bindir is empty, causing a QA error
     rmdir --ignore-fail-on-non-empty ${D}/${bindir}
 }
 
-FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/"
-
-SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"
+FILES_${PN} += " \
+    ${datadir}/dbus-1 \
+    ${nonarch_libdir}/modules-load.d \
+    ${systemd_unitdir}/network \
+"
 
 RDEPENDS_${PN} = "dbus"
 
Signature · 1 line
2.24.1
#5 lore raw
In reply to Robert Joslyn

fails on musl/aarch64

https://errors.yoctoproject.org/Errors/Details/338733/

/usr/src/debug/iwd/1.4-r0/build/../git/src/wiphy.c:503: undefined reference to `rawmemchr'

perhaps something like this will help avoid it

https://github.com/linux-audit/audit-userspace/pull/25/commits/8f2a6788b78dd6b219545aacbd42e2f84df8c71a

Quoted 115 lines · Robert Joslyn

dbus is not required to compile, but is expected at run time. Move it to RDEPENDS.

From upstream changelog:

ver 1.4:
Fix issue with handling Crypto-Binding and invalid MACs. Fix issue with handling change station error results. Fix issue with handling DNS resolving installations.

ver 1.3:
Fix issue with handling EAP-GTC and password requests. Fix issue with handling Crypto-Binding TLV for PEAPv0. Fix issue with handling key installation and PEAP Phase 2. Fix issue with handling externally triggered scan requests. Fix issue with handling RCPI calculation for RRM requests.

ver 1.2:
Fix issue with handling scan requests while connecting. Fix issue with handling scan duration for RRM requests. Fix issue with handling parent TSF value for RRM requests.

ver 1.1:
Fix issue with simple configuration support checks. Fix issue with handling TLS tunnel and PEAPv0. Add support for radio resource management.

---
 ...am-Avoid-redirection-of-input-and-output-fi.patch | 12 +++++-------
 .../iwd/{iwd_1.0.bb => iwd_1.4.bb}                   |  6 ++++--
 2 files changed, 9 insertions(+), 9 deletions(-)
 rename meta-oe/recipes-connectivity/iwd/{iwd_1.0.bb => iwd_1.4.bb} (90%)
meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch +5 -7
index 93ef007f8..80126a870 100644
@@ -1,4 +1,4 @@
-From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00 2001
+From 46fc0e197598579dc05e42f137e84f86a9b926e9 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Mon, 4 Nov 2019 16:38:04 -0800
 Subject: [PATCH] Makefile.am: Avoid redirection of input and output files
@@ -15,26 +15,24 @@ make[1]: *** [Makefile:3544: monitor/iwmon.1] Error 1
 Upstream-Status: Pending
 
 Signed-off-by: Khem Raj <[email protected]>
+
 ---
  Makefile.am | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile.am b/Makefile.am
-index 823b7d02..1bd0005c 100644
+index 8c69d9f4..35a25fc0 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
+@@ -629,8 +629,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
                < $< > $@
 
  if RUN_RST2MAN
 -RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \
--                      --no-datestamp < $< > $@
+-                      --no-datestamp $< $@
 +RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
 +                      $(AM_V_GEN)$(RST2MAN) --strict --no-raw \
 +                      --no-generator --no-datestamp $< $@
  else
  RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
                { echo "Generated manual page $@ does not exist"; false; }
---
-2.24.0
-
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +4 -3
similarity index 90%
rename from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb
rename to meta-oe/recipes-connectivity/iwd/iwd_1.4.bb
index cc34ca221..49fc45a74 100644
@@ -4,12 +4,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
 
 inherit autotools pkgconfig systemd python3native
 
-DEPENDS = "ell readline dbus python3-docutils-native"
+DEPENDS = "ell readline python3-docutils-native"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
           "
-SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
+SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
@@ -32,6 +32,8 @@ FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_uni
 
 SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"
 
+RDEPENDS_${PN} = "dbus"
+
 RRECOMMENDS_${PN} = "\
     kernel-module-pkcs7-message \
     kernel-module-pkcs8-key-parser \
--

2.24.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 11 lines · Khem Raj

fails on musl/aarch64

https://errors.yoctoproject.org/Errors/Details/338733/

/usr/src/debug/iwd/1.4-r0/build/../git/src/wiphy.c:503: undefined reference to `rawmemchr'

perhaps something like this will help avoid it

https://github.com/linux-audit/audit-userspace/pull/25/commits/8f2a6788b78dd6b219545aacbd42e2f84df8c71a

Should be able to replace rawmemchr with memchr (and a size of -1). I'll check with upstream to see if this is something they'll accept and then send a v2.

Thanks,
Robert

Quoted 138 lines
Quoted 136 lines · Robert Joslyn

dbus is not required to compile, but is expected at run time. Move it to
RDEPENDS.

From upstream changelog:

ver 1.4:
Fix issue with handling Crypto-Binding and invalid MACs. Fix issue with handling change station error results. Fix issue with handling DNS resolving installations.

ver 1.3:
Fix issue with handling EAP-GTC and password requests. Fix issue with handling Crypto-Binding TLV for PEAPv0. Fix issue with handling key installation and PEAP Phase 2. Fix issue with handling externally triggered scan requests. Fix issue with handling RCPI calculation for RRM requests.

ver 1.2:
Fix issue with handling scan requests while connecting. Fix issue with handling scan duration for RRM requests. Fix issue with handling parent TSF value for RRM requests.

ver 1.1:
Fix issue with simple configuration support checks. Fix issue with handling TLS tunnel and PEAPv0. Add support for radio resource management.

---
 ...am-Avoid-redirection-of-input-and-output-fi.patch | 12 +++++----
---
 .../iwd/{iwd_1.0.bb => iwd_1.4.bb}                   |  6 ++++--
 2 files changed, 9 insertions(+), 9 deletions(-)
 rename meta-oe/recipes-connectivity/iwd/{iwd_1.0.bb => iwd_1.4.bb}

(90%)

(quoted diff) +0 -0

Avoid-redirection-of-input-and-output-fi.patch b/meta-oe/recipes- connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and- output-fi.patch
index 93ef007f8..80126a870 100644
--- a/meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid- redirection-of-input-and-output-fi.patch
+++ b/meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid- redirection-of-input-and-output-fi.patch

(quoted diff) +0 -1
@@ -1,4 +1,4 @@
-From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00

2001
+From 46fc0e197598579dc05e42f137e84f86a9b926e9 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Mon, 4 Nov 2019 16:38:04 -0800
Subject: [PATCH] Makefile.am: Avoid redirection of input and output
files

(quoted diff) +0 -0
@@ -15,26 +15,24 @@ make[1]: *** [Makefile:3544: monitor/iwmon.1]

Error 1
Upstream-Status: Pending

meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch +2 -2
+
 ---
  Makefile.am | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile.am b/Makefile.am
-index 823b7d02..1bd0005c 100644
+index 8c69d9f4..35a25fc0 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) &&

$(SED) \
+@@ -629,8 +629,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) &&

$(SED) \
                < $< > $@

if RUN_RST2MAN
-RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-
generator \
-- --no-datestamp < $< > $@
+- --no-datestamp $< $@
+RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(AM_V_GEN)$(RST2MAN) --strict --no-raw \
+ --no-generator --no-datestamp $< $@
else

  RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
                { echo "Generated manual page $@ does not exist";

false; }
---
-2.24.0

meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch +0 -1
-
meta- renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +0 -0

oe/recipes-connectivity/iwd/iwd_1.4.bb similarity index 90%
rename from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb rename to meta-oe/recipes-connectivity/iwd/iwd_1.4.bb index cc34ca221..49fc45a74 100644

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +0 -0
@@ -4,12 +4,12 @@ LIC_FILES_CHKSUM = "

file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"

inherit autotools pkgconfig systemd python3native

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +1 -1
-DEPENDS = "ell readline dbus python3-docutils-native"
+DEPENDS = "ell readline python3-docutils-native"
 
 SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
            file://0001-Makefile.am-Avoid-redirection-of-input-and-
output-fi.patch \
           "
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +1 -1
-SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
+SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261"
 S = "${WORKDIR}/git"
 
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd',

d)}"

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +0 -0
@@ -32,6 +32,8 @@ FILES_${PN} += "${datadir}/dbus-1

${nonarch_libdir}/modules-load.d ${systemd_uni

SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECON
FIG', 'wired', 'ead.service', '', d)}"

meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +2 -1
+RDEPENDS_${PN} = "dbus"
+
 RRECOMMENDS_${PN} = "\
     kernel-module-pkcs7-message \
     kernel-module-pkcs8-key-parser \
--

2.24.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel