mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-06 20:56:17 +02:00
sys-libs/libsepol: Sync with Gentoo
It's from Gentoo commit 8a5321f22b9e050c1fcb0c573edd8e7259f81315. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
d4ccd6ab48
commit
cd9a7e6787
@ -1 +1,2 @@
|
||||
DIST libsepol-3.8.1.tar.gz 513830 BLAKE2B f1877499a31289af941e36b80c1c25ca2b32205684d958c4a8b04e05006346138046e3f263e73db3889f918e2ff93818f4d6176de5d17669b863c853d04928e0 SHA512 6a66fbbc25f4ca5f58b07d19a70f3f6c233594ea5bc5a9f5d9f008eb03a83cea84ae0f03329f340b95e4f7135981d06cb9e66a7b3ca2f1494a71bbdcb5a01665
|
||||
DIST libsepol-3.9.tar.gz 515726 BLAKE2B 646bdb23fa249660208201c1a286eb42da0877cf38c3422afe7dab60d48b05a4db806bc54eb8a5c7f3a5f23eb75b448bac16a76a3c0c9d6368ec1fbcc1e5118b SHA512 9a198fb0b7f4981939e6556ba690892bda77446785c2015cdf4178fa303095186f255dfbebe04e6749a139379718a012349aa7a70fac94a860a3745c0536afe9
|
||||
|
||||
60
sdk_container/src/third_party/portage-stable/sys-libs/libsepol/libsepol-3.9.ebuild
vendored
Normal file
60
sdk_container/src/third_party/portage-stable/sys-libs/libsepol/libsepol-3.9.ebuild
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit dot-a toolchain-funcs multilib-minimal
|
||||
|
||||
MY_PV="${PV//_/-}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="SELinux binary policy representation library"
|
||||
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/SELinuxProject/selinux/releases/download/${MY_PV}/${MY_P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/2"
|
||||
IUSE="+static-libs"
|
||||
|
||||
# tests are not meant to be run outside of the full SELinux userland repo
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
my_make() {
|
||||
use static-libs && lto-guarantee-fat
|
||||
emake \
|
||||
PREFIX="${EPREFIX}/usr" \
|
||||
LIBDIR="\$(PREFIX)/$(get_libdir)" \
|
||||
SHLIBDIR="${EPREFIX}/$(get_libdir)" \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
tc-export CC AR RANLIB
|
||||
|
||||
local -x CFLAGS="${CFLAGS} -fno-semantic-interposition"
|
||||
|
||||
my_make
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
my_make DESTDIR="${D}" install
|
||||
if use static-libs; then
|
||||
strip-lto-bytecode
|
||||
else
|
||||
rm "${ED}"/usr/$(get_libdir)/*.a || die
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user