Comment 4 for bug 493282

Revision history for this message
Martin Pitt (pitti) wrote : Re: hplip-data ballooned by 5MB in lucid

There's also a much easier potential for triming the package size, as the livefs build's fdupes check shows:

BEGIN fdupes
46062897 2461 3910
4551360 12 379280 usr/share/ppd/hplip/HP/hp-laserjet_p4014-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4014dn-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4014n-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4015-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4015dn-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4015n-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4015tn-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4015x-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4515-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4515n-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4515tn-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4515x-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p4515xm-ps.ppd
1524824 7 217832 usr/share/doc/libgtk2.0-common/changelog.gz usr/share/doc/libgtk2.0-common/ChangeLog.gz usr/share/doc/libgtk2.0-0/changelog.gz usr/share/doc/libgail-common/changelog.gz usr/share/doc/libgail18/changelog.gz usr/share/doc/libgtk2.0-bin/changelog.gz usr/share/doc/gtk2-engines-pixbuf/changelog.gz usr/share/doc/gtk2-engines-pixbuf/ChangeLog.gz
922590 3 307530 usr/share/ppd/hplip/HP/hp-color_laserjet_cm2320_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cm2320fxi_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cm2320n_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cm2320nf_mfp-ps.ppd
855376 1 855376 usr/share/doc/libsnmp-base/changelog.gz usr/share/doc/libsnmp15/changelog.gz
749940 3 249980 usr/share/ppd/hplip/HP/hp-laserjet_p2015_series-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2015dn_series-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2015n_series-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2015x_series-ps.ppd
731726 2 365863 usr/share/doc/libdrm2/changelog.gz usr/share/doc/libdrm-intel1/changelog.gz usr/share/doc/libdrm-radeon1/changelog.gz
721857 3 240619 usr/share/ppd/hplip/HP/hp-laserjet_p2055-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2055d-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2055dn-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_p2055x-ps.ppd
669490 5 133898 usr/share/themes/New\ Wave\ Dark\ Menus/gtk-2.0/default-gtkrc usr/share/themes/New\ Wave/gtk-2.0/gtkrc
614156 4 153539 usr/share/ppd/hplip/HP/hp-laserjet_1320-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1320_series-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1320n-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1320nw-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1320tn-ps.ppd
549650 2 274825 usr/share/ppd/hplip/HP/hp-color_laserjet_cp1514n-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cp1515n-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cp1518ni-ps.ppd
531902 14 37993 usr/share/doc/libmono-corlib2.0-cil/copyright usr/share/doc/libmono-system-data2.0-cil/copyright usr/share/doc/libmono-system2.0-cil/copyright usr/share/doc/libmono-security2.0-cil/copyright usr/share/doc/mono-2.0-gac/copyright usr/share/doc/mono-gac/copyright usr/share/doc/mono-runtime/copyright usr/share/doc/libmono-data-tds2.0-cil/copyright usr/share/doc/libmono-posix2.0-cil/copyright usr/share/doc/libmono-sharpzip2.84-cil/copyright usr/share/doc/libmono-sqlite2.0-cil/copyright usr/share/doc/libmono2.0-cil/copyright usr/share/doc/libmono-system-web2.0-cil/copyright usr/share/doc/libmono-cairo2.0-cil/copyright usr/share/doc/libmono-i18n-west2.0-cil/copyright
531196 4 132799 usr/share/doc/libc-bin/changelog.Debian.gz usr/share/doc/libc6/changelog.Debian.gz usr/share/doc/libc6-i686/changelog.Debian.gz usr/share/doc/libc-dev-bin/changelog.Debian.gz usr/share/doc/libc6-dev/changelog.Debian.gz
526592 2 263296 usr/share/ppd/hplip/HP/hp-color_laserjet_cp2025-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cp2025n-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cp2025x-ps.ppd
513004 4 128251 usr/share/doc/openoffice.org-common/changelog.Debian.gz usr/share/doc/ttf-opensymbol/changelog.Debian.gz usr/share/doc/openoffice.org-core/changelog.Debian.gz usr/share/doc/uno-libs3/changelog.Debian.gz usr/share/doc/ure/changelog.Debian.gz
501726 2 250863 usr/share/ppd/hplip/HP/hp-color_laserjet_2605-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2605dn-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2605dtn-ps.ppd
444850 2 222425 usr/share/ppd/hplip/HP/hp-laserjet_m2727_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_m2727nf_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_m2727nfs_mfp-ps.ppd
421795 1 421795 usr/share/ppd/hplip/HP/hp-laserjet_9055mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_9065mfp-ps.ppd
420684 4 105171 usr/share/doc/ttf-opensymbol/copyright usr/share/doc/openoffice.org-core/copyright usr/share/doc/uno-libs3/copyright usr/share/doc/ure/copyright usr/share/doc/openoffice.org-common/copyright
381334 1 381334 usr/share/ppd/hplip/HP/hp-cm8050_mfp_with_edgeline-ps.ppd usr/share/ppd/hplip/HP/hp-cm8060_mfp_with_edgeline-ps.ppd
379619 1 379619 usr/share/ppd/hplip/HP/hp-laserjet_m9040_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_m9050_mfp-ps.ppd
375296 1 375296 usr/lib/cli/mono-addins-0.2/Mono.Addins.CecilReflector.dll usr/lib/mono/gac/Mono.Addins.CecilReflector/0.4.0.0__0738eb9f132ed756/Mono.Addins.CecilReflector.dll
355732 2 177866 usr/share/ppd/hplip/HP/hp-laserjet_m1522_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_m1522n_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_m1522nf_mfp-ps.ppd
340410 1 340410 usr/share/ppd/hplip/HP/hp-laserjet_9040_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_9050_mfp-ps.ppd
334752 3 111584 usr/share/ubiquity/pixmaps/world_map-960.png usr/share/gnome-system-tools/pixmaps/world_map-960.png usr/share/evolution/2.28/images/world_map-960.png usr/share/gnome-panel/pixmaps/world_map-960.png
331659 3 110553 usr/share/doc/libgconf2.0-cil/changelog.gz usr/share/doc/libgnome-vfs2.0-cil/changelog.gz usr/share/doc/libart2.0-cil/changelog.gz usr/share/doc/libgnome2.24-cil/changelog.gz
327105 3 109035 usr/share/ppd/hplip/HP/hp-color_laserjet_2800-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2820-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2830-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2840-ps.ppd
297860 4 74465 usr/share/doc/libwbclient0/changelog.Debian.gz usr/share/doc/libsmbclient/changelog.Debian.gz usr/share/doc/samba-common/changelog.Debian.gz usr/share/doc/samba-common-bin/changelog.Debian.gz usr/share/doc/smbclient/changelog.Debian.gz
294790 1 294790 usr/share/ppd/hplip/HP/hp-color_laserjet_cm1312_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cm1312nfi_mfp-ps.ppd
285801 3 95267 usr/share/ppd/hplip/HP/hp-laserjet_3200-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_3200_series-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_3200m-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_3200se-ps.ppd
252920 2 126460 usr/share/doc/libglib2.0-cil/changelog.gz usr/share/doc/libgtk2.0-cil/changelog.gz usr/share/doc/libglade2.0-cil/changelog.gz
248256 3 82752 usr/share/doc/ibus-gtk/changelog.gz usr/share/doc/ibus/changelog.gz usr/share/doc/libibus1/changelog.gz usr/share/doc/python-ibus/changelog.gz
244742 1 244742 usr/share/ppd/hplip/HP/hp-laserjet_8100_mfp-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_8100_series-ps.ppd
244733 1 244733 usr/share/ppd/hplip/HP/hp-laserjet_8000-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_8000_series-ps.ppd
238592 1 238592 usr/lib/cli/gnome-sharp-2.24/gnome-sharp.dll usr/lib/mono/gac/gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll
238183 1 238183 usr/share/ppd/hplip/HP/hp-color_laserjet_2700-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_2700n-ps.ppd
231868 1 231868 usr/share/ppd/hplip/HP/hp-color_laserjet_cm1015-ps.ppd usr/share/ppd/hplip/HP/hp-color_laserjet_cm1017-ps.ppd
215840 2 107920 usr/share/ppd/hplip/HP/hp-laserjet_1300-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1300n-ps.ppd usr/share/ppd/hplip/HP/hp-laserjet_1300xi-ps.ppd

(and some more further down)

it seems that a lot of those .ppd files are identical. The .deb should just ship them as symlinks to a master instead of duplicates. This can be done automatically with fdupes in debian/rules. (Like e. g. /usr/share/cdbs/1/rules/debhelper.mk, "symlink identical Gnome help files within packages")