]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libtirpc: Check if file exists before operating on it
authorKhem Raj <raj.khem@gmail.com>
Thu, 19 Jan 2023 23:18:16 +0000 (15:18 -0800)
committerSteve Sakoman <steve@sakoman.com>
Sat, 4 Feb 2023 14:35:28 +0000 (04:35 -1000)
In some cases (e.g. mingw) this file may not be installed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 547f3a13ee9268bbdd439c96108ba1fe9ab78873)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/libtirpc/libtirpc_1.2.6.bb

index fe4e30e61f95db4a59a551829305a79568b1a5fb..80151ff83a3ea01b2d61f108ad5aec3d36f3b153 100644 (file)
@@ -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"