On 7/24/23 20:35, David C. Rankin wrote:
On 7/24/23 20:19, David C. Rankin wrote:
This is bad...
The ultimate fix is to patch kdeutils3-extra for python3 since all distros are racing to drop python 2.7. This will likely need a bug report. I hate python and python dependencies - it just ties your desktop to yet another package.
Felix, are you going to open one? I'm probably still a couple of weeks away from a 15.5 install -- which I suspect is where I'll hit this issue. But this issue isn't going away and we can't have KDE3 depending on a buildservice build from a home:/ repo.
The only direct dependency I find in the kdeutils3.spec is:
BuildRequires: python-devel
So it looks like the 2.7 dep is pulled in by another dependency relied on by kdeutils3 -- which make it a bit more of an issue.
Yasuhiko, have you tried a build against python3 yet? (to see how bad this is?) Anybody know what TDE did, or is Debian still shipping a python 2.7 package?
Okay, damn, The kdeutils-3.5.10.tar.bz2 source is littered with python dependencies. A majority for superkaramba. The autotools acinclude.m4 and acinclude.m4.in is where the version is set, e.g.: acinclude.m4:4650:AC_DEFUN([KDE_CHECK_PYTHON], acinclude.m4:4652: KDE_CHECK_PYTHON_INTERN("2.5", acinclude.m4:4653: [KDE_CHECK_PYTHON_INTERN("2.4", acinclude.m4:4654: [KDE_CHECK_PYTHON_INTERN("2.3", acinclude.m4:4655: [KDE_CHECK_PYTHON_INTERN("2.2", acinclude.m4:4656: [KDE_CHECK_PYTHON_INTERN("2.1", acinclude.m4:4657: [KDE_CHECK_PYTHON_INTERN("2.0", acinclude.m4:4658: [KDE_CHECK_PYTHON_INTERN($1, $2) ]) admin/acinclude.m4.in:4486:AC_DEFUN([KDE_TRY_LINK_PYTHON], The ./configure script picks it up from there. Hopefully, the changes are not that exhaustive to have python3 provide the same services that 2.7 currently provides. It looks like the main mess starts here: superkaramba/README:1:This is SuperKaramba, a version of Karamba with python scripting! superkaramba/src/config_python.h:2:* config_python.h - Functions for config python api superkaramba/src/config_python.h:25:#ifndef CONFIG_PYTHON_H superkaramba/src/config_python.h:26:#define CONFIG_PYTHON_H superkaramba/src/config_python.h:138:#endif // CONFIG_PYTHON_H superkaramba/src/widget_python.cpp:2:* widget_python.h - Functions for widget python api superkaramba/src/widget_python.cpp:29:#include <Python.h> superkaramba/src/widget_python.cpp:33:#include "meter_python.h" superkaramba/src/widget_python.cpp:34:#include "widget_python.h" superkaramba/src/widget_python.cpp:36:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:43:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:61:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:100:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:118:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:136:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:156:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:174:/* now a method we need to expose to Python */ superkaramba/src/widget_python.cpp:194:/* now a method we need to expose to Python */ superkaramba/src/meter_python.cpp:15:#include <Python.h> superkaramba/src/meter_python.cpp:20:#include "meter_python.h" superkaramba/src/meter_python.cpp:92:// Converts a Python String to a QString with Unicode support superkaramba/src/meter_python.cpp:116:// Converts a QString to a Python String with Unicode support superkaramba/src/textlabel_python.h:2:* textlabel_python.h - Functions for textlabel python api superkaramba/src/textlabel_python.h:25:#ifndef TEXTLABEL_PYTHON_H superkaramba/src/textlabel_python.h:26:#define TEXTLABEL_PYTHON_H superkaramba/src/textlabel_python.h:69:* You can reference text in your python code that was created in the superkaramba/src/textlabel_python.h:240:* created through python currently). textToChange is the reference to the superkaramba/src/textlabel_python.h:273:* through python currently). textToChange is the reference to the text superkaramba/src/textlabel_python.h:305:* through python currently). textToChange is the reference to the text superkaramba/src/textlabel_python.h:339:* through python currently). Text is the reference to the text superkaramba/src/textlabel_python.h:397:#endif // TEXTLABEL_PYTHON_H There are other sources as well, but this is where the majority of it is. -- David C. Rankin, J.D.,P.E.