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-26 23:39:06 +0000 |
| commit | d2b253072bc29286de687f0626b76297b66d8eae (patch) | |
| tree | 3fafb6073a0560eb67cae1097f7d7d0162f644c3 /meta | |
| parent | c786012b44e2a0952a10c813731af0ef508170e7 (diff) | |
| download | poky-d2b253072bc29286de687f0626b76297b66d8eae.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: 687f371fc99833b878f3cfdb006aca9e238d9909)
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>
(cherry picked from commit 21261072cbe0056e85550a0710de142fab8943e4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz_5.1.0.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_5.1.0.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_5.1.0.bb index 4905e8e2ad..8e06acc011 100644 --- a/meta/recipes-graphics/harfbuzz/harfbuzz_5.1.0.bb +++ b/meta/recipes-graphics/harfbuzz/harfbuzz_5.1.0.bb | |||
| @@ -32,9 +32,9 @@ PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset" | |||
| 32 | LEAD_SONAME = "libharfbuzz.so" | 32 | LEAD_SONAME = "libharfbuzz.so" |
| 33 | 33 | ||
| 34 | do_install:append() { | 34 | do_install:append() { |
| 35 | # If no tools are installed due to PACKAGECONFIG then this directory is | 35 | # If no tools are installed due to PACKAGECONFIG then this directory might |
| 36 | #still installed, so remove it to stop packaging wanings. | 36 | # still be installed, so remove it to stop packaging warnings. |
| 37 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | 37 | [ ! -d ${D}${bindir} ] || rmdir --ignore-fail-on-non-empty ${D}${bindir} |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" | 40 | FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" |
