Summary: | meson support not working when meson is a symlink | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Manuel Mommertz <2Kmm> |
Component: | Build tools: Meson | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | igorkuo, ihor, petross404 |
Priority: | NOR | ||
Version: | 5.6.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/commit/2f723c977906582ddca5c0a710791e25bc35a51b | Version Fixed In: | 5.8.220400 |
Sentry Crash Report: |
Description
Manuel Mommertz
2019-09-30 10:26:17 UTC
End of year 2020 The problem still exists. Gentoo /usr/lib/python-exec/python-exec2 --backend ninja /home/.../project/build /usr/lib/python-exec/python-exec2: python-exec2 is a wrapper, it must not be run directly *** Failure: Exit code 127 *** (In reply to Ihor Antonov from comment #1) > End of year 2020 > The problem still exists. > > Gentoo > > /usr/lib/python-exec/python-exec2 --backend ninja /home/.../project/build > /usr/lib/python-exec/python-exec2: python-exec2 is a wrapper, it must not be > run directly > *** Failure: Exit code 127 *** Same here, I am using KDevelop-5.6.1, meson-0.55.3 and I am getting the same error. Is there any temporary workaround? (In reply to Petros from comment #2) > (In reply to Ihor Antonov from comment #1) > Is there any temporary workaround? Yes. After reading meson quick start guide I learned that meson can be used directly from its git repository: https://mesonbuild.com/Quick-guide.html#installation-from-source So I cloned https://github.com/mesonbuild/meson into some directory and pointed KDevelop at meson in that directory --------------------- WORKAROUND: 1. clone https://github.com/mesonbuild/meson 2. in KDevelop when setting up meson project use meson.py that you obtain at step #1 as meson binary (In reply to Ihor Antonov from comment #3) > Yes. After reading meson quick start guide I learned that meson can be used > directly from its git repository: > https://mesonbuild.com/Quick-guide.html#installation-from-source > > So I cloned https://github.com/mesonbuild/meson into some directory and > pointed KDevelop at meson in that directory > > --------------------- > WORKAROUND: > 1. clone https://github.com/mesonbuild/meson > 2. in KDevelop when setting up meson project use meson.py that you obtain at > step #1 as meson binary Thank you. Can anyone verify that https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/251 fixes this issue? (In reply to Igor Kushnir from comment #5) > Can anyone verify that > https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/251 fixes this > issue? Yes, works perfectly! :) Thank you! Git commit 2f723c977906582ddca5c0a710791e25bc35a51b by Bernd Buschinski. Committed on 04/12/2021 at 21:39. Pushed by buschinski into branch 'master'. Fix meson executable - on my system meson is a link to python2-exec $ ls -ld $(which meson) /usr/bin/meson -> ../lib/python-exec/python-exec2 The python2-exec must not be executed directly. - Currently the mesonExecutable is canonicalized, which also resolves symlinks This causes the meson plugin to execute stuff like: $ python2-exec --reconfigure instead of $ meson --reconfigure Fix this by not canonicalizing the mesonExecutable, validity is already checked earlier. FIXED-IN: 5.8.220400 M +1 -1 plugins/meson/mesonconfig.cpp https://invent.kde.org/kdevelop/kdevelop/commit/2f723c977906582ddca5c0a710791e25bc35a51b |