Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 781611

Summary: sys-apps/selinux-python: Add "gui" USE flag for `sepolicy gui`
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: Current packagesAssignee: SE Linux Bugs <selinux>
Status: UNCONFIRMED ---    
Severity: enhancement CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arfrever Frehtes Taifersar Arahesis 2021-04-09 01:01:03 UTC
As seen in:
https://github.com/SELinuxProject/selinux/blob/7494bb1298b34396f556d8a54bc5edad1c0cfdf2/python/sepolicy/sepolicy.py#L310-L327

`sepolicy gui` command would import sepolicy.gui module, which needs other packages:
https://github.com/SELinuxProject/selinux/blob/b550c0e20221cca29ac51e6165feec3640baa3a5/python/sepolicy/sepolicy/gui.py#L27-L42

gi = dev-python/pygobject:3

gi.repository.Gtk with version 3.0 = x11-libs/gtk+:3[introspection]

sepolicy.sedbus needs:
https://github.com/SELinuxProject/selinux/blob/48dc232627d60e65b8b343036bc847df3bbef2ad/python/sepolicy/sepolicy/sedbus.py#L2-L5

dbus = dev-python/dbus-python

slip.dbus = dev-python/python-slip[dbus]


I suggest to add "gui" USE flag to sys-apps/selinux-python. (It is already global USE flag.)


IUSE="gui"
RDEPEND="...
	gui? (
		dev-python/dbus-python[${PYTHON_USEDEP}]
		dev-python/pygobject:3[${PYTHON_USEDEP}]
		dev-python/python-slip[dbus,${PYTHON_USEDEP}]
		x11-libs/gtk+:3[introspection,${PYTHON_USEDEP}]
	)"
Comment 1 Arfrever Frehtes Taifersar Arahesis 2021-04-09 01:04:45 UTC
(In reply to comment #0)

IUSE="gui"
RDEPEND="...
	gui? (
		dev-python/dbus-python[${PYTHON_USEDEP}]
		dev-python/pygobject:3[${PYTHON_USEDEP}]
		dev-python/python-slip[dbus,${PYTHON_USEDEP}]
		x11-libs/gtk+:3[introspection]
	)"