]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
meson: don't fail if no .pyc exists
authorYang Xu <yang.xu@mediatek.com>
Wed, 6 Sep 2023 11:03:34 +0000 (11:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Sep 2023 06:52:34 +0000 (07:52 +0100)
If PYTHONDONTWRITEBYTECODE set to 1, do_install:append will fail because
no .pyc is removed.

Add -f flag to prevent command fail.

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/meson/meson_1.1.1.bb

index 500e13775f4f852a130f7bd477e296159907cf6f..dd97f93aef620ee522dbec9a1dfdfd792c78d6e3 100644 (file)
@@ -30,7 +30,7 @@ do_install:append () {
        # Upstream is discussing ways to solve the issue properly, until then let's
        # just not install the problematic files.
        # More info: http://benno.id.au/blog/2013/01/15/python-determinism
-       rm ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython*
+       rm -f ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython*
 }
 
 BBCLASSEXTEND = "native nativesdk"