Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486402 - sys-devel/clang: add ccache symlinks
Summary: sys-devel/clang: add ccache symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-29 00:09 UTC by Christoph Junghans (RETIRED)
Modified: 2013-10-28 00:25 UTC (History)
2 users (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 Christoph Junghans (RETIRED) gentoo-dev 2013-09-29 00:09:57 UTC
dev-util/ccache-3.1.9-r2 now supports clang (bug #484772).

However as clang might not be installed at the time when ccache gets installed some changes are needed in the clang ebuild, so that the user doesn't have to wait for the next ccache rebuild. 

in pkg_postinst
+       if has_version ">=dev-util/ccache-3.1.9-r2" ; then
+               #add ccache links as clang might get installed after ccache
+               "${EROOT}"/usr/bin/ccache-config --install-links
+       fi

in pkg_postrm
+       if has_version ">=dev-util/ccache-3.1.9-r2" && [[ -z ${REPLACED_BY_VERSION} ]]; then
+               # --remove-links would remove all links, --install-links updates them
+               "${EROOT}"/usr/bin/ccache-config --install-links
+       fi
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2013-10-28 00:25:48 UTC
+  28 Oct 2013; Christoph Junghans <ottxor@gentoo.org> clang-3.3-r100.ebuild,
+  clang-9999-r100.ebuild:
+  added ccache support (bug #486402)
+