Qt 6

Fab Stz fabstz-it at yahoo.fr
Fri Sep 24 20:48:08 BST 2021


Hello,

Thank you.

Just a few comments to mention some differences with what I did for Qt for 
Android. As I said, for now I use the single source package shipped by Qt. One 
of the reason is that the qtbase DFSG sources (at least for Qt5) don't ship 
sqlite's source code. Did you remove it too in Qt6? Would it be possible to 
keep the source here? When compiling Qt for Android, sqlite has to be there, 
it cannot take the system's sqlite since it is sort of compilation of Qt for 
an Android system which doesn't have sqlite built-in. There is the same 
problem for other 3rd party libraries shipped in Qt.

Did you remove any other code from the sources?

In my packaging of Qt6 for Android I also had this in addition. Maybe this is 
also of interest to you in debian/rules

debian/control:
---------------
These pages mention also these build dependencies. Not sure if this is 
relevant to qtbase or anyother package.
https://wiki.qt.io/Building_Qt_6_from_Git#System_Requirements

- Perl (>=5.14)
- Python (>=2.6.x)

So I also set:
 perl (>= 5.14),
 python3,

Minimal version of cmake is 3.16, but later version bring additional features.
See: https://github.com/qt/qtbase/tree/dev/cmake#cmake-versions


debian/rules:
-------------
In override_dh_auto_install:

	# Reproducible builds: remove build paths from 
QtBuildInternalsExtra.cmake
	sed -i -e '/QT_SOURCE_TREE/ s,\(.*"\)\(.*\)\(".*\),
\1<REMOVED_DURING_DEBIAN_PACKAGING>\3,' debian/tmp/usr/lib/*/lib/cmake/
Qt6BuildInternals/QtBuildInternalsExtra.cmake

	# This one is not for qtbase but for qtqml I guess
	# Reproducible builds: remove build paths from qqmljsparser_p.h
	sed -i -e 's,^\(#line.\+ "\).*\(parser/qqmljs.g"\)$$,\1\2,' debian/
tmp/usr/lib/*/include/QtQml/*/QtQml/private/qqmljsparser_p.h


In override_dh_auto_clean:
	dh_auto_clean
	rm -v -f debian/build-host/CMakeCache.txt

where debian/build-host is the build directory. Not sure if this is of 
interest for your package.

Once qt6base is here, I will try to use it as a "host package" package to 
build Qt for Android. Compilation of Qt6 for Android now requires an already 
existing installation of Qt (it doesn't bootstrap anymore as it did in Qt5), 
so until now my package built first a stripped down version to be able to 
build Qt for Android.

Regards

Le vendredi 24 septembre 2021, 17:36:38 CEST Patrick Franz a écrit :
> Hi all,
> 
> I was planning to upload qt6-base rather soon. However, before I do
> that, I want to give everyone a chance to comment on the packaging which
> can be found at https://salsa.debian.org/qt-kde-team/qt6/qt6-base
> 
> I am not too happy about the name of the package qt6-qpa-plugins. It
> contains private libraries and plugins that used to be in libqt5gui5.
> Unfortunately, we cannot have it there anymore as this would create a
> circular dependency between libqt6gui6 and libqt6opengl6. Hence, a new
> package seemed to be the best option.
> 
> If you have any comments about anything, let's hear them.







More information about the pkg-kde-talk mailing list