Bug 262078 - devel/qtcreator: Update to 6.0.2, CMake build.
Summary: devel/qtcreator: Update to 6.0.2, CMake build.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-20 22:40 UTC by Florian Walpen
Modified: 2022-03-15 20:47 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
Update devel/qtcreator to 6.0.2, build with CMake. (27.37 KB, patch)
2022-02-20 22:40 UTC, Florian Walpen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Walpen 2022-02-20 22:40:18 UTC
Created attachment 231973 [details]
Update devel/qtcreator to 6.0.2, build with CMake.

Update Qt Creator to 6.0.2, see the official changelogs:
https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changes-6.0.0.md
https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changes-6.0.1.md
https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changes-6.0.2.md

Port changes:
Build with CMake instead of QMake, as advised by upstream. Add missing libraries
and dependencies. Use textproc/kf5-syntax-highlighting for syntax highlighting
instead of an internal copy. Clang code model depends on LLVM 13 now.

Testing was done on FreeBSD 13.0-RELEASE / amd64, with poudriere testport, all options on and off, portlint and portclippy, some manual poking around, and using it on my own projects for ~2 days.

Please note that this introduces some major changes, mostly related to CMake build. The support for QMake (and QMake in general) is phasing out.
Comment 1 Florian Walpen 2022-02-20 22:42:38 UTC
@Adriaan de Groot: Hope it's ok to add you here, since you're already familiar with devel/qtcreator.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-03-15 20:33:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b1bbeb2f9c6aff674198e27089a05ff85518918

commit 3b1bbeb2f9c6aff674198e27089a05ff85518918
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2022-03-15 20:27:18 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2022-03-15 20:32:43 +0000

    devel/qtcreator: update to 6.0.2, cmake build

    Update to most-recent release and switch the build to CMake
    (which matches the general migration of Qt to using CMake for
    builds). While here, drop the qbs dependency because qbs is
    broken with newer clang.

    Thanks to Florian for a carefully-written update and PR.

    Obtained From:          Florian Walpen
    PR:                     262078

 devel/qtcreator/Makefile                           | 118 ++++++-------
 devel/qtcreator/distinfo                           |   6 +-
 ...atch-src_libs_3rdparty_sqlite_sqlite.pri (gone) |  10 --
 .../patch-src_libs_sqlite_CMakeLists.txt (new)     |  11 ++
 devel/qtcreator/pkg-plist                          | 192 ++++++++-------------
 5 files changed, 142 insertions(+), 195 deletions(-)
Comment 3 Adriaan de Groot freebsd_committer freebsd_triage 2022-03-15 20:47:00 UTC
Thanks! I modified your work just a tiny bit to just rip out qbs. That saves us a bunch of tweaking, and since qbs doesn't build right now except on 12.1 (all newer releases have clang13 or later) the packages can be built again.