Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597578 - sys-apps/dbus[-doc] should not build xml docs or require doc deps
Summary: sys-apps/dbus[-doc] should not build xml docs or require doc deps
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-10-19 22:29 UTC by C. Wijtmans
Modified: 2016-10-21 22:41 UTC (History)
1 user (show)

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


Attachments
dbus-1.10.12.ebuild.patch (file_597578.txt,829 bytes, patch)
2016-10-19 22:30 UTC, C. Wijtmans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description C. Wijtmans 2016-10-19 22:29:51 UTC
sys-apps/dbus[-doc] should not build xml docs or require doc deps
patch is tested and builds.
Comment 1 C. Wijtmans 2016-10-19 22:30:26 UTC
Created attachment 450778 [details, diff]
dbus-1.10.12.ebuild.patch
Comment 2 Mike Gilbert gentoo-dev 2016-10-20 14:33:41 UTC
Disabling "xml-docs" means disabling all man pages for this package. There's a big difference between basic man pages and doxygen docs, and controlling them both with the same USE flag does not make sense to me.

If you have dbus installed, you are likely running a desktop or a systemd-based system, and chances are that xmlto and docbook-xml-dtd are going to get pulled in by some related package anyway.

-1 from me.
Comment 3 C. Wijtmans 2016-10-20 14:35:57 UTC
This will be one of a series of patches to remove doc related dependencies. For my server that hasnt much disk space.
Comment 4 C. Wijtmans 2016-10-20 14:37:35 UTC
On that note packages its one of the packages pulling loads of document data so its not "just man pages". (Which i do not require plus man pages are docs)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-10-20 15:06:07 UTC
If you want to kill man page dependencies, a somewhat preferable solution is to provide a tarball with prebuilt manpages.

But if you have disk space problems, then you are either looking at cleaning build dependencies post build, or using binary packages.
Comment 6 C. Wijtmans 2016-10-20 15:34:35 UTC
both xmlto and docbookxml-dtd can be killed this way. (i already use nodoc noman noinfo).
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-10-20 20:55:30 UTC
Man pages are (basically) not optional in Gentoo, the fact the portage allows you to skip installing them is already a contradiction to that statement but that's what every new recruit is taught.

Imho, if you have space problems that require you to skip installation of man pages, you are going in a direction that requires you to customize Gentoo to extents that will probably not make it back into the distribution. Most likely with extra tools stripping the system from unwanted files after build, generating compressed filesystems (squashfs & co), etc.

Anyway if you don't want to go this far, feel free to explore the already mentioned INSTALL_MASK solution. There is even a tool to manage that it seems : app-portage/install-mask.
Comment 8 C. Wijtmans 2016-10-21 15:29:26 UTC
app-text/docbook-xml-dtd and xmlto and its dependencies have about 100MB of data not related to man pages.
Comment 9 C. Wijtmans 2016-10-21 15:30:04 UTC
(In reply to C.J. Wijtmans from comment #8)
> app-text/docbook-xml-dtd and xmlto and its dependencies have about 100MB of
> data not related to man pages.

Its in /usr/share/sgml.
Comment 10 Mike Gilbert gentoo-dev 2016-10-21 16:44:16 UTC
You can remove those files afterward. Or use binpkgs to eliminate build-time dependencies altogether.

emerge --depclean --with-bdeps=n
Comment 11 C. Wijtmans 2016-10-21 19:34:27 UTC
No i cant they will come back.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-21 22:36:30 UTC
(In reply to C.J. Wijtmans from comment #11)
> No i cant they will come back.

You keep saying these things when with a bit of knowledge you needn't go through all this fuss. Why are you so adversary to the intents of this distribution? :)
Comment 13 C. Wijtmans 2016-10-21 22:41:17 UTC
(In reply to Jeroen Roovers from comment #12)
> (In reply to C.J. Wijtmans from comment #11)
> > No i cant they will come back.
> 
> You keep saying these things when with a bit of knowledge you needn't go
> through all this fuss. Why are you so adversary to the intents of this
> distribution? :)

All the suggestions so far were "fuss" when it could have been as easy as editing a few lines :eyeroll:. Didnt know the distros intention was to use a lot of disk space witj files i will never use :(