diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-07-11 20:45:12 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-07-11 20:45:32 +0200 |
commit | 5bd9495d157f02609a2942992e42cf08121ea15a (patch) | |
tree | 1ea77d0fed7d2c4f9e0968f4b7f44b619072ab65 /app-editors | |
parent | app-portage/pkg-testing-tools: new package. (diff) | |
download | gentoo-5bd9495d157f02609a2942992e42cf08121ea15a.tar.gz gentoo-5bd9495d157f02609a2942992e42cf08121ea15a.tar.bz2 gentoo-5bd9495d157f02609a2942992e42cf08121ea15a.zip |
app-editors/emacs: Work around jit not working with ccache
Bug: https://bugs.gentoo.org/801580
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/emacs/emacs-28.0.9999.ebuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app-editors/emacs/emacs-28.0.9999.ebuild b/app-editors/emacs/emacs-28.0.9999.ebuild index aeefea10ed81..4a6795ce8017 100644 --- a/app-editors/emacs/emacs-28.0.9999.ebuild +++ b/app-editors/emacs/emacs-28.0.9999.ebuild @@ -141,9 +141,16 @@ src_prepare() { || die "Upstream version number changed to ${FULL_VERSION}" fi - # These files ignore LDFLAGS. We assign the variable here, because - # for live ebuilds FULL_VERSION doesn't exist in global scope - use jit && QA_FLAGS_IGNORED="usr/$(get_libdir)/emacs/${FULL_VERSION}/native-lisp/.*" + if use jit; then + # These files ignore LDFLAGS. We assign the variable here, because + # for live ebuilds FULL_VERSION doesn't exist in global scope + QA_FLAGS_IGNORED="usr/$(get_libdir)/emacs/${FULL_VERSION}/native-lisp/.*" + # gccjit doesn't play well with ccache #801580 + # For now, work around the problem with an explicit LIBRARY_PATH + has ccache ${FEATURES} \ + && export LIBRARY_PATH=$("$(tc-getCC)" -print-search-dirs \ + | sed -n '/^libraries:/{s:^[^/]*::;p}') + fi default |