Bug 27805

Summary: python3-gobject forces large numbers of x11 libraries to be included in base installation
Product: Mageia Reporter: Joseph Wang <joequant>
Component: RPM PackagesAssignee: Joseph Wang <joequant>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: makowski.mageia, ngompa13, olav
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: python-gobject-3.38.0-4.mga8.src.rpm CVE:
Status comment:

Description Joseph Wang 2020-12-12 21:40:31 CET
Description of problem:

python3-gobject requires gtk which then pulls in many x11 libraries.  Unfortunately dnf pulls in python3-gobject which means that x11 libraries 
are getting pulled into a headless mageia server


Version-Release number of selected component (if applicable):


How reproducible:

Create basic image with dnf.  Notice it pulls in x11 libraries

The obvious solution would be to split up the files as opensuse does into

python3-gobject
python3-gobject-gdk
python3-gobject-cario
Comment 1 Joseph Wang 2020-12-12 21:43:19 CET
Note that this is affecting me because I'm trying to create some lightweight docker images of mageia, and this one dependency adds in about 100 rpm packages and about 200 meg to the system.
Comment 2 Neal Gompa 2020-12-12 22:20:18 CET
I would love for this to be solved, yes. Fedora does something similar with python3-gobject-base + python3-gobject.

I would favor the Fedora approach because then packages that use package names directly will do the right thing, while stuff using typelib dependencies will only get what they need.

CC: (none) => ngompa13

Comment 3 Lewis Smith 2020-12-13 20:47:18 CET
Well, this bug is not to be doubted with such credentials.
Doing:
 $ urpmq --requires-recursive python3-gobject
produces a long list of some 260 pkgs including gtk+3.0, loads of libraries only 2 of which specifically include x11. Academic.

Joseph being an important recent committer of this SRPM (also listed for python-gobject3), you will excuse me assigning it to you. Do as you see fit?

CC'ing philippem as the listed maintainer; and Olav as having committed version 3.38.0 .

Assignee: bugsquad => joequant
CC: (none) => makowski.mageia, olav

Comment 4 Philippe Makowski 2020-12-14 14:04:38 CET
(In reply to Neal Gompa from comment #2)
> I would favor the Fedora approach because then packages that use package
> names directly will do the right thing, while stuff using typelib
> dependencies will only get what they need.

I guess that we can go this way, yes

https://src.fedoraproject.org/rpms/pygobject3/blob/master/f/pygobject3.spec

Sorry, I have no time for this now, but Joseph, feel free to do so.
Comment 5 Joseph Wang 2020-12-14 15:29:19 CET
I changed the requires to split it into python3-gobject and python3-gobject-base with the gtk/gdk libraries all included in python3-gobject.

Will see if that works