portage expects the ccache symlink dir to be /usr/${LIBDIR_${DEFAULT_ABI}}/ccache/bin. However, modern versions of ccache install symlinks in /usr/lib/ccache/bin. This results in the following error on amd64 when SYMLINK_LIB=no: !!! Directory does not exist: '/usr/lib64/ccache/bin' !!! Disabled FEATURES='ccache'
Didn't I fix that?
commit a41c0f8b9081dad610e6e82ab57a5adce30789ae Author: Michał Górny <mgorny@gentoo.org> Date: Sun Dec 13 09:04:55 2015 doebuild: Support finding lib* for ccache/distcc/icecc masquerade dir Gentoo ccache used to historically swap between storing its masquerade in 'lib' and $(get_libdir). To prevent breakage with any version of it, and prevent future breakages when other tools change places randomly try all three of $(get_libdir), 'lib' and 'libexec' looking for masquerade dir and use the one that's found. Additionally, warn if there is no masquerade dir. Fixes: https://bugs.gentoo.org/show_bug.cgi?id=567360 Reviewed-by: Zac Medico <zmedico@gentoo.org> Looks that my fix covered PATH generation but not detecting whether the feature is to be disbled.
New patch here: https://github.com/gentoo/portage/pull/53
In the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=96338b8a2add3ab5f7f77fef41570807374771e3
Fixed in portage-2.3.3.
*** Bug 567360 has been marked as a duplicate of this bug. ***