Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594982 - sys-apps/portage looks for ccache in the wrong place
Summary: sys-apps/portage looks for ccache in the wrong place
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 567360 (view as bug list)
Depends on:
Blocks: 604854
  Show dependency tree
 
Reported: 2016-09-24 02:47 UTC by Mike Gilbert
Modified: 2019-03-04 03:10 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 Mike Gilbert gentoo-dev 2016-09-24 02:47:10 UTC
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'
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-09-24 06:06:18 UTC
Didn't I fix that?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-09-24 06:09:02 UTC
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.
Comment 3 Zac Medico gentoo-dev 2016-09-24 06:50:38 UTC
New patch here:

https://github.com/gentoo/portage/pull/53
Comment 5 Zac Medico gentoo-dev 2017-02-10 18:51:05 UTC
Fixed in portage-2.3.3.
Comment 6 Mike Gilbert gentoo-dev 2019-03-04 03:10:45 UTC
*** Bug 567360 has been marked as a duplicate of this bug. ***