Bug 417334 - [macOS]konsole build fails if ccache is installed
Summary: [macOS]konsole build fails if ccache is installed
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 19.12.2
Platform: Homebrew (macOS) macOS
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL: https://github.com/KDE-mac/homebrew-k...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-09 12:22 UTC by Yurii Kolesnykov
Modified: 2020-03-28 15:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yurii Kolesnykov 2020-02-09 12:22:20 UTC
SUMMARY
konsole build fails if ccache is installed, uninstalling ccache fixes issue.

STEPS TO REPRODUCE
1. brew install kde-mac/kde/konsole

OBSERVED RESULT
/bin/sh: ccache: command not found
ninja: build stopped: subcommand failed.

EXPECTED RESULT
Builds fine

SOFTWARE/OS VERSIONS
macOS: 10.15.4 beta 1 (19E224g)
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 1 Yurii Kolesnykov 2020-02-09 12:22:46 UTC
Log is here https://git.io/Jvctn
Comment 2 Kurt Hindenburg 2020-02-09 14:23:24 UTC
I use macports and it builds here on 10.15.3 and 10.13.6 using kdesrc-build(.kde.org).

I haven't tried building KDE w/ ninja and haven't used homebrew in ages.

I'll try to research it.
Comment 3 Kurt Hindenburg 2020-02-11 18:54:57 UTC
Somewhere in the logs should be a check for ccache

find_program(CCACHE_FOUND "ccache")

If you want, change this line to OFF in CMakeLists.txt

set(CCACHE_SUPPORT ON CACHE BOOL "Enable ccache support")
Comment 4 Yurii Kolesnykov 2020-02-29 16:02:29 UTC
This is definitely a bug in CMake script, because brew uses sandbox to build software.
Comment 5 Kurt Hindenburg 2020-03-28 15:30:18 UTC
Due to continued issues, the ccache has been removed from master and 20.04.  I would suggest patching it for earlier versions.