https://bugs.kde.org/show_bug.cgi?id=520142
Bug ID: 520142
Summary: Failure to find python when building some KDE
components
Classification: Frameworks and Libraries
Product: extra-cmake-modules
Version First 6.26.0
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
***
If you're not sure this is actually a bug or valid feature request, instead
post about it at https://discuss.kde.org
If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Please remove this comment after reading and before submitting - thanks!
***
DESCRIPTION
We've had an issue in Fedora since we built the 6.26 frameworks with Audiotube
where when we build it, we get a build error:
```
In file included from /usr/include/pybind11/detail/common.h:12,
from /usr/include/pybind11/attr.h:13,
from /usr/include/pybind11/detail/class.h:12,
from /usr/include/pybind11/pybind11.h:12,
from /usr/include/pybind11/embed.h:12,
from
/builddir/build/BUILD/audiotube-26.04.1-build/audiotube-26.04.1/src/ytmusic.cpp:10:
/usr/include/pybind11/conduit/wrap_include_python_h.h:44:10: fatal error:
Python.h: No such file or directory
44 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
```
Now, that's pretty cut and dry: looks like the python development files are
missing, except they aren't. Audiotube didn't have many changes since the last
release, so I went to take a look at ECM and found this commit:
https://invent.kde.org/frameworks/extra-cmake-modules/-/commit/e46088158e5631417602322ecdc08cc692192134
Not sure why ECM would modify a python environment variable, but undoing this
commit makes Audiotube build normally once again.
I thought about simply making a PR undoing it, but I figured I'd simply submit
a bug instead as I didn't know the reasoning for the commit (As it wasn't
specified).
Note that I haven't encountered this in other KDE components yet, only
audiotube. But also, we built 6.26 not too long ago.
--
You are receiving this mail because:
You are watching all bug changes.