Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622610 - net-im/kadu-4.3-r1 sandbox violation accessing /var/ccache
Summary: net-im/kadu-4.3-r1 sandbox violation accessing /var/ccache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-24 12:26 UTC by Sławomir Nizio
Modified: 2017-11-03 02:12 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 Sławomir Nizio 2017-06-24 12:26:12 UTC
Happens with net-im/kadu 4.3-r1, was happening with some older versions/revisions too.

example related output lines:

P : /var/ccache
A: /var/ccache
R: /var/ccache
C: ccache /usr/bin/x86_64-pc-linux-gnu-g++ -DKADU_EXPORT_TESTS [cut]

Steps to reproduce:
- install ccache,
- make sure /var/ccache exists,
- have disabled ccache (FEATURES="-ccache"),
- emerge Kadu.

On systems that have dev-util/ccache installed but disabled, a possible workaround is to make sure /var/ccache does not exist.

A possible workaround (doable without chaning the build system) usable in ebuild is to call cmake with -DCCACHE_FOUND=OFF. (Like in jsoncpp-1.8.0.ebuild.)

Culprit - this being done in CMakeLists.txt:

## CCache is cool stuff to improve compilation time
find_program (CCACHE_FOUND ccache)
if (CCACHE_FOUND)
    set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
    set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif (CCACHE_FOUND)


configuration:
Portage 2.3.5 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3-vanilla, glibc-2.23-r4, 4
.4.0-sabayon x86_64)

ccache version 3.3.4 [disabled]
Comment 1 Maciej Mrozowski gentoo-dev 2017-11-03 02:12:36 UTC
Strange, I'm unable to reproduce, I do have non-standard ccache location but sandbox should have caught that.
Anyway, we cannot use CMake mechanism of handling ccache regardless, rather our CC/CXX compiler path overrides.
Thanks for reporting and investigation. Please reopen if that somehow didn't work.