1 |
commit: 24e00c48c4f5b13440cb8982fe0b07006a234e6d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 24 01:54:16 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 03:13:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24e00c48 |
7 |
|
8 |
app-admin/selint: fix build on musl |
9 |
|
10 |
Thanks-to: CFuga <cfuga <AT> cfuga.mx> |
11 |
Closes: https://bugs.gentoo.org/828696 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
app-admin/selint/selint-1.2.0.ebuild | 9 ++++++--- |
15 |
app-admin/selint/selint-1.2.1.ebuild | 7 ++++++- |
16 |
app-admin/selint/selint-9999.ebuild | 7 ++++++- |
17 |
3 files changed, 18 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/app-admin/selint/selint-1.2.0.ebuild b/app-admin/selint/selint-1.2.0.ebuild |
20 |
index e7fc31765fae..d8f4a20dbd0a 100644 |
21 |
--- a/app-admin/selint/selint-1.2.0.ebuild |
22 |
+++ b/app-admin/selint/selint-1.2.0.ebuild |
23 |
@@ -1,9 +1,9 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI="7" |
29 |
|
30 |
-inherit toolchain-funcs |
31 |
+inherit flag-o-matic toolchain-funcs |
32 |
|
33 |
DESCRIPTION="Static code analysis of refpolicy style SELinux policy" |
34 |
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki" |
35 |
@@ -23,7 +23,8 @@ RESTRICT="!test? ( test )" |
36 |
|
37 |
RDEPEND=" |
38 |
dev-libs/confuse:= |
39 |
- dev-libs/uthash" |
40 |
+ dev-libs/uthash |
41 |
+ elibc_musl? ( sys-libs/fts-standalone )" |
42 |
|
43 |
DEPEND="${RDEPEND} |
44 |
test? ( dev-libs/check )" |
45 |
@@ -35,5 +36,7 @@ src_prepare() { |
46 |
} |
47 |
|
48 |
src_configure() { |
49 |
+ use elibc_musl && append-libs "-lfts" |
50 |
+ |
51 |
econf $(use_with test check) |
52 |
} |
53 |
|
54 |
diff --git a/app-admin/selint/selint-1.2.1.ebuild b/app-admin/selint/selint-1.2.1.ebuild |
55 |
index db21da9231ac..358b8be6eee1 100644 |
56 |
--- a/app-admin/selint/selint-1.2.1.ebuild |
57 |
+++ b/app-admin/selint/selint-1.2.1.ebuild |
58 |
@@ -3,6 +3,8 @@ |
59 |
|
60 |
EAPI="8" |
61 |
|
62 |
+inherit flag-o-matic |
63 |
+ |
64 |
DESCRIPTION="Static code analysis of refpolicy style SELinux policy" |
65 |
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki" |
66 |
|
67 |
@@ -21,7 +23,8 @@ RESTRICT="!test? ( test )" |
68 |
|
69 |
RDEPEND=" |
70 |
dev-libs/confuse:= |
71 |
- dev-libs/uthash" |
72 |
+ dev-libs/uthash |
73 |
+ elibc_musl? ( sys-libs/fts-standalone )" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
test? ( dev-libs/check )" |
77 |
@@ -33,5 +36,7 @@ src_prepare() { |
78 |
} |
79 |
|
80 |
src_configure() { |
81 |
+ use elibc_musl && append-libs "-lfts" |
82 |
+ |
83 |
econf $(use_with test check) |
84 |
} |
85 |
|
86 |
diff --git a/app-admin/selint/selint-9999.ebuild b/app-admin/selint/selint-9999.ebuild |
87 |
index db21da9231ac..358b8be6eee1 100644 |
88 |
--- a/app-admin/selint/selint-9999.ebuild |
89 |
+++ b/app-admin/selint/selint-9999.ebuild |
90 |
@@ -3,6 +3,8 @@ |
91 |
|
92 |
EAPI="8" |
93 |
|
94 |
+inherit flag-o-matic |
95 |
+ |
96 |
DESCRIPTION="Static code analysis of refpolicy style SELinux policy" |
97 |
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki" |
98 |
|
99 |
@@ -21,7 +23,8 @@ RESTRICT="!test? ( test )" |
100 |
|
101 |
RDEPEND=" |
102 |
dev-libs/confuse:= |
103 |
- dev-libs/uthash" |
104 |
+ dev-libs/uthash |
105 |
+ elibc_musl? ( sys-libs/fts-standalone )" |
106 |
|
107 |
DEPEND="${RDEPEND} |
108 |
test? ( dev-libs/check )" |
109 |
@@ -33,5 +36,7 @@ src_prepare() { |
110 |
} |
111 |
|
112 |
src_configure() { |
113 |
+ use elibc_musl && append-libs "-lfts" |
114 |
+ |
115 |
econf $(use_with test check) |
116 |
} |