From: Mingli Yu <mingli...@windriver.com> When usrmerge is enabled in DISTRO_FEATURES, there comes below error: ERROR: mariadb-10.4.12-r0 do_package_qa: QA Issue: mariadb-leftovers package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge] ERROR: mariadb-10.4.12-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
It is because empty /lib dir exists in mariadb-leftovers as below: $ rpm -qpl mariadb-leftovers-10.4.12-r0.core2_64.rpm |grep ^/lib /lib So remove the empty /lib dir to fix the above error. Signed-off-by: Mingli Yu <mingli...@windriver.com> --- meta-oe/recipes-dbs/mysql/mariadb.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 5ff273e..2387c2a 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc @@ -170,6 +170,9 @@ do_install() { fi if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then mv ${D}/lib/security ${D}/${libdir} + if [ "`ls -A ${D}/lib`" = "" ]; then + rm -rf ${D}/lib + fi fi } -- 2.7.4
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#83942): https://lists.openembedded.org/g/openembedded-devel/message/83942 Mute This Topic: https://lists.openembedded.org/mt/73031565/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-