Qt 6

Fab Stz fabstz-it at yahoo.fr
Sat Sep 25 06:45:12 BST 2021


Hello,

Le vendredi 24 septembre 2021, 23:07:39 CEST Lisandro Damián Nicanor Pérez 
Meyer a écrit :
> > 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.
> 
> Then don't use Debian's tarballs but get them from upstream directly.

Is there any hope to see this Qt for Android in Debian's official repo? It 
would be useful for f-droid at least I guess. If as you suggest to use the 
upstream tarball, I understand this cannot be achieved then.

It think it would have been better to have only one source package used by all 
"variants" of Qt. Which would avoid duplicate source code, especially for such 
a huge package. Maybe there is another way to do. How would it be acceptable 
for a Debian package ? What does the qt/kde community actually think of having 
Qt for Android in Debian?

> > 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,
> 
> Perl is required to run a script used to prepare the git repo in order
> to create a tarball. I don't think we are using it.
> 
> I also don't remember that we use python at all.
> 
> > Minimal version of cmake is 3.16, but later version bring additional
> > features. See: https://github.com/qt/qtbase/tree/dev/cmake#cmake-versions
> 
> The minimal version is exactly that: minimal. If any other more recent
> version of CMake is present on the buildd at build time it will be
> used.

I was asking because debian/rules mentions >= 3.18 while minimal is in fact 
3.16 which is in buster-backports. So why setting minimal version in build 
dependencies to 3.18 and not 3.16 ?

> >         sed -i -e '/QT_SOURCE_TREE/ s,\(.*"\)\(.*\)\(".*\),
> > 
> > \1<REMOVED_DURING_DEBIAN_PACKAGING>\3,' debian/tmp/usr/lib/*/lib/cmake/
> > Qt6BuildInternals/QtBuildInternalsExtra.cmake
> 
> What's the functionality of this file? Maybe it shouldn't be packaged
> at all to start with.

I believe it is used when building the other modules.

> >         # 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
> 
> That sounds like a hack that needs to get solved upstrea, Do you know
> which tool generates it?
> 
> > 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.
> 
> I don't think so.

I found it useful when running a subsequent "configure" with other options. 
Otherwise the CMakeCache.txt is used.







More information about the pkg-kde-talk mailing list