[Bug 224471] bsd.gecko.mk: add conditional for ccache

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 17 Apr 2024 13:53:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224471

--- Comment #21 from Denis Shaposhnikov <dsh@bamus.cz> ---
Hi,

my temporary (I hope it is temporary) solution is using custom bsd.overlay.mk:

.if !defined(_DSH_OVERLAY_INCLUDED)
_DSH_OVERLAY_INCLUDED=  yes

.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
# From bsd.ccache.mk, because it isn't included yet. The system includes
# bsd.ccache.mk after bsd.overlay.mk.
.  if defined(CCACHE_WRAPPER_PATH)
CCACHE_PKG_PREFIX=      ${CCACHE_WRAPPER_PATH:C,/libexec/ccache$,,}
.  endif
CCACHE_PKG_PREFIX?=     ${LOCALBASE}
CCACHE_WRAPPER_PATH?=   ${CCACHE_PKG_PREFIX}/libexec/ccache
CCACHE_BIN?=            ${CCACHE_PKG_PREFIX}/bin/ccache

.  if ${.CURDIR:M*/www/firefox}
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224471
MOZ_OPTIONS+=   --with-ccache="${CCACHE_BIN}"
.  endif
.endif # defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)

.endif # !defined(_DSH_OVERLAY_INCLUDED)

and build it using poudriere with my own overlay ports tree.

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