Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922136 - =app-admin/setools-4.4.2: missing dependency on dev-python/networkx for 'sedta'
Summary: =app-admin/setools-4.4.2: missing dependency on dev-python/networkx for 'sedta'
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 22:41 UTC by Marc Schiffbauer
Modified: 2024-01-17 01:33 UTC (History)
2 users (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 Marc Schiffbauer gentoo-dev 2024-01-14 22:41:06 UTC
~ # sedta -S -s staff_t -t unconfined_t staff_sudo_t newrole_t
NetworkX is not available.  This is requried for Domain Transition Analysis.
This is typically in the python3-networkx package.
name 'nx' is not defined
Comment 1 Kenton Groombridge gentoo-dev 2024-01-16 22:45:05 UTC
This is unfortunately because we are currently packaging setools with a patch that removes its dependency on networkx, which in turn pulls in xorg-server, even on headless systems.

Maybe we should add a 'sedta' USE flag specifically to enable this tool and pull in networkx?
Comment 2 Marc Schiffbauer gentoo-dev 2024-01-16 23:06:28 UTC
(In reply to Kenton Groombridge from comment #1)
> This is unfortunately because we are currently packaging setools with a
> patch that removes its dependency on networkx, which in turn pulls in
> xorg-server, even on headless systems.
> 
> Maybe we should add a 'sedta' USE flag specifically to enable this tool and
> pull in networkx?

On the server I discovered this missing dep I have no xorg-server installed and also networkx did not pull it, so maybe that problem hat been resolved already in the past?
Comment 3 Kenton Groombridge gentoo-dev 2024-01-16 23:29:28 UTC
(In reply to Marc Schiffbauer from comment #2)
> On the server I discovered this missing dep I have no xorg-server installed
> and also networkx did not pull it, so maybe that problem hat been resolved
> already in the past?

Ahh I think you're right. I took another look at networkx's ebuild and it seems that some changes happened in the virtualx eclass. Now it only pulls in xorg-server if you've enabled tests.

This is an easy fix then.
Comment 4 Larry the Git Cow gentoo-dev 2024-01-17 01:33:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cee102b9f47d416612fcf36b5f80d3bb99011b57

commit cee102b9f47d416612fcf36b5f80d3bb99011b57
Author:     Kenton Groombridge <concord@gentoo.org>
AuthorDate: 2024-01-17 00:51:31 +0000
Commit:     Kenton Groombridge <concord@gentoo.org>
CommitDate: 2024-01-17 01:28:57 +0000

    app-admin/setools: add 4.4.4
    
    Bug: https://bugs.gentoo.org/922136
    Signed-off-by: Kenton Groombridge <concord@gentoo.org>

 app-admin/setools/Manifest             |  1 +
 app-admin/setools/setools-4.4.4.ebuild | 57 ++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)