Introduce standard subpackage -man for man pages
Problem
Man pages are currently included in -doc
subpackages. The problem is that -doc
is too general and some packages bloat it with huge HTML docs (including images, CSS, JS files…). It’s also used for configuration examples, licenses and basically any stuff that remotely resembles something like a documentation or examples.
A few examples of such packages:
- bullet-doc – 311 MiB
- db-doc – 93.34 MiB
- libdap-doc – 27 MiB
- pipewire-doc – 24 MiB
There’s a metapackage docs
that automatically install a corresponding -doc
package for every installed package. I’d like to install only man pages for each installed package, not any HTML pages and other bloat. This is currently not possible.
Proposal
I propose to introduce a standard subpackage -man
that will be intended for man pages only.
- Add predefined split function
man
to/usr/bin/abuild
. Move logic for man pages fromdefault_doc
todefault_man
. Updatepostcheck
.depends="" pkgdesc="$pkgdesc (man pages)" install_if="mans $pkgname=$pkgver-r$pkgrel"
- Create meta package
mans
(analogous todocs
). - Mass-update all aports with man pages in
-doc
– add$pkgname-man
to their subpackages.
Alternative solutions
- We can ban huge HTML pages and PDFs in
-doc
packages. The problem is that it’s kinda fuzzy.
Questions
- Should
-doc
depend on-man
?