ports-mgmt/sccache-overlay: Disable idle timeout by default

It seems like it is too easy to hit during Firefox builds and
then the server is gone and builds fail with:

sccache: error: Connection to server timed out

Since Firefox disables it itself do the same here.

Tested by:	jrm
This commit is contained in:
Tobias Kortkamp 2022-02-09 13:52:30 +01:00
parent efd75db88f
commit 200987777b
No known key found for this signature in database
GPG Key ID: A4F09FB73CC51F61
3 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= sccache
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.15
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= ports-mgmt
PKGNAMESUFFIX= -overlay

View File

@ -2,6 +2,7 @@
_SCCACHE_OVERLAY_INCLUDED= yes
SCCACHE_SIZE?= 16G
SCCACHE_IDLE_TIMEOUT?= 0
SCCACHE_UNIX_LISTEN?= /tmp/sccache-overlay.socket
_SCCACHE_LIBS= ${LOCALBASE}/share/sccache/overlay/lib
@ -26,6 +27,7 @@ IGNORE= SCCACHE_DIR not set
_SCCACHE_ENV= RUSTC_WRAPPER="${SCCACHE_BIN}" \
SCCACHE_CACHE_SIZE="${SCCACHE_SIZE}" \
SCCACHE_DIR="${SCCACHE_DIR}" \
SCCACHE_IDLE_TIMEOUT="${SCCACHE_IDLE_TIMEOUT}" \
SCCACHE_MAX_FRAME_LENGTH=104857600 \
SCCACHE_UNIX_LISTEN="${SCCACHE_UNIX_LISTEN}"
CONFIGURE_ENV+= ${_SCCACHE_ENV}
@ -45,8 +47,7 @@ sccache-stats:
@${SETENV} ${_SCCACHE_ENV} ${SCCACHE_BIN} --show-stats || ${TRUE}
# We let Poudriere clean up the server. Users who build locally
# can stop the server with `make sccache-stop` manually or wait
# 10 minutes after the build until it shuts down automatically.
# can stop the server with `make sccache-stop` manually.
sccache-stop:
@${ECHO_MSG} "==> Stopping sccache"
@${SETENV} ${_SCCACHE_ENV} ${SCCACHE_BIN} --stop-server

View File

@ -10,9 +10,9 @@ SCCACHE_DIR= ${HOME}/.sccache
OVERLAYS+= %%DATADIR%%/overlay
During the build a sccache server is started, bound to
${SCCACHE_UNIX_LISTEN} (default /tmp/sccache-overlay.socket). It
automatically shuts down after 600 seconds if nothing is using
it. To cleanly shut it down earlier use
${SCCACHE_UNIX_LISTEN} (default /tmp/sccache-overlay.socket).
Idle timeout has been disabled to make builds more reliable. To
cleanly shut down the server after the build use
$ make sccache-stop