Current qt-creator-4.12.3.ebuild of portage tree is compatible only with llvm:9 and :10, but not with llvm:10.1 or :11. Please bump version to 4.13.2 and fix there compatibility with newer llvm slots where it possible. Reproducible: Always
Created attachment 673363 [details, diff] Patch adding new ebuild and patch file for Qt Creator 4.13.2 This patchs also adds support for llvm / clang 11.0.0.
NB! If you are using Clang 11, you will also want / need patch from the following issue until it's resolved: https://bugs.gentoo.org/755668
Nice, Works after removing lines 111-112 in patch +-- +2.26.2 Thanks Hans
Created attachment 674449 [details, diff] Patch adding new ebuild and patch file for Qt Creator 4.13.3 Qt Creator 4.13.3 just released. Patch updated - without the stupid mistake.
From /usr/portage/profiles/package.mask: # Michał Górny <mgorny@gentoo.org> (2020-11-29) # An awful hack-package that was dumped on others, and not touched # by the person adding it since. Depends on obsolete LLVM versions # and needs a version bump. # Removal in 30 days. Bug #734732. dev-libs/libclangformat-ide Removing that package causes problems for Clang support in Qt Creator and is a serious issue. Please visit https://bugs.gentoo.org/734732 and raise your concerns.
(In reply to Hans F. Nordhaug from comment #4) > Qt Creator 4.13.3 just released. Patch updated - without the stupid mistake. Thank you, works like a charm! (together with patch from #755668)
Created attachment 679374 [details, diff] Patch adding new ebuild and patch file for Qt Creator 4.13.3 and 4.14.o Updated patch adding support for the new released Qt Creator 4.14.0. NB! Qt Creator 4.14.0 doesn't need the dylib fix anymore, but the ClangFormat patch is still needed and hence the dev-libs/libclangformat-ide package.
NB! Because of the erroneous profile use mask of clang (in /usr/portage/profiles/base/package.use.mask), you should add a file /etc/portage/profile/package.use.mask containing "dev-qt/qt-creator -clang" to get any Clang feature, not only the Clang format plugin.
Thanks for the ebuild. But after the update, the clang code model could't find some of the standard header files (e.g. stdbool.h and stddef.h). I had to add the line sed -i -e "/^CLANG_INCLUDE_DIR\s*=/s:\$\${LLVM_LIBDIR}:${EPREFIX}/usr/lib:" src/shared/clang/clang_defines.pri || die to src_prepare(). Looks like CLANG_RESOURCE_DIR was renamed to CLANG_INCLUDE_DIR in clang_defines.pri
Created attachment 684936 [details] simplified qt-creator-4.14.0.ebuild Here is an ebuild with the dependency on libclangformat-ide removed. libclangformat-ide is not essential, the clang code model works fine without it. Given the fact that libclangformat-ide is currently in limbo for lack of a maintainer, this should simplify acceptance. The ebuild also incorporates the CLANG_INCLUDE_DIR fix mentioned above by Simon Maurer.
Victor Mataré tnx for your ebuild with working clang code model!
Created attachment 688140 [details, diff] Improved patch adding new ebuild and patch file for Qt Creator 4.13.3 and 4.14.0 - Instead of removing support for libclangformat-ide, added separate clangformat use flag so people without libclangformat-ide can get clang code model support in Qt Creator. This should make everybody happy. - Contains CLANG_INCLUDE_DIR fix - thanks for spotting it. - Removed client use flag for gdb as it no longer exists. Block gdb upgrade.
Some new ebuilds of sys-devel/gdb has no USE flag "client".
There are currently no sys-devel/gdb ebuilds that has the client use flag, and hence the client use flag in Qt Creator blockED the upgrade of gdb.
Yes, "client" option now is always on in sys-devel/gdb and if gdb is already updated to current portage tree then attached qt-creator ebuild couldn't be merged with explicit requirements of sys-devel/gdb[client], e.g. for new qt-creator installation.
(In reply to Hans F. Nordhaug from comment #14) > There are currently no sys-devel/gdb ebuilds that has the client use flag, > and hence the client use flag in Qt Creator blockED the upgrade of gdb. Sorry, I checked ebuild instead of atrached patch that fix it.
Created attachment 688356 [details, diff] Patch adding new ebuilds for Qt Creator 4.13.3 and 4.14.1 Prior patch updated for newly released Qt Creator 4.14.1 and improved further. Separate clangformat use flag should work properly now. I had forgotten about "llvm_check_deps". Also updated clang plugin use flag descriptions in metadata.xml. (I didn't add clangformat use flag and son to version 4.13.3. Now that 4.14.1 is released, we probably should just skip it.) I have also verified that my 11.0.0 patch for the (removed) dev-libs/libclangformat-ide package still works for 11.0.1. Will attach it under bug 755668 even it it is closed. I'm willing to maintain that package. (Will make a formal request somewhere.) So, what more can I do to get a new version of Qt Creator into Gentoo? NB! I just discovered bug 757756 that is almost a duplicate. These two bugs should reference each other.