summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/harfbuzz
diff options
context:
space:
mode:
authorPetr Kubizňák <kubiznak@2n.com>2023-01-04 12:45:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-12 23:08:50 +0000
commitf2df3e0681ec15b984cb45cc76ba10c9a49483e8 (patch)
tree813da8202847d2038bcacde00accbf0f4b273657 /meta/recipes-graphics/harfbuzz
parent0eb87dcfdff4173d554ab6dbe32857df8a010753 (diff)
downloadpoky-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.bb6
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"
30LEAD_SONAME = "libharfbuzz.so" 30LEAD_SONAME = "libharfbuzz.so"
31 31
32do_install:append() { 32do_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
38FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" 38FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"