summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/libselinux-python_3.1.bb
blob: 854eca90b74cd8cac94f18224e04be6dc577e3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SELINUX_RELEASE = "20200710"

SRC_URI = "https://github.com/SELinuxProject/selinux/releases/download/${SELINUX_RELEASE}/libselinux-${PV}.tar.gz"

require ${BPN}.inc

inherit python3targetconfig

LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0"

SRC_URI[md5sum] = "693680c021feb69a4b258b0370021461"
SRC_URI[sha256sum] = "ea5dcbb4d859e3f999c26a13c630da2f16dff9462e3cc8cb7b458ac157d112e7"

SRC_URI += "\
        file://libselinux-make-O_CLOEXEC-optional.patch \
        file://libselinux-make-SOCK_CLOEXEC-optional.patch \
        file://libselinux-define-FD_CLOEXEC-as-necessary.patch \
        file://0001-Makefile-fix-python-modules-install-path-for-multili.patch \
        file://0001-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch \
        "

SRC_URI_append_libc-musl = " \
        file://0001-libselinux-do-not-define-gettid-for-musl.patch \
        "

S = "${WORKDIR}/libselinux-${PV}"