1 |
commit: fd841336dfdefbc14907e2d9b1eb1a1a3f5f8b8e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 07:49:28 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 07:49:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd841336 |
7 |
|
8 |
app-forensics/honggfuzz: enable clang support with USE=clang |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/729256 |
12 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
app-forensics/honggfuzz/honggfuzz-2.3.1.ebuild | 5 +++-- |
16 |
app-forensics/honggfuzz/metadata.xml | 3 +++ |
17 |
2 files changed, 6 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/app-forensics/honggfuzz/honggfuzz-2.3.1.ebuild b/app-forensics/honggfuzz/honggfuzz-2.3.1.ebuild |
20 |
index 4cb2cc639af..e3754c110db 100644 |
21 |
--- a/app-forensics/honggfuzz/honggfuzz-2.3.1.ebuild |
22 |
+++ b/app-forensics/honggfuzz/honggfuzz-2.3.1.ebuild |
23 |
@@ -12,12 +12,13 @@ SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz |
24 |
LICENSE="Apache-2.0" |
25 |
SLOT="0" |
26 |
KEYWORDS="~amd64" |
27 |
-IUSE="" |
28 |
+IUSE="clang" |
29 |
|
30 |
RDEPEND=" |
31 |
>=sys-libs/binutils-libs-2.29:= |
32 |
sys-libs/libunwind:= |
33 |
app-arch/xz-utils |
34 |
+ clang? ( sys-libs/blocksruntime ) |
35 |
" |
36 |
|
37 |
DEPEND="${RDEPEND}" |
38 |
@@ -35,7 +36,7 @@ PATCHES=( |
39 |
|
40 |
pkg_pretend() { |
41 |
if tc-is-clang; then |
42 |
- die "${P} does not work on clang due to incomplete -fblock support: https://bugs.gentoo.org/729256. Please try gcc." |
43 |
+ use clang || die "${P}: to use clang enable USE=clang for ${P} (bug #729256)." |
44 |
fi |
45 |
} |
46 |
|
47 |
|
48 |
diff --git a/app-forensics/honggfuzz/metadata.xml b/app-forensics/honggfuzz/metadata.xml |
49 |
index 06de019661a..c314b69929b 100644 |
50 |
--- a/app-forensics/honggfuzz/metadata.xml |
51 |
+++ b/app-forensics/honggfuzz/metadata.xml |
52 |
@@ -5,6 +5,9 @@ |
53 |
<email>slyfox@g.o</email> |
54 |
<name>Sergei Trofimovich</name> |
55 |
</maintainer> |
56 |
+ <use> |
57 |
+ <flag name="clang">Enable clang support (pull <pkg>sys-libs/blocksruntime</pkg> dependency).</flag> |
58 |
+ </use> |
59 |
<upstream> |
60 |
<remote-id type="github">google/honggfuzz</remote-id> |
61 |
</upstream> |