Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948838 - dev-libs/glib: add 'man' USE flag to allow dropping dependencies required to build man pages [PATCH]
Summary: dev-libs/glib: add 'man' USE flag to allow dropping dependencies required to ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-26 01:21 UTC by Piotr Michalczyk
Modified: 2025-01-31 17:51 UTC (History)
2 users (show)

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


Attachments
Patch adds man USE flag to glib (glib-man-use-flag.patch,1.97 KB, patch)
2025-01-26 01:21 UTC, Piotr Michalczyk
Details | Diff

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