build-sys: bump libselinux requirement to >=2.2

The function declaration we use changed a bit since then.
In particular, some arguments became const. See following commit.

libselinux-2.2 was released on 20131030, and is widely available in
all major stable distributions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2020-12-01 13:08:30 +04:00
parent 20e23c701c
commit 7bd1e09c42

View File

@ -2063,7 +2063,7 @@ endif
selinux_dep = []
if host_system == 'linux'
selinux_dep = dependency('libselinux', required: get_option('selinux'))
selinux_dep = dependency('libselinux', version: '>=2.2', required: get_option('selinux'))
glib_conf.set('HAVE_SELINUX', selinux_dep.found())
endif