Skip to content

Commit

Permalink
Mk: inherit NO_CCACHE_DEPEND=yes for all depend ports
Browse files Browse the repository at this point in the history
This prevent infinite recursion then ccache requires some ports
that requires ccache.
  • Loading branch information
rozhuk-im committed Dec 21, 2020
1 parent b765c5f commit dfe7746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mk/bsd.ccache.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ _CCACHEMKINCLUDED= yes
NO_CCACHE= t
.endif

.if defined(NO_CCACHE_DEPEND)
CCACHE_ENV+= NO_CCACHE_DEPEND=yes
.endif

# HOME is always set to ${WRKDIR} now. Try to use /root/.ccache as default.
.if defined(WITH_CCACHE_BUILD) && !defined(CCACHE_DIR)
. if defined(USER) && ${USER} == root
Expand Down
1 change: 1 addition & 0 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3996,6 +3996,7 @@ depends: pkg-depends extract-depends patch-depends lib-depends fetch-depends bui
${deptype:tl}-depends:
.if defined(${deptype}_DEPENDS) && !defined(NO_DEPENDS)
@${SETENV} \
${CCACHE_ENV} \
dp_RAWDEPENDS="${${deptype}_DEPENDS}" \
dp_DEPTYPE="${deptype}_DEPENDS" \
dp_DEPENDS_TARGET="${DEPENDS_TARGET}" \
Expand Down

0 comments on commit dfe7746

Please sign in to comment.