* [meta-oe][PATCH] mariadb: clean the empty /lib dir
@ 2020-04-15 13:18 Yu, Mingli
0 siblings, 0 replies; only message in thread
From: Yu, Mingli @ 2020-04-15 13:18 UTC (permalink / raw)
To: openembedded-devel
From: Mingli Yu <mingli.yu@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.yu@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-15 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 13:18 [meta-oe][PATCH] mariadb: clean the empty /lib dir Yu, Mingli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.