1 |
commit: 5bd9495d157f02609a2942992e42cf08121ea15a |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 11 18:45:12 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 11 18:45:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd9495d |
7 |
|
8 |
app-editors/emacs: Work around jit not working with ccache |
9 |
|
10 |
Bug: https://bugs.gentoo.org/801580 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
13 |
|
14 |
app-editors/emacs/emacs-28.0.9999.ebuild | 13 ++++++++++--- |
15 |
1 file changed, 10 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/app-editors/emacs/emacs-28.0.9999.ebuild b/app-editors/emacs/emacs-28.0.9999.ebuild |
18 |
index aeefea10ed8..4a6795ce801 100644 |
19 |
--- a/app-editors/emacs/emacs-28.0.9999.ebuild |
20 |
+++ b/app-editors/emacs/emacs-28.0.9999.ebuild |
21 |
@@ -141,9 +141,16 @@ src_prepare() { |
22 |
|| die "Upstream version number changed to ${FULL_VERSION}" |
23 |
fi |
24 |
|
25 |
- # These files ignore LDFLAGS. We assign the variable here, because |
26 |
- # for live ebuilds FULL_VERSION doesn't exist in global scope |
27 |
- use jit && QA_FLAGS_IGNORED="usr/$(get_libdir)/emacs/${FULL_VERSION}/native-lisp/.*" |
28 |
+ if use jit; then |
29 |
+ # These files ignore LDFLAGS. We assign the variable here, because |
30 |
+ # for live ebuilds FULL_VERSION doesn't exist in global scope |
31 |
+ QA_FLAGS_IGNORED="usr/$(get_libdir)/emacs/${FULL_VERSION}/native-lisp/.*" |
32 |
+ # gccjit doesn't play well with ccache #801580 |
33 |
+ # For now, work around the problem with an explicit LIBRARY_PATH |
34 |
+ has ccache ${FEATURES} \ |
35 |
+ && export LIBRARY_PATH=$("$(tc-getCC)" -print-search-dirs \ |
36 |
+ | sed -n '/^libraries:/{s:^[^/]*::;p}') |
37 |
+ fi |
38 |
|
39 |
default |