Summary: | sys-libs/libsemanage-3.0 - You must install libselinux-python and libsemanage-python before running this tool | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | SE Linux Bugs <selinux> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | bkohler |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dennis Schridde
2017-12-29 12:53:23 UTC
A couple of problems here: 1) semanage_migrate_store gets installed with python3 in its shebang, so it is prone to failure if the runtime python preference doesn't match what's enabled in PYTHON_TARGETS on this package. 2) semanage_migrate_store is installed unconditionally, and run unconditionally, but the tool is not functional at all unless USE=python is set. We may also want to consider whether the "|| die" is warranted here, does the full package install need to die if this step fails? The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a79a655cab347b276fcd15c20bc83aaa0a4fe78b commit a79a655cab347b276fcd15c20bc83aaa0a4fe78b Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2020-07-02 12:26:21 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2020-07-02 12:26:34 +0000 sys-libs/libsemanage: revbump for python fixes A python_fix_shebang was needed. Also it's clear that this ebuild has never really been tested with USE="-python", so python is no longer optional. With these fixes, the script run in pkg_postinst can be run with || die again. Bug: https://bugs.gentoo.org/642634 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Ben Kohler <bkohler@gentoo.org> sys-libs/libsemanage/libsemanage-3.0-r1.ebuild | 138 +++++++++++++++++++++++++ 1 file changed, 138 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c730666252a75f3360f974e429f9fd210072c6d commit 0c730666252a75f3360f974e429f9fd210072c6d Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2020-07-02 11:35:06 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2020-07-02 12:26:33 +0000 sys-libs/libsemanage: don't die in pkg_postinst Bug: https://bugs.gentoo.org/642634 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Ben Kohler <bkohler@gentoo.org> sys-libs/libsemanage/libsemanage-3.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |