Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 611010

Summary: media-sound/clementine-1.3.1-r5 build fails if ccache is disabled
Product: Gentoo Linux Reporter: Sergio <hujuice>
Component: Current packagesAssignee: Fat-Zer <fatzer2>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c, proxy-maint, sound
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: propoused patch for clementine-1.3.1-r5.ebuild

Description Sergio 2017-02-26 17:43:57 UTC
When I try to build clementine, I receive lots of these errors:
ACCESS DENIED:  utimes:       /mass/tmp/ccache
This is weird, because I've ccache installed but disabled.

emerge --info media-sound/clementine|grep -i ccache
ccache version 3.2.4 [disabled]
dev-util/ccache:          3.2.4::gentoo
CCACHE_DIR="/mass/tmp/ccache"
CCACHE_SIZE="2G"
OLDPWD="/mass/tmp/ccache"

Also, I enable ccache per package and it works fine and as expected for all other packages.

The workaround, in fact, is to give up and enable ccache. If I give
FEATURES="${FEATURES} ccache" emerge media-sound/clementine
the build works.

Reproducible: Always

Steps to Reproduce:
1. Install and configure ccache, but don't enable it in FEATURES
2. Emerge media-sound/clementine-1.3.1-r5
Actual Results:  
Compilation failure.

Expected Results:  
Compilation success.

ccache should be disabled, but the second part of my log is full of message like the following. These messages confirm that ccache is in use, while it should not.
F: utimes
S: deny
P: /mass/tmp/ccache
A: /mass/tmp/ccache
R: /mass/tmp/ccache
C: /usr/bin/ccache /usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_BIND_NO_PLACEHOLDERS -DBUILD_QXT_CORE -DBUILD_QXT_GUI -DQT_CORE_LIB -DQT_DBUS_LIB -DQ
T_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_OPENGL_LIB -DQT_SQL_LIB -DQT_STRICT_ITERATORS -D
QT_USE_QSTRINGBUILDER -DQT_WEBKIT_LIB -DQT_XML_LIB -DQXT_STATIC -I/usr/include/taglib -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtCore 
-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -isystem /usr/include/qt4/QtOpenGL -isy
stem /usr/include/qt4/QtWebKit -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtDBus -isystem /usr/include/qt4/QtXml -isystem /usr/inc
lude/qt4/QtSql -isystem /usr/include/qt4/QtNetwork -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/3rdparty/qsqlite -I/v
ar/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1 -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/clementine-1.3.1_bui
ld/src -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/src -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Cleme
ntine-1.3.1/src/../3rdparty/gmock/gtest/include -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/clementine-1.3.1_build -I/var/tmp/portage
/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/3rdparty/qtsingleapplication -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Cleme
ntine-1.3.1/3rdparty/qtiocompressor -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/3rdparty/qxt -I/var/tmp/portage/medi
a-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/3rdparty/sha2 -I/usr/include/mygpo-qt -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/C
lementine-1.3.1/ext/libclementine-common -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/ext/libclementine-tagreader -I/
var/tmp/portage/media-sound/clementine-1.3.1-r5/work/clementine-1.3.1_build/ext/libclementine-tagreader -I/var/tmp/portage/media-sound/clementine
-1.3.1-r5/work/Clementine-1.3.1/ext/libclementine-remote -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/clementine-1.3.1_build/ext/libcl
ementine-remote -I/var/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/ext/libclementine-spotifyblob -I/var/tmp/portage/media-s
ound/clementine-1.3.1-r5/work/clementine-1.3.1_build/ext/libclementine-spotifyblob -I/usr/include/libusb-1.0 -DQT_NO_DEBUG_OUTPUT -DNDEBUG -march
=bdver2 -O2 -pipe -fno-stack-protector -Woverloaded-virtual -Wall -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-
unused-private-field -Wno-unknown-warning-option --std=c++0x -U__STRICT_ANSI__ -o CMakeFiles/clementine_lib.dir/core/mergedproxymodel.cpp.o -c /v
ar/tmp/portage/media-sound/clementine-1.3.1-r5/work/Clementine-1.3.1/src/core/mergedproxymodel.cpp
Comment 1 Fat-Zer 2017-03-04 17:21:41 UTC
I can confirm that ccache is support is triggered automagically, which is wrong, but I couldn't reproduce your issue with sandbox violation.

Could you please verify that the following patch fixes it?
Comment 2 Fat-Zer 2017-03-04 17:22:36 UTC
Created attachment 465950 [details, diff]
propoused patch for clementine-1.3.1-r5.ebuild
Comment 3 Sergio 2017-03-04 17:53:33 UTC
Yes. The patched ebuild works smoothly, as expected.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-03-04 19:11:10 UTC
commit b9ca7b18310b0796d074b748c357ba712ccc242f
Author: Alexander Golubev <fatzer2@gmail.com>
Date:   Sat Mar 4 20:09:00 2017

    media-sound/clementine: Avoid automagically enabling of ccache (bug #611010)