diff mbox series

[meta-security,03/10] sssd: fix missing python3-logging run-time dependency

Message ID 20241025082239.3468351-4-gael.portay+rtone@gmail.com
State New
Headers show
Series sssd: fix python3 support | expand

Commit Message

Gaël PORTAY Oct. 25, 2024, 8:22 a.m. UTC
The internal tool sss_analyze is a python script run by the sssctl
command analyze.

The script sss_analyze imports the python module logging[1].

However, the package sssd lacks installing this python module that is
required to run the script.

This adds the missing run-time dependency python3-logging to ensure this
module comes along the package sssd.

Fixes:

	root@qemux86-64:~# sssctl analyze
	Traceback (most recent call last):
	  File "/usr/libexec/sssd/sss_analyze", line 3, in <module>
	    from sssd import sss_analyze
	  File "/usr/lib/python3.12/site-packages/sssd/sss_analyze.py", line 3, in <module>
	    from sssd.modules import request
	  File "/usr/lib/python3.12/site-packages/sssd/modules/request.py", line 2, in <module>
	    import logging
	ModuleNotFoundError: No module named 'logging'

[1]: https://github.com/SSSD/sssd/blob/2.9.2/src/tools/analyzer/source_files.py#L2

Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
---
 .../recipes-security/sssd/sssd_2.9.2.bb                | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb
index f6bbac3..e8f3031 100644
--- a/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb
+++ b/dynamic-layers/networking-layer/recipes-security/sssd/sssd_2.9.2.bb
@@ -156,4 +156,12 @@  FILES:${PN} += "${base_libdir}/security/pam_sss*.so  \
 
 FILES:libsss-sudo = "${libdir}/libsss_sudo.so"
 
-RDEPENDS:${PN} = "bind bind-utils dbus libldb libpam libsss-sudo python3-core"
+RDEPENDS:${PN} = "bind \
+                  bind-utils \
+                  dbus \
+                  libldb \
+                  libpam \
+                  libsss-sudo \
+                  python3-core \
+                  python3-logging \
+                  "