Bug 254616

Summary: emulators/virtualbox-ose: Use ccache from bsd.ccache.mk
Product: Ports & Packages Reporter: Derek Schrock <dereks>
Component: Individual Port(s)Assignee: Virtualbox Team (Nobody) <vbox>
Status: Open ---    
Severity: Affects Some People CC: grahamperrin
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (vbox)
Hardware: Any   
OS: Any   
See Also: https://reviews.freebsd.org/D29453
Bug Depends on: 254609    
Bug Blocks:    
Description Flags
Use bsd.ccache.mk values when building none

Description Derek Schrock 2021-03-27 22:52:35 UTC
Created attachment 223651 [details]
Use bsd.ccache.mk values when building

When using FreeBSD 12 llvm11 is used setting CC/CXX to a full path to localbase's binaries.

Use just the name and use ENV and MAKE_ENV when building such that PATH (using ccache's libexec symlink dir) and CCACHE_DIR set.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-11 03:21:25 UTC
How do other ports handle these compiler variables? I'm not sure moving from LOCALBASE/bin calls to PATH/env based invocations is the correct method. Shouldn't this be handled by Mk/bsd.ccache.mk?
Comment 2 Derek Schrock 2021-07-11 04:55:32 UTC
Since there isn't any framework support for kmk builds other ports are not setting do-build targets.  Look at bsd.ports.mk do-build target this is just emulating it.