commit:     6d29e0c6e0a2208423cfdd76562fd2d7371c2dae
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 22 16:34:55 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Nov 22 16:34:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d29e0c6

sys-auth/sssd: do not install conditional python files

Closes: https://bugs.gentoo.org/822399
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/sssd-2.6.0-conditional-python-install.patch | 19 +++++++++++++++++++
 .../sssd/{sssd-2.6.0.ebuild => sssd-2.6.0-r1.ebuild}  |  2 ++
 2 files changed, 21 insertions(+)

diff --git a/sys-auth/sssd/files/sssd-2.6.0-conditional-python-install.patch 
b/sys-auth/sssd/files/sssd-2.6.0-conditional-python-install.patch
new file mode 100644
index 000000000000..04c18ceede8c
--- /dev/null
+++ b/sys-auth/sssd/files/sssd-2.6.0-conditional-python-install.patch
@@ -0,0 +1,19 @@
+--- a/src/tools/analyzer/Makefile.am
++++ b/src/tools/analyzer/Makefile.am
+@@ -1,5 +1,7 @@
+ pkgpythondir = $(python3dir)/sssd
++modulesdir = $(pkgpythondir)/modules
+ 
++if BUILD_PYTHON_BINDINGS
+ dist_pkgpython_SCRIPTS = \
+     sss_analyze.py \
+     $(NULL)
+@@ -10,7 +12,7 @@
+     source_reader.py \
+     $(NULL)
+ 
+-modulesdir = $(pkgpythondir)/modules
+ dist_modules_DATA = \
+     modules/request.py \
+     $(NULL)
++endif

diff --git a/sys-auth/sssd/sssd-2.6.0.ebuild 
b/sys-auth/sssd/sssd-2.6.0-r1.ebuild
similarity index 99%
rename from sys-auth/sssd/sssd-2.6.0.ebuild
rename to sys-auth/sssd/sssd-2.6.0-r1.ebuild
index 857e7084b74f..6b13c0aa927a 100644
--- a/sys-auth/sssd/sssd-2.6.0.ebuild
+++ b/sys-auth/sssd/sssd-2.6.0-r1.ebuild
@@ -90,6 +90,8 @@ BDEPEND="
 
 CONFIG_CHECK="~KEYS"
 
+PATCHES=( "${FILESDIR}"/${PN}-2.6.0-conditional-python-install.patch )
+
 MULTILIB_WRAPPED_HEADERS=(
        /usr/include/ipa_hbac.h
        /usr/include/sss_idmap.h

Reply via email to