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