Right after install, running pipenv run python kde-builder kcalc fails
Greetings,
I am trying to setup the KDE development environment on a Debian box (testing = trixie). I have run the installation process as described in the README of this git repos. Then I have run the following commands:
% kde-builder --metadata-only
% kde-builder --initial-setup (path was changed accordingly)
% pipenv run python kde-builder --pretend kcalc (ran fine, no errors)
% pipenv run python kde-builder kcalc (fails, see below)
spoiler
Fetching remote changes to sysadmin-repo-metadata
Merging sysadmin-repo-metadata changes from branch master
Holding performance profile
Warning todo _holdPerformancePowerProfileIfPossible
Building extra-cmake-modules from frameworks (1/22)
Fetching remote changes to extra-cmake-modules
Merging extra-cmake-modules changes from branch master
No changes to extra-cmake-modules source code, but proceeding to build anyway.
Compiling... failed (after 2 seconds)
extra-cmake-modules didn't build, stopping here.
Exception ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1574, in _shutdown
def _shutdown():
File "/home/rusconi/devel/kde/kde-builder/ksblib/TaskManager.py", line 395, in sigint_handler
sys.exit("EINTR")
SystemExit: EINTR
<<< PACKAGES FAILED TO BUILD >>>
extra-cmake-modules - /home/rusconi/kde/src/log/2024-01-31-04/extra-cmake-modules/build.log
* Installing "kde-env-master.sh.in" would overwrite an existing file:
* /home/rusconi/.config/kde-env-master.sh
* If this is acceptable, please delete the existing file and re-run,
* or pass --delete-my-settings and re-run.
:-)
Your logs are saved in /home/rusconi/kde/src/log/2024-01-31-04
The log file above:
less /home/rusconi/kde/src/log/2024-01-31-04/extra-cmake-modules/build.log git:(master|)
1 # kdesrc-build running: 'ninja' '-j' '4'
2 # from directory: /home/rusconi/kde/build/extra-cmake-modules
3 [1/2] sphinx-build html: see /home/rusconi/kde/build/extra-cmake-modules/docs/build-html.log
4 FAILED: docs/doc_format_html /home/rusconi/kde/build/extra-cmake-modules/docs/doc_format_html
5 cd /home/rusconi/kde/build/extra-cmake-modules/docs && /usr/bin/sphinx-build -D man_make_section_directory=0 -c /home/rusconi/kde/build/extra-cmake-modules/docs -d /home/rusconi/kde/build/extra-cmake-modules/docs/doctrees -b html /home/rusconi/kde/src/extra-cmake-modules/docs /home/rusconi/kde/build/extra-c 5 make-modules/docs/html > build-html.log
6
7 Extension error:
8 Could not import extension ecm (exception: No module named 'sphinx.builders.qthelp')
9 ninja: build stopped: subcommand failed.
Fine, then, I installed the missing extension packages:
% apt install "python3-sphinxcontrib*"
Run the build command again:
% pipenv run python kde-builder kcalc
spoiler
Fetching remote changes to sysadmin-repo-metadata
Merging sysadmin-repo-metadata changes from branch master
Holding performance profile
Warning todo _holdPerformancePowerProfileIfPossible
Building extra-cmake-modules from frameworks (1/22)
Fetching remote changes to extra-cmake-modules
Merging extra-cmake-modules changes from branch master
No changes to extra-cmake-modules source code, but proceeding to build anyway.
Compiling... succeeded (after 3 seconds)
Installing extra-cmake-modules succeeded (after 2 seconds)
Building kconfig from frameworks (2/22)
Fetching remote changes to kconfig
Merging kconfig changes from branch master
Source update complete for kconfig: no files affected
Rebuilding because the build directory doesn't exist
Preparing build system for kconfig.
Running cmake targeting Kate - Ninja...
Unable to configure kconfig with KDE CMake
kconfig didn't build, stopping here.
Exception ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1574, in _shutdown
def _shutdown():
File "/home/rusconi/devel/kde/kde-builder/ksblib/TaskManager.py", line 395, in sigint_handler
sys.exit("EINTR")
SystemExit: EINTR
<<< PACKAGES FAILED TO BUILD >>>
kconfig - /home/rusconi/kde/src/log/2024-01-31-05/kconfig/cmake.log
* Installing "kde-env-master.sh.in" would overwrite an existing file:
* /home/rusconi/.config/kde-env-master.sh
* If this is acceptable, please delete the existing file and re-run,
* or pass --delete-my-settings and re-run.
:-)
Your logs are saved in /home/rusconi/kde/src/log/2024-01-31-05
Looking at the log for kconfig:
38 CMake Error at /home/rusconi/kde/usr/share/ECM/modules/ECMQmlModule6.cmake:24 (qt6_policy):
39 Unknown CMake command "qt6_policy".
40 Call Stack (most recent call first):
41 /home/rusconi/kde/usr/share/ECM/modules/ECMQmlModule.cmake:177 (include)
42 CMakeLists.txt:26 (include)
43
At this point, I look at the 24th line of the ECMQmlModule6.cmake file:
qt6_policy(SET QTP0001 NEW)
When searching for that command in the net, I find this:
https://doc.qt.io/qt-6/qt-policy.html where it is mentioned that
if versionless commands are disabled, use qt6_policy() instead. It supports the same set of arguments as this command.
The command
qtpaths6 --qt-query shows that version Qt is 6.4.2.
How can I know if that qt6_policy command is available for that version ?
Thank you for listening and thanks for all the hard work poured into KDE! Sincerely, Filippo
Thanks for listening up to here and thanks for the hard work on the wonderful KDE!
Sincerely, Filippo