Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841518 - dev-util/spirv-llvm-translator-13.0.0-r2 doesn't build with ccache available on the system
Summary: dev-util/spirv-llvm-translator-13.0.0-r2 doesn't build with ccache available ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jan Henke
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2022-04-29 05:02 UTC by Joe Breuer
Modified: 2022-04-29 21:08 UTC (History)
2 users (show)

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


Attachments
Quick-fix turning off ccache in spirv-llvm-translator-13.0.0-r2.ebuild (pirv-llvm-translator-13.0.0-r2_ccache.patch,567 bytes, patch)
2022-04-29 05:02 UTC, Joe Breuer
Details | Diff
Build log of unpatched ebuild w/ ccache on the system (build.log,142.93 KB, text/plain)
2022-04-29 05:21 UTC, Joe Breuer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2022-04-29 05:02:56 UTC
Created attachment 775248 [details, diff]
Quick-fix turning off ccache in spirv-llvm-translator-13.0.0-r2.ebuild

Building dev-util/spirv-llvm-translator-13.0.0-r2 yields numerous sandbox violations when it detects ccache to be available on the system.

On the other hand, when turning off ccache (using the package-specific -DCCACHE_ALLOWED=OFF in mycmakeargs), ccache as provided by portage is not used either - this packages CMake then directly uses the compiler from /usr/bin, bypassing ccache.

I know how to get it to compile, see patch attached; I don't know how to deal with this better so it would honor the portage-wide ccache preference.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-29 05:07:20 UTC
Yeah, it shouldn't be automagically using ccache at all.
Comment 2 Joe Breuer 2022-04-29 05:21:01 UTC
Created attachment 775251 [details]
Build log of unpatched ebuild w/ ccache on the system
Comment 3 Conrad Kostecki gentoo-dev 2022-04-29 09:26:03 UTC
Seems be new :S (I have indeed ccache enabled)
Comment 4 Larry the Git Cow gentoo-dev 2022-04-29 21:08:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc043f55a905146dacb5c737c1f31f442176f41d

commit fc043f55a905146dacb5c737c1f31f442176f41d
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-04-29 20:19:27 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-04-29 20:19:27 +0000

    dev-util/spirv-llvm-translator: disable ccache
    
    Closes: https://bugs.gentoo.org/841518
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-util/spirv-llvm-translator/spirv-llvm-translator-13.0.0-r2.ebuild | 4 +++-
 dev-util/spirv-llvm-translator/spirv-llvm-translator-14.0.0-r1.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)