Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575818 - >=app-text/docbook-xsl-stylesheets-1.79.0 bundles new java stuff, making it unnecessarily fat
Summary: >=app-text/docbook-xsl-stylesheets-1.79.0 bundles new java stuff, making it u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 608490
Blocks:
  Show dependency tree
 
Reported: 2016-02-27 14:03 UTC by Ben Kohler
Modified: 2017-04-09 09:19 UTC (History)
2 users (show)

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


Attachments
list of new files sorted by size (docbook-newfiles.txt,5.29 KB, text/plain)
2016-02-27 14:03 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2016-02-27 14:03:28 UTC
Created attachment 426746 [details]
list of new files sorted by size

Some new bundled java jars have made this package now quite fat.  I do not believe the bundled stuff is used at all, in fact we may be able to cut out all the java stuff altogether for gentoo.  I have CC'd releng because this affects stage3's, it's making them almost 20MB fatter.

qsize comparison:
app-text/docbook-xsl-stylesheets-1.78.0-r1: 1,828 files, 90 non-files, 21,457.327 KiB
app-text/docbook-xsl-stylesheets-1.79.0: 1,905 files, 94 non-files, 45,174.458 KiB

quickpkg (tbz2) comparison:
docbook-xsl-stylesheets-1.78.0-r1.tbz2 3.9M
docbook-xsl-stylesheets-1.79.0.tbz2 21M
Comment 1 Ben Kohler gentoo-dev 2016-02-27 16:18:49 UTC
I don't know enough about what docbook-xsl-stylesheets does to determine what can and should be pruned, but just as a point of reference:

I have removed /usr/share/sgml/docbook/xsl-stylesheets/tools/lib/*.jar and /usr/share/sgml/docbook/xsl-stylesheets/extensions/*.jar and successfully rebuilt all its rdeps on my desktop:

=app-cdr/k3b-2.0.3-r2
=app-text/asciidoc-8.6.9-r2
=app-text/docbook-xml-dtd-4.1.2-r6
=app-text/docbook-xml-dtd-4.2-r2
=app-text/docbook-xml-dtd-4.4-r2
=app-text/docbook-xml-dtd-4.5-r1
=app-text/xmlto-0.0.28-r1
=dev-libs/json-glib-1.0.4
=dev-python/pygtk-2.24.0-r4
=dev-python/pygtksourceview-2.10.1-r1
=gnome-base/dconf-0.24.0
=kde-apps/kdebase-kioslaves-15.08.3
=kde-apps/ksnapshot-15.08.3-r1
=kde-apps/libkcddb-15.12.1
=kde-apps/okular-15.12.1
=kde-base/katepart-4.14.3
=kde-base/kdelibs-4.14.16
=kde-frameworks/kdoctools-5.19.0
=media-video/mplayer-1.2.1
=sys-auth/polkit-0.113-r1
=sys-auth/polkit-pkla-compat-0.1
=sys-fs/udisks-2.1.6
=sys-power/upower-0.99.4
=x11-libs/gtk+-3.18.7
Comment 2 James Le Cuirot gentoo-dev 2016-03-09 17:05:35 UTC
Bundled jars are always bad news, even when they are supposed to be there. I don't have time right now to check exactly why they need to be present in this case but I think they should just be stripped out.
Comment 3 James Le Cuirot gentoo-dev 2016-03-13 21:32:38 UTC
commit 87dab152decd44422608056bf528ac2f8010fed2
Author: James Le Cuirot <chewi@gentoo.org>
Date:   Sun Mar 13 20:56:03 2016 +0000

    app-text/docbook-xsl-stylesheets: Fix #575818 (Java), #536600 (Ruby)
    
    Delete the unnecessary Java-related stuff and other tools as they
    bloat the stage3 tarballs massively. Fixes bug #575818. A java USE
    flag could be added but it's probably not worth the hassle.
    
    Use the ruby-single eclass as suggested by graaff in bug #536600. I
    was going to do dev-lang/ruby:* as suggested by pacho but ruby-single
    seems like the correct thing to do and I don't want to go against the
    Ruby team.
    
    This also removes a useless find call.