mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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: b342790a37c891cf83f24d4f96060e2d0bd79c07)
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>
This commit is contained in:
committed by
Richard Purdie
parent
9fecba6b89
commit
dc62b99bdf
@@ -35,9 +35,9 @@ PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
|
|||||||
LEAD_SONAME = "libharfbuzz.so"
|
LEAD_SONAME = "libharfbuzz.so"
|
||||||
|
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
# If no tools are installed due to PACKAGECONFIG then this directory is
|
# If no tools are installed due to PACKAGECONFIG then this directory might
|
||||||
#still installed, so remove it to stop packaging wanings.
|
# still be installed, so remove it to stop packaging warnings.
|
||||||
rmdir --ignore-fail-on-non-empty ${D}${bindir}
|
[ ! -d ${D}${bindir} ] || rmdir --ignore-fail-on-non-empty ${D}${bindir}
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"
|
FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"
|
||||||
|
|||||||
Reference in New Issue
Block a user