]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jan 2023 22:06:47 +0000 (22:06 +0000)
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>
meta/recipes-extended/libtirpc/libtirpc_1.3.3.bb

index 8c6c20733c9c5b9694729c92a62663f353d19af9..f55e0b0ed1d3afdebb7a382eb8ca971345844a15 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"