From 6e0e9c059a1e9edcc7d6dcc23548d59db8714111 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 19 Jan 2023 15:18:16 -0800 Subject: [PATCH] libtirpc: Check if file exists before operating on it In some cases (e.g. mingw) this file may not be installed (From OE-Core rev: f8dba1173dc42dd72c231fc291b2f7b44d828905) Signed-off-by: Khem Raj Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 547f3a13ee9268bbdd439c96108ba1fe9ab78873) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/recipes-extended/libtirpc/libtirpc_1.3.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.3.2.bb b/meta/recipes-extended/libtirpc/libtirpc_1.3.2.bb index 66bc4ecdd1..6980135a92 100644 --- a/meta/recipes-extended/libtirpc/libtirpc_1.3.2.bb +++ b/meta/recipes-extended/libtirpc/libtirpc_1.3.2.bb @@ -21,7 +21,7 @@ inherit autotools pkgconfig EXTRA_OECONF = "--disable-gssapi" do_install:append() { - chown root:root ${D}${sysconfdir}/netconfig + test -e ${D}${sysconfdir}/netconfig && chown root:root ${D}${sysconfdir}/netconfig } BBCLASSEXTEND = "native nativesdk"