package/qt5webengine: fix translations target install path
PATCH 1/1 package/qt5webengine: fix translations target install path
Through the evolution of the qt5webengine package patch ([1], [2]) until the initial commit ([3]) the translations target install path got mangled resulting in a double trailing qtwebengine_locales path:
/usr/translations/qtwebengine_locales/qtwebengine_locales
Instead of:
/usr/translations/qtwebengine_locales
Fixes the translations runtime access failure resulting in the following warning:
WARNING:resource_bundle_qt.cpp(116): locale_file_path.empty() for locale
[1] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html
[2] https://patchwork.ozlabs.org/patch/640633
[3] https://git.buildroot.net/buildroot/commit/?id=89080bac9bc47946a09c1e74f2f872363bf6785b
--- package/qt5/qt5webengine/qt5webengine.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
package/qt5/qt5webengine/qt5webengine.mk +1 -2
@@ -90,8 +90,7 @@ define QT5WEBENGINE_INSTALL_TARGET_LIBS cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebEngine*.so.* $(TARGET_DIR)/usr/lib cp -dpf $(STAGING_DIR)/usr/libexec/QtWebEngineProcess $(TARGET_DIR)/usr/libexec/ cp -dpfr $(STAGING_DIR)/usr/resources/ $(TARGET_DIR)/usr/ - mkdir -p $(TARGET_DIR)/usr/translations/qtwebengine_locales/ - cp -dpfr $(STAGING_DIR)/usr/translations/qtwebengine_locales $(TARGET_DIR)/usr/translations/qtwebengine_locales/ + cp -dpfr $(STAGING_DIR)/usr/translations/qtwebengine_locales $(TARGET_DIR)/usr/translations/ endef endif
Signature · 1 line
2.25.0
PATCH 1/1 package/qt5webengine: fix translations target install path
Quoted 27 lines · Peter Seiderer
Through the evolution of the qt5webengine package patch ([1], [2]) until the initial commit ([3]) the translations target install path got mangled resulting in a double trailing
qtwebengine_localespath:
/usr/translations/qtwebengine_locales/qtwebengine_locales
Instead of:
/usr/translations/qtwebengine_localesFixes the translations runtime access failure resulting in the following warning:
WARNING:resource_bundle_qt.cpp(116):
locale_file_path.empty()for locale[1] http://lists.busybox.net/pipermail/buildroot/2015-July/132010.html
[2] https://patchwork.ozlabs.org/patch/640633
[3] https://git.buildroot.net/buildroot/commit/?id=89080bac9bc47946a09c1e74f2f872363bf6785bSigned-off-by Peter Seiderer <[email protected]>--- package/qt5/qt5webengine/qt5webengine.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)package/qt5/qt5webengine/qt5webengine.mk +0
-0
package/qt5/qt5webengine/qt5webengine.mk define QT5WEBENGINE_INSTALL_TARGET_LIBS · line 93
Quoted 6 lines
package/qt5/qt5webengine/qt5webengine.mk +1
-2@@ -90,8 +90,7 @@ define QT5WEBENGINE_INSTALL_TARGET_LIBS cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebEngine*.so.* $(TARGET_DIR)/usr/lib cp -dpf $(STAGING_DIR)/usr/libexec/QtWebEngineProcess $(TARGET_DIR)/usr/libexec/ cp -dpfr $(STAGING_DIR)/usr/resources/ $(TARGET_DIR)/usr/ - mkdir -p $(TARGET_DIR)/usr/translations/qtwebengine_locales/ - cp -dpfr $(STAGING_DIR)/usr/translations/qtwebengine_locales $(TARGET_DIR)/usr/translations/qtwebengine_locales/ + cp -dpfr $(STAGING_DIR)/usr/translations/qtwebengine_locales $(TARGET_DIR)/usr/translations/
My latest complete build for the rpi zero case resulted in all the *.pak files directly under /usr/translations (instead of /usr/translations/qtwebengine_locales), seems the removing of the mkdir command was a mistake..., seems I did only
rm -r target/usr/translations/qtwebengine_locales
instead of
rm -r target/usr/translations
for the test...
Updated patch will follow...
Regards,
Peter
Quoted 3 lines
package/qt5/qt5webengine/qt5webengine.mk +0
-0endef endif