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

Bug 948838

Summary: dev-libs/glib: add 'man' USE flag to allow dropping dependencies required to build man pages [PATCH]
Product: Gentoo Linux Reporter: Piotr Michalczyk <gentoo>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gentoo, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=496652
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch adds man USE flag to glib

Description Piotr Michalczyk 2025-01-26 01:21:48 UTC
Created attachment 917506 [details, diff]
Patch adds man USE flag to glib

Currently man pages are built unconditionally. Unfortunately building man pages requires additional 6 packages on a docker image I use:
* dev-python/docutils
* dev-python/pillow
* dev-python/olefile
* dev-python/pygments
* media-libs/libjpeg-turbo
* dev-lang/nasm
In a container that uses 'noman' FEATURE flag anyway, this unnecessarily enlarges image.

I'm attaching patch with necessary changes against glib-2.80.5-r1.ebuild
Comment 1 Ionen Wolkens gentoo-dev 2025-01-26 01:35:00 UTC
As a note, you can depclean build-only deps if need to reduce size.

e.g. emerge --depclean --with-bdeps=n

Will wastefully re-emerge them when you update the package though.

That aside, (always) installing man pages without a USE often been debated as a policy and many developers are against making them optional, and if they have annoying dependencies then providing prebuilt ones is an alternative (but that increases maintenance burden if upstream does not provide them) -- not that it became an actual policy, so it's up to maintainers (which is not me for glib).