From: Khem Raj Date: Thu, 19 Jan 2023 23:18:16 +0000 (-0800) Subject: libtirpc: Check if file exists before operating on it X-Git-Tag: 2020-04.23-dunfell~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a764e19736f24b8bf67ea87d58dd74652d6d81c9;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git libtirpc: Check if file exists before operating on it In some cases (e.g. mingw) this file may not be installed 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 --- diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb index fe4e30e61f9..80151ff83a3 100644 --- a/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb +++ b/meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb @@ -22,7 +22,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"