diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2020-06-02 11:06:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:31 +0100 |
commit | e075a77c1435ad776a8dfc2f66061b61191f7a29 (patch) | |
tree | cc389d3d9cf5be0b76ed302bea2ced60451eb266 /meta/recipes-graphics/cairo/cairo_1.16.0.bb | |
parent | 251aa561362881c0154c9fcd755790b1d9f892a5 (diff) | |
download | poky-e075a77c1435ad776a8dfc2f66061b61191f7a29.tar.gz |
cairo: Do not try to remove nonexistent directories
Commit 0e1f8fa0 (bitbake.conf: propagate 'opengl' DISTRO_FEATURE to
native/nativesdk from target) changed the default PACKAGECONFIG for
native and nativesdk so that it becomes empty unless "x11" is in
DISTRO_FEATURES since "trace" was also removed (propbably
unintentionally). This highlighted than an empty PACKAGECONFIG would
lead to a build failure since /usr/bin is never created under these
conditions, but the recipe still tried to remove it.
(From OE-Core rev: 9bb2268677ac8f0c97433bf1f04555abe88028a9)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/cairo/cairo_1.16.0.bb')
-rw-r--r-- | meta/recipes-graphics/cairo/cairo_1.16.0.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-graphics/cairo/cairo_1.16.0.bb b/meta/recipes-graphics/cairo/cairo_1.16.0.bb index 092c77b826..195a66b37d 100644 --- a/meta/recipes-graphics/cairo/cairo_1.16.0.bb +++ b/meta/recipes-graphics/cairo/cairo_1.16.0.bb | |||
@@ -70,8 +70,10 @@ do_install_append () { | |||
70 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* | 70 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* |
71 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* | 71 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* |
72 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* | 72 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* |
73 | rmdir -p --ignore-fail-on-non-empty ${D}${bindir} | 73 | [ ! -d ${D}${bindir} ] || |
74 | rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/cairo | 74 | rmdir -p --ignore-fail-on-non-empty ${D}${bindir} |
75 | [ ! -d ${D}${libdir}/cairo ] || | ||
76 | rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/cairo | ||
75 | } | 77 | } |
76 | 78 | ||
77 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" | 79 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" |