diff options
author | Petr Kubizňák <kubiznak@2n.com> | 2023-01-04 12:45:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-12 23:08:50 +0000 |
commit | f2df3e0681ec15b984cb45cc76ba10c9a49483e8 (patch) | |
tree | 813da8202847d2038bcacde00accbf0f4b273657 /meta/recipes-graphics/harfbuzz | |
parent | 0eb87dcfdff4173d554ab6dbe32857df8a010753 (diff) | |
download | poky-f2df3e0681ec15b984cb45cc76ba10c9a49483e8.tar.gz |
harfbuzz: remove bindir only if it exists
In some scenarios (e.g. when "glib" removed from PACKAGECONFIG),
"${D}${bindir}" might not exist which caused `rmdir` to fail.
(From OE-Core rev: 21261072cbe0056e85550a0710de142fab8943e4)
Signed-off-by: Petr Kubizňák <kubiznak@2n.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/harfbuzz')
-rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz_6.0.0.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_6.0.0.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_6.0.0.bb index 46ab6a4ca8..ae54bad643 100644 --- a/meta/recipes-graphics/harfbuzz/harfbuzz_6.0.0.bb +++ b/meta/recipes-graphics/harfbuzz/harfbuzz_6.0.0.bb | |||
@@ -30,9 +30,9 @@ PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset" | |||
30 | LEAD_SONAME = "libharfbuzz.so" | 30 | LEAD_SONAME = "libharfbuzz.so" |
31 | 31 | ||
32 | do_install:append() { | 32 | do_install:append() { |
33 | # If no tools are installed due to PACKAGECONFIG then this directory is | 33 | # If no tools are installed due to PACKAGECONFIG then this directory might |
34 | #still installed, so remove it to stop packaging wanings. | 34 | # still be installed, so remove it to stop packaging warnings. |
35 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | 35 | [ ! -d ${D}${bindir} ] || rmdir --ignore-fail-on-non-empty ${D}${bindir} |
36 | } | 36 | } |
37 | 37 | ||
38 | FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" | 38 | FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" |