Bug 274225 (cmake-3.27.6) - [exp-run] devel/cmake: Update to 3.27.6
Summary: [exp-run] devel/cmake: Update to 3.27.6
Status: Closed FIXED
Alias: cmake-3.27.6
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: https://people.freebsd.org/~jhale/pat...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 22:12 UTC by Jason E. Hale
Modified: 2023-11-09 22:44 UTC (History)
0 users

See Also:
jhale: exp-run?


Attachments
v1 (58.44 KB, patch)
2023-10-02 22:12 UTC, Jason E. Hale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason E. Hale freebsd_committer freebsd_triage 2023-10-02 22:12:42 UTC
Created attachment 245393 [details]
v1

kde@ would like to ask for an exp-run to update devel/cmake and friends to 3.27.6. Patch is attached and can also be found here: https://people.freebsd.org/~jhale/patches/0001-devel-cmake-Update-to-3.27.6.patch
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-11-08 05:37:01 UTC
A commit in branch main references this bug:

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

commit baf3577af42838a9a09a98fd3ca03adc60a55853
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-11-08 05:30:32 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-11-08 05:36:35 +0000

    science/libkml: Fix linking with CMake >= 3.27

    Due to changes [1] in the FindEXPAT module, this was failing to link
    with newer versions of CMake.

    FAILED: bin/example_balloonwalker
    : && /usr/bin/c++ -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -std=c++11 -O2 -pipe
    -fstack-protector-strong -fno-strict-aliasing -std=c++11 -DNDEBUG -lz -fstack-protector-strong
    examples/engine/CMakeFiles/example_balloonwalker.dir/balloonwalker.cc.o -o bin/example_balloonwalker
    -Wl,-rpath,/wrkdirs/usr/ports/science/libkml/work/.build/lib:/usr/local/lib  lib/libkmlengine.so.1.3.1
    lib/libkmldom.so.1.3.1  lib/libkmlbase.so.1.3.1  /usr/local/lib/libminizip.so  /usr/local/lib/liburiparser.so && :
    ld: error: lib/libkmldom.so.1.3.1: undefined reference to XML_StopParser [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserCreateNS [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserCreate [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetUserData [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetElementHandler [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetCharacterDataHandler [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetEntityDeclHandler [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_SetNamespaceDeclHandler [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_StopParser [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParserFree [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_Parse [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetBuffer [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ParseBuffer [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetParsingStatus [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetErrorCode [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_ErrorString [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetCurrentLineNumber [--no-allow-shlib-undefined]
    ld: error: lib/libkmlbase.so.1.3.1: undefined reference to XML_GetCurrentColumnNumber [--no-allow-shlib-undefined]
    c++: error: linker command failed with exit code 1 (use -v to see invocation)

    [1] https://github.com/Kitware/CMake/commit/13079f382b480c8fe6a68d98afc2cec716a75e59

    PR:             274225

 science/libkml/files/patch-src_kml_base_CMakeLists.txt (new) | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-11-08 07:53:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78447ad699f46b28cb98d0564563b8b29b0d40db

commit 78447ad699f46b28cb98d0564563b8b29b0d40db
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-11-08 07:40:41 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-11-08 07:52:12 +0000

    databases/tiledb: Fix configure with CMake >= 3.27

    After [1], CMake trusts OPENSSL_ROOT_DIR implicitly, so if isn't set
    right, OpenSSL may not be found.

    This project uses OPENSSL_PATHS to set OPENSSL_ROOT_DIR, so CMake tries
    to find OpenSSL in TILEDB_EP_INSTALL_PREFIX which is problably not where
    we want to look. Pass ${OPENSSLBASE} to set OPENSSL_PATHS so we are
    looking in the right location.

    [1] https://github.com/Kitware/CMake/commit/5cc8a69867ac42333a656607d90059a6db823abd

    PR:             274225
    Approved by:    portmgr (blanket build fix)

 databases/tiledb/Makefile                                 |  1 +
 .../files/patch-cmake_Modules_FindOpenSSL__EP.cmake (new) | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-11-09 22:41:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5244b8425c414f0bca521df362eb62bb334640b3

commit 5244b8425c414f0bca521df362eb62bb334640b3
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-11-09 22:32:11 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-11-09 22:40:34 +0000

    devel/cmake*: Update to 3.27.7 [1]

    Add support for keywords like RUNTIME_DEPENDENCY_SET and
    RUNTIME_DEPENDENCIES in the install() command and
    GET_RUNTIME_DEPENDENCIES in the file() command. [2]

    https://cmake.org/cmake/help/v3.27/release/3.27.html

    PR:             274225 [1], 274275 [2]
    Reported by:    yuri [2]
    Exp-run by:     antoine [1]

 Mk/Uses/cmake.mk                                   |   2 +-
 devel/cmake-core/Makefile                          |   8 +-
 devel/cmake-core/distinfo                          |   6 +-
 ...patch-Source_cmBinUtilsLinuxELFLinker.cxx (new) |  20 ++++
 .../patch-Source_cmQtAutoGenInitializer.cxx (new)  |  25 +++++
 ...tch-Source_cmRuntimeDependencyArchive.cxx (new) |  33 +++++++
 ...9495033da40f798db9ec064d9b16ea672fc.diff (gone) |  47 ---------
 devel/cmake-core/pkg-plist                         | 109 +++++++++++++++++++--
 devel/cmake-doc/Makefile                           |   1 -
 devel/cmake-doc/pkg-plist                          |  98 +++++++++++++++---
 devel/cmake-gui/Makefile                           |  23 +++--
 11 files changed, 289 insertions(+), 83 deletions(-)
Comment 5 Jason E. Hale freebsd_committer freebsd_triage 2023-11-09 22:44:37 UTC
All build failures have been resolved. Thanks for the exp-run!