sys-devel/distcc-3.4 set the white list directory as /usr/lib at compile time, so the program would always look into this directory for white list. However, on a prefix environment without root privilege, it might be difficult to access relevant file. With the relevant files not created, dcc_check_compiler_whitelist call in src/serve.c would be triggered, reporting that directory /usr/lib/devcc does not exsist. This problems seems to be caused by the line --libdir=/usr/lib in the ebuild file, and changing it into --libdir="${EPREFIX}/usr/lib" seems to work for me. I thought that the libdir parameter is only used for the white list directory check, in this version.
Thanks. I'll add EPREFIX there.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e30d073c559517de1115e5f021f3238f5cbdad2 commit 2e30d073c559517de1115e5f021f3238f5cbdad2 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-08-12 17:35:33 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-08-12 17:35:33 +0000 sys-devel/distcc: Add missing EPREFIX to libdir Closes: https://bugs.gentoo.org/807823 Signed-off-by: Michał Górny <mgorny@gentoo.org> sys-devel/distcc/distcc-3.4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)