Bug 286404 - devel/cmake-gui fails to build
Summary: devel/cmake-gui fails to 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: https://gitlab.kitware.com/cmake/cmak...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-27 22:17 UTC by Ian Dickens
Modified: 2025-06-10 15:23 UTC (History)
1 user (show)

See Also:
jhale: maintainer-feedback+


Attachments
Build log (140.87 KB, text/plain)
2025-04-27 22:17 UTC, Ian Dickens
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Dickens 2025-04-27 22:17:41 UTC
Created attachment 259935 [details]
Build log

Fails to build for me at least even after resetting some options on FBSD 14.2P3
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-04-28 13:25:25 UTC
A commit in branch main references this bug:

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

commit 173806f44be4d33ab001357cea25ccc90b1c6eaf
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-04-28 13:15:04 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-04-28 13:24:57 +0000

    devel/cmake-(core|gui): Fix build with curl 8.13

    Add upstream patch to fix incompatibility with curl >= 8.13.0. This is fixed
    in CMake 3.31.7 and newer.

    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:178:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      178 |       curl_netrc_level = CURL_NETRC_OPTIONAL;
          |                          ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2355:29: note: expanded from macro 'CURL_NETRC_OPTIONAL'
     2355 | #define CURL_NETRC_OPTIONAL 1L /* A user:password in the URL will be preferred
          |                             ^~
    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:180:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      180 |       curl_netrc_level = CURL_NETRC_REQUIRED;
          |                          ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2357:29: note: expanded from macro 'CURL_NETRC_REQUIRED'
     2357 | #define CURL_NETRC_REQUIRED 2L /* A user:password in the URL will be ignored.
          |                             ^~
    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:182:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      182 |       curl_netrc_level = CURL_NETRC_IGNORED;
          |                          ^~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2353:29: note: expanded from macro 'CURL_NETRC_IGNORED'
     2353 | #define CURL_NETRC_IGNORED  0L /* The .netrc will never be read.
          |                             ^~

    PR:             286404
    Reported by:    Ian Dickens <ian@south-border.com>, pkg-fallout

 devel/cmake-core/Makefile | 3 +++
 devel/cmake-core/distinfo | 4 +++-
 devel/cmake-gui/Makefile  | 3 +++
 3 files changed, 9 insertions(+), 1 deletion(-)
Comment 2 Jason E. Hale freebsd_committer freebsd_triage 2025-04-28 13:30:43 UTC
Added link to upstream issue. Should be fixed now in our tree.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-06-10 15:23:11 UTC
A commit in branch 2025Q2 references this bug:

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

commit 06712205ceaac8b814d3ebddc68c0126f760405a
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-04-28 13:15:04 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-06-10 15:21:32 +0000

    devel/cmake-(core|gui): Fix build with curl 8.13

    Add upstream patch to fix incompatibility with curl >= 8.13.0. This is fixed
    in CMake 3.31.7 and newer.

    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:178:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      178 |       curl_netrc_level = CURL_NETRC_OPTIONAL;
          |                          ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2355:29: note: expanded from macro 'CURL_NETRC_OPTIONAL'
     2355 | #define CURL_NETRC_OPTIONAL 1L /* A user:password in the URL will be preferred
          |                             ^~
    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:180:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      180 |       curl_netrc_level = CURL_NETRC_REQUIRED;
          |                          ^~~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2357:29: note: expanded from macro 'CURL_NETRC_REQUIRED'
     2357 | #define CURL_NETRC_REQUIRED 2L /* A user:password in the URL will be ignored.
          |                             ^~
    /wrkdirs/usr/ports/devel/cmake-gui/work/cmake-3.31.6/Source/cmCurl.cxx:182:26:
    error: assigning to 'CURL_NETRC_OPTION' from incompatible type 'long'
      182 |       curl_netrc_level = CURL_NETRC_IGNORED;
          |                          ^~~~~~~~~~~~~~~~~~
    /usr/local/include/curl/curl.h:2353:29: note: expanded from macro 'CURL_NETRC_IGNORED'
     2353 | #define CURL_NETRC_IGNORED  0L /* The .netrc will never be read.
          |                             ^~

    PR:             286404
    Reported by:    Ian Dickens <ian@south-border.com>, pkg-fallout

    (cherry picked from commit 173806f44be4d33ab001357cea25ccc90b1c6eaf)

 devel/cmake-core/Makefile | 3 +++
 devel/cmake-core/distinfo | 4 +++-
 devel/cmake-gui/Makefile  | 3 +++
 3 files changed, 9 insertions(+), 1 deletion(-)