Skip to content

Commit 780343c

Browse files
committed
qcom-adreno: fix invalid negation in conditionals
Replace the invalid 'not' with '!' in conditionals Use '!' instead of 'not' in conditionals since it is not a valid shell operator; as seen in the build logs: run.do_install.114409: 143: not: not found run.do_install.114409: 147: not: not found The conditionals always evaluated to false, so when a user does not have 'x11' or 'wayland' in DISTRO_FEATURES, this causes the do_package task to fail, e.g.: qcom-adreno: Files/directories were installed but not shipped in any package: /usr/lib/libeglSubDriverX11.so.1 Signed-off-by: Stanislas Bach <stanislas@bach.engineering>
1 parent 40af8f5 commit 780343c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

recipes-graphics/adreno/qcom-adreno_1.855.4.bb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ do_install () {
5656
install -d ${D}/${libdir}
5757
cp -r ${S}/usr/lib/* ${D}/${libdir}/
5858

59-
if not ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then
59+
if ! ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then
6060
rm ${D}/${libdir}/libeglSubDriverX11.so*
6161
fi
6262

63-
if not ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'true', 'false', d)}; then
63+
if ! ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'true', 'false', d)}; then
6464
rm ${D}/${libdir}/libeglSubDriverWayland.so*
6565
fi
6666

0 commit comments

Comments
 (0)