Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781611 - sys-apps/selinux-python: Add "gui" USE flag for `sepolicy gui`
Summary: sys-apps/selinux-python: Add "gui" USE flag for `sepolicy gui`
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement with 1 vote (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 01:01 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-04-09 10:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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]
	)"