mirror of
https://github.com/thead-yocto-mirror/meta-qt5
synced 2026-06-21 08:52:35 +02:00
qmake5_base: delete *.la files
* they reference workdir and trip sanity check: ERROR: QA Issue: libQt5Sql.la failed sanity test (workdir) in path qtbase/5.5.99+5.6.0-alpha1+gitAUTOINC+f7f4dde80e-r0/sysroot-destdir//usr/lib [la] * I'm intentionally not using remove-libtool.bbclass recently added to oe-core, because many people combine newer meta-qt5 with older oe-core and can be missing this bbclass, I've pending patch to migrate this to remove-libtool.bbclass, will probably merge it after 2.1 or 2.2 release. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -160,20 +160,23 @@ qmake5_base_do_configure () {
|
||||
|
||||
qmake5_base_native_do_install() {
|
||||
oe_runmake install INSTALL_ROOT=${D}
|
||||
find "${D}" -ignore_readdir_race -name "*.la" -delete
|
||||
}
|
||||
|
||||
qmake5_base_nativesdk_do_install() {
|
||||
# Fix install paths for all
|
||||
find -name "Makefile*" | xargs -r sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
|
||||
find . -name "Makefile*" | xargs -r sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
|
||||
|
||||
oe_runmake install INSTALL_ROOT=${D}
|
||||
find "${D}" -ignore_readdir_race -name "*.la" -delete
|
||||
}
|
||||
|
||||
qmake5_base_do_install() {
|
||||
# Fix install paths for all
|
||||
find -name "Makefile*" | xargs -r sed -i "s,(INSTALL_ROOT)${STAGING_DIR_TARGET},(INSTALL_ROOT),g"
|
||||
find . -name "Makefile*" | xargs -r sed -i "s,(INSTALL_ROOT)${STAGING_DIR_TARGET},(INSTALL_ROOT),g"
|
||||
|
||||
oe_runmake install INSTALL_ROOT=${D}
|
||||
find "${D}" -ignore_readdir_race -name "*.la" -delete
|
||||
|
||||
# everything except HostData and HostBinaries is prefixed with sysroot value,
|
||||
# but we cannot remove sysroot override, because that's useful for pkg-config etc
|
||||
|
||||
@@ -204,7 +204,7 @@ do_configure() {
|
||||
|
||||
do_install() {
|
||||
# Fix install paths for all
|
||||
find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
|
||||
find . -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
|
||||
|
||||
oe_runmake install INSTALL_ROOT=${D}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ do_configure_prepend() {
|
||||
|
||||
do_install() {
|
||||
# Fix install paths for all
|
||||
find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
|
||||
find . -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
|
||||
|
||||
oe_runmake install INSTALL_ROOT=${D}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user