File 0002-use-python2-for-selinux-detection.patch of Package 389-ds.8204
Use default python interpreter (python 2) in ds_selinux_enabled python script, because
openSUSE and SLES distributions do not yet ship python-selinux in python 3.
Howard Guo <hguo@suse.com> 2017-08-08
diff -rupN 389-ds-base-1.3.6.6/ldap/admin/src/scripts/ds_selinux_enabled.in 389-ds-base-1.3.6.6-patched/ldap/admin/src/scripts/ds_selinux_enabled.in
--- 389-ds-base-1.3.6.6/ldap/admin/src/scripts/ds_selinux_enabled.in 2017-05-22 18:29:53.000000000 +0200
+++ 389-ds-base-1.3.6.6-patched/ldap/admin/src/scripts/ds_selinux_enabled.in 2017-08-08 16:28:12.999521983 +0200
@@ -1,4 +1,4 @@
-#!@pythonexec@
+#!/usr/bin/env python
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2016 Red Hat, Inc.
@@ -14,7 +14,6 @@
import sys
import selinux
-import semanage
# Returns 1 for true, 0 for false.