Am 01.10.23 um 16:37 schrieb Stefano Crocco:
Hello to everyone,
in the last weeks, I worked on making Konqueror compile with both KF5 and KF6.
I had all the code on my PC and today I tried to upload it on GitLab. I
created a kf6 branch for Konqueror, pushed the code in my Konqueror fork and
created a merge request [1] for the kf6 branch. However, I don't know what to
do so that the CI tries compiling the code both with KF5 and KF6.

I wasn't able to find any documentation explicitly stating how to do this, so
Konqueror's current .gitlab-ci.yml with that of other KDE programs, I added
the following two lines at the former:
   - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/
linux-qt6.yml
   - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/
freebsd-qt6.yml

Unfortunately, this doesn't seem to work: the CI will indeed try to compile
Konqueror with both KF5 and KF6 in linux and FreeBSD, but the compilation with
KF6 fails in both platforms. I don't know whether this is because I didn't
correctly configure the CI or because there's something wrong in the way I
changed the CMakeLists.txt files (on my system Konqueror built correctly with
both KF5 and KF6).

The error message I get from the CI is the following (the full build log is
attached):
Exception: Unable to locate requested dependency in the registry: kdesu
(branch: kf5)

If I read this correctly, it seems that the system tries to find kdesu in the
kf5 branch which seems wrong, since the compilation should be for KF6.
Looking at the CMakeLists.txt files, I can't spot anything wrong. Before going
on investigating them, I'd like to be sure that what I did to make the CI
compile Konqueror with KF6 is correct and there's nothing else to do. Can
anyone give any hints or pointers to documentation about this?

Thanks in advance

Stefano

[1] https://invent.kde.org/network/konqueror/-/merge_requests/237

Hi,

you need to adjust .kde-ci.yml to pull the KF dependencies from the
@latest-kf6 branch group. See for example
https://invent.kde.org/graphics/gwenview/-/blob/master/.kde-ci.yml

Cheers

Nico

Reply via email to