Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807823 - sys-devel/distcc-3.4 set the whitelist directory seems to be incompatible with gentoo prefix
Summary: sys-devel/distcc-3.4 set the whitelist directory seems to be incompatible wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-12 06:52 UTC by xlbcwn
Modified: 2021-08-12 17:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xlbcwn 2021-08-12 06:52:05 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-12 17:35:50 UTC
Thanks.  I'll add EPREFIX there.
Comment 2 Larry the Git Cow gentoo-dev 2021-08-12 17:36:14 UTC
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(-)