Skip to contentSkip to conversation

dhcpcd: fix SECCOMP for i386

PATCH New Yi Zhao 1 participant 2 messages Dec 22, 2020

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/2 dhcpcd: fix SECCOMP for i386

The dhcpcd doesn't work on Intel 32bit platform. Backport a patch to fix the issue.

---
 .../dhcpcd/dhcpcd_9.3.4.bb                    |  1 +
 ...x-i386-for-SECCOMP-as-it-just-uses-s.patch | 57 +++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 meta/recipes-connectivity/dhcpcd/files/0001-privsep-Fix-Linux-i386-for-SECCOMP-as-it-just-uses-s.patch
meta/recipes-connectivity/dhcpcd/dhcpcd_9.3.4.bb +1 -0
index cd81f17773..69a07760b4 100644
@@ -14,6 +14,7 @@ UPSTREAM_CHECK_URI = "https://roy.marples.name/downloads/dhcpcd/"
 SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \
            file://0001-remove-INCLUDEDIR-to-prevent-build-issues.patch \
            file://0001-Linux-Fix-privsep-build-by-including-sys-termios.h-f.patch \
+           file://0001-privsep-Fix-Linux-i386-for-SECCOMP-as-it-just-uses-s.patch \
            file://dhcpcd.service \
            file://[email protected] \
            "
meta/recipes-connectivity/dhcpcd/files/0001-privsep-Fix-Linux-i386-for-SECCOMP-as-it-just-uses-s.patch new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 inetutils: add dnsdomainname to ALTERNATIVE

The dnsdomainname can also be provided by busybox and net-tools. Also move it from ${bindir} to ${base_bindir} because the command provided by busybox or net-tools is located here.

---
 meta/recipes-connectivity/inetutils/inetutils_1.9.4.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-connectivity/inetutils/inetutils_1.9.4.bb +3 -1
index adf6d4414e..09a196ad9d 100644
@@ -71,6 +71,7 @@ do_install_append () {
          install -m 0755 -d ${D}${base_bindir}
          mv ${D}${bindir}/ping* ${D}${base_bindir}/
          mv ${D}${bindir}/hostname ${D}${base_bindir}/
+         mv ${D}${bindir}/dnsdomainname ${D}${base_bindir}/
     fi
     mv ${D}${bindir}/ifconfig ${D}${base_sbindir}/
     mv ${D}${libexecdir}/syslogd ${D}${base_sbindir}/
@@ -118,8 +119,9 @@ PACKAGES =+ "${PN}-tftpd-dbg ${PN}-telnetd-dbg ${PN}-rshd-dbg"
 NOAUTOPACKAGEDEBUG = "1"
 
 ALTERNATIVE_PRIORITY = "79"
-ALTERNATIVE_${PN} = "whois"
+ALTERNATIVE_${PN} = "whois dnsdomainname"
 ALTERNATIVE_LINK_NAME[uucpd]  = "${sbindir}/in.uucpd"
+ALTERNATIVE_LINK_NAME[dnsdomainname]  = "${base_bindir}/dnsdomainname"
 
 ALTERNATIVE_PRIORITY_${PN}-logger = "60"
 ALTERNATIVE_${PN}-logger = "logger"
Signature · 1 line
2.25.1