Add python3-distro and binutils to RDEPENDS for sepolicy to fix runtime
error:
$ sepolicy -h
Traceback (most recent call last):
File "/usr/bin/sepolicy", line 690, in <module>
gen_manpage_args(subparsers)
File "/usr/bin/sepolicy", line 375, in gen_manpage_args
man.add_argument("-o", "--os", dest="os", default=get_os_version(),
File "/usr/lib/python3.11/site-packages/sepolicy/__init__.py", line 1245, in
get_os_version
import distro
ModuleNotFoundError: No module named 'distro'
$ sepolicy generate --init /usr/sbin/sshd
/bin/sh: line 1: nm: command not found
Signed-off-by: Yi Zhao <[email protected]>
---
recipes-security/selinux/selinux-python_3.5.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/recipes-security/selinux/selinux-python_3.5.bb
b/recipes-security/selinux/selinux-python_3.5.bb
index 9ff63db..79125d0 100644
--- a/recipes-security/selinux/selinux-python_3.5.bb
+++ b/recipes-security/selinux/selinux-python_3.5.bb
@@ -54,8 +54,10 @@ RDEPENDS:${PN}-semanage = "\
${PN} \
"
RDEPENDS:${PN}-sepolicy = "\
+ binutils \
python3-core \
python3-codecs \
+ python3-distro \
python3-syslog \
python3-multiprocessing \
${PN} \
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60860): https://lists.yoctoproject.org/g/yocto/message/60860
Mute This Topic: https://lists.yoctoproject.org/mt/100916956/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-