Bug 254616 - emulators/virtualbox-ose: Use ccache from bsd.ccache.mk
Summary: emulators/virtualbox-ose: Use ccache from bsd.ccache.mk
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
Keywords: needs-qa
Depends on: 254609
  Show dependency treegraph
Reported: 2021-03-27 22:52 UTC by Derek Schrock
Modified: 2021-07-11 04:55 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)

Use bsd.ccache.mk values when building (1.30 KB, patch)
2021-03-27 22:52 UTC, Derek Schrock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.