I find the portage tree (/usr/portage/) consumes much disk space, almost 1GB; although the distfiles and some few local portage overylays consoume some space, but can we shrink the main portage tree? First, I found some patch files exceed 20K, always we can find out them with this: $ find /usr/portage/ -path '/usr/portage/local' -prune -or -name '*.patch' -size +20k -ls Should they be moved to gentoo mirros from portage tree?
Yeah, they should. I'm not definitely going to CC zillion of maintainers here, though. Take this to gentoo-dev mailing list or something, thanks.
$ find /usr/portage/ -path '/usr/portage/local' -prune -or -name '*.patch' -size +20k -printf '%s\t%p\n' 32889 /usr/portage/x11-libs/fox/files/1.2.18-gcc4-fix-includes.patch 46208 /usr/portage/www-client/elinks/files/elinks-0.11.3-lua-5.patch 23393 /usr/portage/sci-libs/lapack-reference/files/lapack-reference-3.1.1-autotools.patch 21729 /usr/portage/sci-libs/lapack-atlas/files/lapack-reference-3.0-autotool.patch 23393 /usr/portage/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotools.patch 21780 /usr/portage/sci-libs/cholmod/files/cholmod-1.6.0-autotools.patch 27579 /usr/portage/app-admin/ulogd/files/glsa-200701.patch 50037 /usr/portage/app-admin/testdisk/files/testdisk-6.8-ntfsprogs2.patch 25062 /usr/portage/app-admin/sysklogd/files/sysklogd-1.4.1-2.6.headers.patch 34049 /usr/portage/sci-astronomy/wcstools/files/wcstools-3.7.0-fix-warnings.patch 20540 /usr/portage/app-i18n/iiimxcf/files/im-sdk-htt_xbe-crash.patch 23787 /usr/portage/net-firewall/firehol/files/firehol-1.226-to-250.patch 35060 /usr/portage/sys-block/partimage/files/partimage-0.6.6-andre-przywara_amd64.patch 22044 /usr/portage/mail-client/squirrelmail/files/squirrelmail-1.5.1-CVE-2007-1262.patch 22850 /usr/portage/net-ftp/ftp/files/netkit-ftp-0.17-ipv6.patch 29503 /usr/portage/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch 23249 /usr/portage/media-libs/tiff/files/tiff-3.8.2-goo-sec.patch 50407 /usr/portage/media-libs/devil/files/devil-1.6.7-gcc42.patch 25499 /usr/portage/media-libs/gst-plugins-ugly/files/gst-plugins-ugly-0.10.6-mpegaudioparse-cvs20071117.patch 39043 /usr/portage/net-misc/axel/files/axel-1.0b-strcpy-fix.patch 22700 /usr/portage/app-office/gnotime/files/gnotime-2.2.2-guile-1_8.patch 39693 /usr/portage/dev-python/pykde/files/PyKDE-3.16.0-sip-4.7.patch 34941 /usr/portage/app-cdr/xcdroast/files/cdrecord2wodim.patch 24246 /usr/portage/games-action/xshipwars/files/xshipwars-2.5.5-64bit.patch 22381 /usr/portage/games-mud/mcl/files/mcl-0.53.00-inputlines.patch all 25 patches
Here's another way to get a slightly better result: $ find /usr/portage -path '*/files/*' -size +20k -printf "%s\t%p\n" | sort -n 20540 /usr/portage/app-i18n/iiimxcf/files/im-sdk-htt_xbe-crash.patch 20559 /usr/portage/app-admin/hddtemp/files/hddtemp.db 20822 /usr/portage/sys-devel/gcc-config/files/gcc-config-1.4.0 20945 /usr/portage/sys-devel/gcc-config/files/gcc-config-1.4.1 21021 /usr/portage/media-plugins/vdr-skinelchi/files/vdr-skinelchi-0.1.1_pre2-vdr-1.5.5-getfont.diff 21729 /usr/portage/sci-libs/lapack-atlas/files/lapack-reference-3.0-autotool.patch 21780 /usr/portage/sci-libs/cholmod/files/cholmod-1.6.0-autotools.patch 22044 /usr/portage/mail-client/squirrelmail/files/squirrelmail-1.5.1-CVE-2007-1262.patch 22381 /usr/portage/games-mud/mcl/files/mcl-0.53.00-inputlines.patch 22850 /usr/portage/net-ftp/ftp/files/netkit-ftp-0.17-ipv6.patch 23249 /usr/portage/media-libs/tiff/files/tiff-3.8.2-goo-sec.patch 23393 /usr/portage/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotools.patch 23393 /usr/portage/sci-libs/lapack-reference/files/lapack-reference-3.1.1-autotools.patch 23787 /usr/portage/net-firewall/firehol/files/firehol-1.226-to-250.patch 24246 /usr/portage/games-action/xshipwars/files/xshipwars-2.5.5-64bit.patch 25062 /usr/portage/app-admin/sysklogd/files/sysklogd-1.4.1-2.6.headers.patch 25499 /usr/portage/media-libs/gst-plugins-ugly/files/gst-plugins-ugly-0.10.6-mpegaudioparse-cvs20071117.patch 27579 /usr/portage/app-admin/ulogd/files/glsa-200701.patch 28829 /usr/portage/net-misc/strongswan/files/ipsec-path.patch.bz2 29503 /usr/portage/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch 32889 /usr/portage/x11-libs/fox/files/1.2.18-gcc4-fix-includes.patch 34049 /usr/portage/sci-astronomy/wcstools/files/wcstools-3.7.0-fix-warnings.patch 34941 /usr/portage/app-cdr/xcdroast/files/cdrecord2wodim.patch 35060 /usr/portage/sys-block/partimage/files/partimage-0.6.6-andre-przywara_amd64.patch 35363 /usr/portage/dev-libs/gmp/files/4.2.1/gmpxx.h.ternary.diff 39043 /usr/portage/net-misc/axel/files/axel-1.0b-strcpy-fix.patch 39693 /usr/portage/dev-python/pykde/files/PyKDE-3.16.0-sip-4.7.patch 46208 /usr/portage/www-client/elinks/files/elinks-0.11.3-lua-5.patch 50037 /usr/portage/app-admin/testdisk/files/testdisk-6.8-ntfsprogs2.patch 50407 /usr/portage/media-libs/devil/files/devil-1.6.7-gcc42.patch 289906 /usr/portage/sys-apps/findutils/files/findutils-4.3.12-selinux.diff That last one is completely unnecessarily *way* too big, I've opened a separate bug for that one. The rest I'm just adding here so that you don't leave things out. :)