Bug 283626

Summary: databases/tiledb: configure broken since update to 2.27.0
Product: Ports & Packages Reporter: Rainer Hurling <rhurlin>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People CC: rhurlin
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   

Description Rainer Hurling freebsd_committer freebsd_triage 2024-12-26 13:57:11 UTC
Both with Poudriere and built in an unclean environment, I get the following abort during the configure phase:


===>  Configuring for tiledb-2.27.0
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/databases/tiledb/work/.build
Using vcpkg features: serialization;tools
-- Not found clang-tidy
-- Not found clang-format
-- was unable to find clang-format
CMake Error at cmake/Modules/FindCcache.cmake:3 (find_program):
  Could not find CCACHE using the following names: sccache, ccache
Call Stack (most recent call first):
  CMakeLists.txt:109 (include)

-- Configuring incomplete, errors occurred!
*** Error code 1


I am not using devel/ccache or devel/sccache in Poudriere or outside. Therefore CMAKE_ON=TILEDB_CCACHE should not be set in the Makefile. As soon as CMAKE_OFF=TILEDB_CCACHE is set on such systems, the port builds and installs correctly.

Perhaps it is possible to have cmake check whether devel/[s]ccache is present and only set TILEDB_CCACHE in these cases? Or the port itself could do this?
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-12-31 16:06:10 UTC
A commit in branch main references this bug:

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

commit 1ebf190b7ebc1c14cc7795c2d4fb2601f4457bc1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-31 15:57:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-12-31 15:57:16 +0000

    databases/tiledb: Allow build without ccache

    PR:             283626
    Reported by:    rhurlin

 databases/tiledb/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-12-31 16:14:56 UTC
I've tested this patch in a poudriere jail with ccache disabled. It should work now. Thanks.