[Bug 277189] devel/cmake-core: add NO_CCACHE handle to allow disable ccache build

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 20 Feb 2024 14:22:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277189

            Bug ID: 277189
           Summary: devel/cmake-core: add NO_CCACHE handle to allow
                    disable ccache build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: rozhuk.im@gmail.com
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

Created attachment 248637
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248637&action=edit
patch

Typically WITH_CCACHE_BUILD env var used together with NO_CCACHE:

/usr/ports/Mk/bsd.ccache.mk:.  if !defined(NO_CCACHE) &&
defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*} && \
/usr/ports/graphics/darktable/Makefile:.if "${WITH_CCACHE_BUILD}" == "yes" &&
!defined(NO_CCACHE)
/usr/ports/graphics/rawtherapee/Makefile:.if "${WITH_CCACHE_BUILD}" == "yes" &&
!defined(NO_CCACHE)
/usr/ports/lang/rust-bootstrap/Makefile:.if defined(WITH_CCACHE_BUILD) &&
!defined(NO_CCACHE)
/usr/ports/lang/rust/Makefile:.if defined(WITH_CCACHE_BUILD) &&
!defined(NO_CCACHE)
/usr/ports/misc/valentina/Makefile:.if !defined(WITH_CCACHE_BUILD) ||
defined(NO_CCACHE)
/usr/ports/net-im/telegram-desktop/Makefile:.if defined(WITH_CCACHE_BUILD) &&
!defined(NO_CCACHE)


This allow define NO_CCACHE in env where no ccache installed but
WITH_CCACHE_BUILD set in make.conf (it depend from cmake-core) to bootstrap
ccache.

-- 
You are receiving this mail because:
You are the assignee for the bug.