summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-24 02:54:16 +0100
committerSam James <sam@gentoo.org>2022-06-24 04:13:47 +0100
commit24e00c48c4f5b13440cb8982fe0b07006a234e6d (patch)
treebb04e343bec4e280116d8d6c3c346755e0ed8ae9 /app-admin/selint
parentapp-misc/nnn: fix build on musl (diff)
downloadgentoo-24e00c48c4f5b13440cb8982fe0b07006a234e6d.tar.gz
gentoo-24e00c48c4f5b13440cb8982fe0b07006a234e6d.tar.bz2
gentoo-24e00c48c4f5b13440cb8982fe0b07006a234e6d.zip
app-admin/selint: fix build on musl
Thanks-to: CFuga <cfuga@cfuga.mx> Closes: https://bugs.gentoo.org/828696 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/selint')
-rw-r--r--app-admin/selint/selint-1.2.0.ebuild9
-rw-r--r--app-admin/selint/selint-1.2.1.ebuild7
-rw-r--r--app-admin/selint/selint-9999.ebuild7
3 files changed, 18 insertions, 5 deletions
diff --git a/app-admin/selint/selint-1.2.0.ebuild b/app-admin/selint/selint-1.2.0.ebuild
index e7fc31765fae..d8f4a20dbd0a 100644
--- a/app-admin/selint/selint-1.2.0.ebuild
+++ b/app-admin/selint/selint-1.2.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Static code analysis of refpolicy style SELinux policy"
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki"
@@ -23,7 +23,8 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/confuse:=
- dev-libs/uthash"
+ dev-libs/uthash
+ elibc_musl? ( sys-libs/fts-standalone )"
DEPEND="${RDEPEND}
test? ( dev-libs/check )"
@@ -35,5 +36,7 @@ src_prepare() {
}
src_configure() {
+ use elibc_musl && append-libs "-lfts"
+
econf $(use_with test check)
}
diff --git a/app-admin/selint/selint-1.2.1.ebuild b/app-admin/selint/selint-1.2.1.ebuild
index db21da9231ac..358b8be6eee1 100644
--- a/app-admin/selint/selint-1.2.1.ebuild
+++ b/app-admin/selint/selint-1.2.1.ebuild
@@ -3,6 +3,8 @@
EAPI="8"
+inherit flag-o-matic
+
DESCRIPTION="Static code analysis of refpolicy style SELinux policy"
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki"
@@ -21,7 +23,8 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/confuse:=
- dev-libs/uthash"
+ dev-libs/uthash
+ elibc_musl? ( sys-libs/fts-standalone )"
DEPEND="${RDEPEND}
test? ( dev-libs/check )"
@@ -33,5 +36,7 @@ src_prepare() {
}
src_configure() {
+ use elibc_musl && append-libs "-lfts"
+
econf $(use_with test check)
}
diff --git a/app-admin/selint/selint-9999.ebuild b/app-admin/selint/selint-9999.ebuild
index db21da9231ac..358b8be6eee1 100644
--- a/app-admin/selint/selint-9999.ebuild
+++ b/app-admin/selint/selint-9999.ebuild
@@ -3,6 +3,8 @@
EAPI="8"
+inherit flag-o-matic
+
DESCRIPTION="Static code analysis of refpolicy style SELinux policy"
HOMEPAGE="https://github.com/TresysTechnology/selint/wiki"
@@ -21,7 +23,8 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/confuse:=
- dev-libs/uthash"
+ dev-libs/uthash
+ elibc_musl? ( sys-libs/fts-standalone )"
DEPEND="${RDEPEND}
test? ( dev-libs/check )"
@@ -33,5 +36,7 @@ src_prepare() {
}
src_configure() {
+ use elibc_musl && append-libs "-lfts"
+
econf $(use_with test check)
}