@@ -14,7 +14,6 @@ SRC_URI = "git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=ma
file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
file://dhcpcd.service \
file://dhcpcd@.service \
- file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \
"
SRCREV = "3d62ba74108e0c84d54c3c7b2b7d34ef7c86d321"
@@ -57,6 +56,13 @@ do_configure() {
}
do_install:append () {
+ # avoid multilib conflict in dhcpcd.8
+ sed -i -e 's#^\.It Pa ${libdir}/dhcpcd/dev$#.It Pa /usr/<libdir>/dhcpcd/dev#' \
+ ${D}${mandir}/man8/dhcpcd.8
+ if grep -qF '${libdir}/' ${D}${mandir}/man8/dhcpcd.8; then
+ bbfatal "dhcpcd.8 still contains ${libdir}, update the sed above"
+ fi
+
# install systemd unit files
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${UNPACKDIR}/dhcpcd*.service ${D}${systemd_system_unitdir}
deleted file mode 100644
@@ -1,43 +0,0 @@
-From b5c1b4f2ecc0831c4ddb36dce09d86582e36a168 Mon Sep 17 00:00:00 2001
-From: Lei Maohui <leimaohui@fujitsu.com>
-Date: Fri, 10 Mar 2023 03:48:46 +0000
-Subject: [PATCH] dhcpcd.8: Fix conflict error when enable multilib.
-
-Error: Transaction test error:
- file /usr/share/man/man8/dhcpcd.8 conflicts between attempted
- installs of dhcpcd-doc-9.4.1-r0.cortexa57 and
- lib32-dhcpcd-doc-9.4.1-r0.armv7ahf_neon
-
-The differences between the two files are as follows:
-@@ -821,7 +821,7 @@
- If you always use the same options, put them here.
- .It Pa /usr/libexec/dhcpcd-run-hooks
- Bourne shell script that is run to configure or de-configure an interface.
--.It Pa /usr/lib64/dhcpcd/dev
-+.It Pa /usr/lib/dhcpcd/dev
- Linux
- .Pa /dev
- management modules.
-
-It is just a man file, there is no necessary to manage multiple
-versions.
-
-Upstream-Status: Inappropriate [oe specific]
-Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
----
- src/dhcpcd.8.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/dhcpcd.8.in b/src/dhcpcd.8.in
-index 26d37772..1b13dc4e 100644
---- a/src/dhcpcd.8.in
-+++ b/src/dhcpcd.8.in
-@@ -825,7 +825,7 @@ Configuration file for dhcpcd.
- If you always use the same options, put them here.
- .It Pa @SCRIPT@
- Bourne shell script that is run to configure or de-configure an interface.
--.It Pa @LIBDIR@/dhcpcd/dev
-+.It Pa /usr/<libdir>/dhcpcd/dev
- Linux
- .Pa /dev
- management modules.
dhcpcd.8 embeds ${libdir}, so the man page differs between multilib variants and dhcpcd-doc conflicts with lib32-dhcpcd-doc. Replace the patch with a sed in do_install that rewrites the path to /usr/<libdir>. The installed man page is the same as with the patch. Unlike a patch, a sed that stops matching fails silently, so a grep check fails the build if any ${libdir} path is left in dhcpcd.8. Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- .../dhcpcd/dhcpcd_10.5.3.bb | 8 +++- ...-conflict-error-when-enable-multilib.patch | 43 ------------------- 2 files changed, 7 insertions(+), 44 deletions(-) delete mode 100644 meta/recipes-connectivity/dhcpcd/files/0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch