Bug 221727

Summary: [CMake] Bump cmake_minimum_required version to 3.12 or later
Product: WebKit Reporter: Don Olmstead <don.olmstead>
Component: CMakeAssignee: Don Olmstead <don.olmstead>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, aperez, cgarcia, clopez, ews-watchlist, gyuyoung.kim, mcatanzaro, ryuan.choi, sergio, webkit-bug-importer, yurys
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=248246
Attachments:
Description Flags
Patch
annulen: review-, don.olmstead: commit-queue+
Patch none

Don Olmstead
Reported 2021-02-10 16:24:18 PST
My understanding is Igalia can do this in April 2021.
Attachments
Patch (2.26 KB, patch)
2021-03-05 07:19 PST, Don Olmstead
annulen: review-
don.olmstead: commit-queue+
Patch (7.84 KB, patch)
2021-03-05 09:42 PST, Don Olmstead
no flags
Radar WebKit Bug Importer
Comment 1 2021-02-17 16:25:25 PST
Don Olmstead
Comment 2 2021-03-05 07:19:02 PST
Don Olmstead
Comment 3 2021-03-05 07:32:39 PST
Believe GTK has branched so this can potentially land. This opens up GTK to build with hidden visibility turned on.
Adrian Perez
Comment 4 2021-03-05 08:34:38 PST
(In reply to Don Olmstead from comment #3) > Believe GTK has branched so this can potentially land. Yes, Carlos has created our 2.32.x release branch some days ago. > This opens up GTK to build with hidden visibility turned on. \o/
Konstantin Tokarev
Comment 5 2021-03-05 08:58:51 PST
Comment on attachment 422370 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422370&action=review > CMakeLists.txt:9 > +cmake_minimum_required(VERSION 3.12) cmake_minimum_required(VERSION 3.10) is also present in subprojects, such as Source/WTF/CMakeLists.txt
Don Olmstead
Comment 6 2021-03-05 09:31:21 PST
(In reply to Konstantin Tokarev from comment #5) > Comment on attachment 422370 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=422370&action=review > > > CMakeLists.txt:9 > > +cmake_minimum_required(VERSION 3.12) > > cmake_minimum_required(VERSION 3.10) is also present in subprojects, such as > Source/WTF/CMakeLists.txt Good catch forgot about the AppleWin build doing that.
Don Olmstead
Comment 7 2021-03-05 09:42:44 PST
Don Olmstead
Comment 8 2021-03-05 09:43:24 PST
Comment on attachment 422376 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422376&action=review > CMakeLists.txt:13 > -cmake_minimum_required(VERSION 3.10) > +# cmake_minimum_required is also set inside Source/${FRAMEWORK}/CMakeLists.txt > +# in support of the AppleWin internal build so this version should be kept in > +# sync across those files. > +# > +cmake_minimum_required(VERSION 3.12) Added a note here about that annulen
Konstantin Tokarev
Comment 9 2021-03-05 10:39:11 PST
Comment on attachment 422376 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422376&action=review >> CMakeLists.txt:13 >> +cmake_minimum_required(VERSION 3.12) > > Added a note here about that annulen Great idea, similar mistakes were made in the past too
EWS
Comment 10 2021-03-05 11:12:51 PST
Committed r273984: <https://commits.webkit.org/r273984> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422376 [details].
Yury Semikhatsky
Comment 11 2021-03-08 12:35:36 PST
This broke compilation on Ubuntu 18.04 as it comes with cmake 3.10. I'd point to the Ububntu 1804 build bot but has been in a bad state for a different reason (https://build.webkit.org/#/builders/71). Is it possible to keep the min cmake version at 3.10 while Ubuntu 1804 is an officially supported LTS?
Michael Catanzaro
Comment 12 2021-03-08 12:40:53 PST
Hi Yury, support for Ubuntu 18.04's toolchain ends in April according to https://trac.webkit.org/wiki/WebKitGTK/DependenciesPolicy. WebKitGTK 2.32 has already been branched so Ubuntu has until September, when WebKitGTK 2.34 will be released, to figure out what to do. You should still be able to build for Ubuntu 18.04 if you build your own CMake.
Yury Semikhatsky
Comment 13 2021-03-08 13:07:17 PST
Hi Michael, thanks for quick response and for the pointer to the policy! I ended up building cmake from source for now, should fix the problem.
Michael Catanzaro
Comment 14 2021-03-09 10:13:52 PST
Note that the patch in bug #181916 depends on cmake 3.12.
Note You need to log in before you can comment on or make changes to this bug.