Created attachment 200196 [details] fusefs-webdavfs-optimize-build-with-poudriere-and-ccache.patch Hello, attached is a patch that optimizes the build of sysutils/fusefs-webdavfs when poudriere is used together with ccache. Problem description: ~~~~~~~~~~~~~~~~~~~~ When poudriere is used with ccache the directory of ccache is mounted by default as .ccache in ${WRKDIR}. If the cache is very large and contains many small files the build of sysutils/fusefs-webdavfs may fail in the patch stage because the 'grep -Flr' command dives also into ${WRKDIR}/.ccache and thus takes too much time to finish. The attached patch remedies the problem by searching/editing only '*.go' source files in ${WRKDIR}. This also decreases the overall build time. QA: ~~~ - poudriere (11.2-RELEASE amd64) -> OK
A commit references this bug: Author: eugen Date: Mon Dec 17 16:08:53 UTC 2018 New revision: 487694 URL: https://svnweb.freebsd.org/changeset/ports/487694 Log: sysutils/fusefs-webdavfs: update to g20181010 - mount options: cookie and rwdirops; - specify multiple licenses (BSD3CLAUSE, BSD4CLAUSE and MIT) for this multi-distfiles port; - optimize post-patch target to look only for '*.go' files and recurse only to two needed directories; this prevents it from descending into .ccache directory mounted by poudriere+ccache inside WORKDIR. (*) PR: 234099 Reported by: Kai <freebsd_ports@k-worx.org> (*) Changes: head/sysutils/fusefs-webdavfs/Makefile head/sysutils/fusefs-webdavfs/distinfo
Thank you for the report! I've committed slightly different change so it does not descend into .ccache at all, if it is present.
(In reply to Eugene Grosbein from comment #2) Thank you for the quick commit and update!