Bug 32995 - Kdevelop-Python is not compatible with Python 3.12
Summary: Kdevelop-Python is not compatible with Python 3.12
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 15:24 CET by Thomas Bigot
Modified: 2024-03-24 20:39 CET (History)
2 users (show)

See Also:
Source RPM: kdevelop-python-23.08.1-1.mga10.src.rpm
CVE:
Status comment:


Attachments

Description Thomas Bigot 2024-03-21 15:24:09 CET
Description of problem:

It is impossible to install kdevelop-python because it has a dependency on python 3.10, while we are using python 3.12 in Cauldron.

Version-Release number of selected component (if applicable):
23.08.1-1

How reproducible:
Always

Steps to Reproduce:
1. urpmi kdevelop-python
2. A requested package cannot be installed:
kdevelop-python-23.08.1-1.mga10.x86_64 (due to unsatisfied libpython3.10.so.1.0()(64bit))
Comment 1 Kristoffer Grundström 2024-03-21 18:44:13 CET
Looking at https://mageia.pkgs.org/cauldron/mageia-core-release-x86_64/kdevelop-python-23.08.1-1.mga10.x86_64.rpm.html I see libpython3.10.so.1.0()(64bit)) as Requires. Am I missing something?

CC: (none) => lovaren

Comment 2 Kristoffer Grundström 2024-03-21 18:45:36 CET
I still get the same error when using sudo urpmi --test kdevelop-python though.
Comment 3 Kristoffer Grundström 2024-03-21 18:47:50 CET
It almost seems like the kdevelop-python package isn't being developed anymore. Could be wrong though.
Comment 4 Kristoffer Grundström 2024-03-21 18:56:52 CET
https://invent.kde.org/kdevelop/kdevelop shows a 24.02 branch.

However, trying to use dnf builddep kdevelop-python to install the build dependencies failed so I had to manually download the spec file from the Cauldron svn and use urpmi to install them. Doing so I noticed that libprocesscore.so.9()(64bit)) is missing as well.
Comment 5 Kristoffer Grundström 2024-03-21 19:00:20 CET
(In reply to Kristoffer Grundström from comment #4)
> https://invent.kde.org/kdevelop/kdevelop shows a 24.02 branch.
> 
> However, trying to use dnf builddep kdevelop-python to install the build
> dependencies failed so I had to manually download the spec file from the
> Cauldron svn and use urpmi to install them. Doing so I noticed that
> libprocesscore.so.9()(64bit)) is missing as well.

Sidenote: Latest code on the master branch of https://invent.kde.org/kdevelop/kdevelop shows that we need to add 'extra-cmake-modules' as a dependency in the spec file.

I'm building kdevelop as we speak to test it.
Comment 6 Kristoffer Grundström 2024-03-21 19:36:08 CET
I installed all the dependencies that cmake complained about and reran cmake .. and it ended up with this error which makes me think that this needs to be ported to use QT6:

[myusernamehere@localhost build (master)]$ cmake ..
Installing in /usr/local. Run /home/myusernamehere/Desktop/kdevelop/build/prefix.sh to set the environment for KDevelop.
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found OpenGL: /usr/lib64/libOpenGL.so
CMake Error at /usr/lib64/cmake/Qt6Qml/Qt6QmlMacros.cmake:2532 (message):
  qt_generate_foreign_qml_types() is only available in Qt 6.
Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6Qml/Qt6QmlConfig.cmake:132 (include)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib64/cmake/KF6Config/KF6ConfigConfig.cmake:53 (find_dependency)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib64/cmake/KSysGuard/KSysGuardConfig.cmake:42 (find_dependency)
  CMakeLists.txt:106 (find_package)


-- Configuring incomplete, errors occurred!
Comment 7 Kristoffer Grundström 2024-03-21 19:42:17 CET
Running cmake for kdev-python using the master branch gives me this error about unsuitable python version:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3: Found unsuitable version "3.12.2", required range
  is "3.4.3...<3.12" (found /usr/bin/python3, found components: Interpreter
  Development Development.Module Development.Embed)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPython/Support.cmake:3867 (find_package_handle_standard_args)
  /usr/share/cmake/Modules/FindPython3.cmake:545 (include)
  CMakeLists.txt:46 (find_package)
Comment 8 Lewis Smith 2024-03-22 21:59:34 CET
@Thomas
Seeing this is a Cauldron bug, I am puzzled that you give the version 23.08.1 which is 6 months old, and has been superseded by many new versions up to the latest 24.02.0. Implies your system is not up-to-date.

Can you at least try with the latest version.

CC: (none) => lewyssmith

Comment 9 Thomas Bigot 2024-03-22 22:55:52 CET
@Lewis
Yet I assure you that I do urpmi --auto-u several times a day! :-)


# urpmi.update -a
medium "Core Release" is up-to-date
medium "Core Updates" is up-to-date
medium "Nonfree Release" is up-to-date
medium "Nonfree Updates" is up-to-date
medium "Tainted Release" is up-to-date
medium "Tainted Updates" is up-to-date
medium "Core 32bit Release" is up-to-date
medium "Core 32bit Updates" is up-to-date
medium "Nonfree 32bit Release" is up-to-date
medium "Nonfree 32bit Updates" is up-to-date
medium "Tainted 32bit Release" is up-to-date
medium "Tainted 32bit Updates" is up-to-date


# urpmi kdevelop
Package kdevelop-23.08.1-1.mga10.x86_64 is already installed

# urpmq -i kdevelop
    ftp://ftp.proxad.net/mirrors/mageia.org/distrib/cauldron/x86_64/media/core/release/media_info/20240322-165242-info.xml.lzma
Name        : kdevelop                                                                                                                                                  
Version     : 23.08.1
Release     : 1.mga10
Group       : Development/Tools
Size        : 15088048                     Architecture: x86_64
Source RPM  : kdevelop-23.08.1-1.mga10.src.rpm
URL         : https://www.kdevelop.org/
[…]
Comment 10 David GEIGER 2024-03-23 06:30:08 CET
kdevelop is not yet ported to Qt6/Kf6 so please wait. I'll fix it once upstream will done the migration job.

CC: (none) => geiger.david68210

Comment 11 Lewis Smith 2024-03-24 20:39:56 CET
@Thomas
Thank you for your confirmation of the version you are using. Let us live with that, despite the more recent versions visible for Cauldron.

(In reply to David GEIGER from comment #10)
> kdevelop is not yet ported to Qt6/Kf6 so please wait. I'll fix it once
> upstream will done the migration job.
Thank you David.
@Thomas
Remember that Cauldron is 'at your risk', and some things may not work. This bug is a rare example of this.

CC: lewyssmith => (none)
Assignee: bugsquad => kde


Note You need to log in before you can comment on or make changes to this bug.