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: lucaceresoli/bug-15201-perf-libtraceevent-missing~1904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547f3a13ee9268bbdd439c96108ba1fe9ab78873;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 --- diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.3.3.bb b/meta/recipes-extended/libtirpc/libtirpc_1.3.3.bb index 8c6c20733c9..f55e0b0ed1d 100644 --- a/meta/recipes-extended/libtirpc/libtirpc_1.3.3.bb +++ b/meta/recipes-extended/libtirpc/libtirpc_1.3.3.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"