Bug 481961

Summary: Build It guide is out of date
Product: [Applications] kate Reporter: gl.ivanovsky
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gl.ivanovsky 2024-02-28 21:08:04 UTC
I am trying to setup Kate development environment following Build It guide (https://kate-editor.org/build-it/) and it ends up with errors.

The first one was:
> Please edit your config. Replace "kdedir" with "install-dir".

This one was trivial to solve.

Then there are warnings:
```
Warning: The include line defined in /home/gitpod/.config/kdesrc-buildrc:26 uses an old path with data/build-include.
The module-definitions files are now located in repo-metadata.
The configuration file is intended to only have this include line (please manually edit your config):
    include ${module-definitions-dir}/kf6-qt6.ksb
Alternatively, you can regenerate the config with --generate-config option.
Mapping this line to "include ${module-definitions-dir}/kf6-frameworks.ksb"

Warning: The include line defined in /home/gitpod/.config/kdesrc-buildrc:27 uses an old path with data/build-include.
The module-definitions files are now located in repo-metadata.
The configuration file is intended to only have this include line (please manually edit your config):
    include ${module-definitions-dir}/kf6-qt6.ksb
Alternatively, you can regenerate the config with --generate-config option.
Mapping this line to "include ${module-definitions-dir}/kf6-applications.ksb"
```

Previously I was able to setup environment and build Kate. It seems something has changed on kdesrc-build side in the last few months.

The guide needs to be updated to be working again.

P.S. If you are interested, I've created a repo (https://github.com/i-ky/kate-development-in-gitpod) to automate the setup in Gitpod (https://www.gitpod.io) - a containerized cloud-based environment. But the errors/warnings were the same when I was setting up Kate development environment on a "regular" PC running Linux Mint.
Comment 1 Christoph Cullmann 2024-03-03 16:17:47 UTC
Git commit 762e3703fd1e81c67a69184cfd74c4efc24adbcb by Christoph Cullmann.
Committed on 03/03/2024 at 16:17.
Pushed by cullmann into branch 'master'.

update howto

M  +19   -20   content/build-it.md

https://invent.kde.org/websites/kate-editor-org/-/commit/762e3703fd1e81c67a69184cfd74c4efc24adbcb
Comment 2 Christoph Cullmann 2024-03-03 16:18:15 UTC
Please give the new variant a try.
Comment 3 gl.ivanovsky 2024-03-03 21:02:32 UTC
Thank you for the update!

I gave it a try in Gitpod environment and got stuck at satisfying kde-builder's dependencies.
I will keep you updated on my progress.

What I can say so far is that there are still two references to the old kdesrc-buildrc left:
https://invent.kde.org/websites/kate-editor-org/-/blob/master/content/build-it.md?ref_type=heads&plain=1#L57
https://invent.kde.org/websites/kate-editor-org/-/blob/master/content/build-it.md?ref_type=heads&plain=1#L59

I believe these need to be changed to kde-builderrc.
Comment 4 Christoph Cullmann 2024-03-06 09:06:14 UTC
Git commit 412790ced3f6c79ed7af756e7bc540a89e0fd841 by Christoph Cullmann.
Committed on 06/03/2024 at 09:03.
Pushed by cullmann into branch 'master'.

Revert "update howto"

This reverts commit 762e3703fd1e81c67a69184cfd74c4efc24adbcb.

kde-builder not yet ready

https://invent.kde.org/sdk/kde-builder/-/issues/67

sdk/kde-builder#67

M  +20   -19   content/build-it.md

https://invent.kde.org/websites/kate-editor-org/-/commit/412790ced3f6c79ed7af756e7bc540a89e0fd841
Comment 5 Christoph Cullmann 2024-03-06 09:06:22 UTC
Git commit 1a498dd923185c1a1b14801475e1cc3bdb56d601 by Christoph Cullmann.
Committed on 06/03/2024 at 09:05.
Pushed by cullmann into branch 'master'.

only fix the compat issues

M  +2    -3    content/build-it.md

https://invent.kde.org/websites/kate-editor-org/-/commit/1a498dd923185c1a1b14801475e1cc3bdb56d601
Comment 6 gl.ivanovsky 2024-03-09 12:20:14 UTC
Thank you!