Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508728 - dev-java/icedtea should use check-reqs.eclass (CHECKREQS_DISK_BUILD)
Summary: dev-java/icedtea should use check-reqs.eclass (CHECKREQS_DISK_BUILD)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-25 21:00 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-11-07 20:26 UTC (History)
3 users (show)

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


Attachments
icedtea.patch (icedtea.patch,3.08 KB, patch)
2014-10-09 12:56 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
Patch for dev-java/icedtea::gentoo (icedtea_gentoo.patch,5.65 KB, patch)
2014-10-10 20:40 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2014-04-25 21:00:15 UTC
An older version of dev-java/icedtea (7.2.4.3) uses check-reqs.eclass (CHECKREQS_DISK_BUILD="9G").
This usage mistakenly disappeared in newer ebuilds.

According to my precise measurements, maximal usage of disk space in ${PORTAGE_TMPDIR} by dev-java/icedtea-7.2.4.7 at the end of src_install() was 8372 MiB on system with the following configuration:
  amd64, GCC 4.8.2, glibc 2.19, binutils 2.24.51.0.3
  CFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -Wpointer-sign"
  CXXFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall"
  LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--hash-style=gnu -Wl,--sort-common"

I suggest to set CHECKREQS_DISK_BUILD="8500M" in ebuild.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-04-25 21:28:13 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #0)

USE="X alsa cups javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -doc -examples -jamvm -kerberos -pax_kernel -pulseaudio -test -zero"
Comment 2 Torsten Kaiser 2014-04-26 18:52:10 UTC
Please measure again with USE=doc.

Last time I upgraded icedtea it failed on a 9G tmpfs. As the docs from icedtea include the full Java API documentation this will increase the disk space needed ignificantly.

(A 12G tmpfs worked fine, but I did not try any sizes between 9 and 12 gigabytes. And I don't know a way to get the peak usage from an tmpfs.)

amd64, GCC 4.8.2, glibc 2.1, binutils 2.24-r2
USE="X alsa cups doc jbootstrap kerberos nsplugin nss pulseaudio source webstart -cacao -cjk -debug -examples -jamvm -javascript -pax_kernel {-test} -zero"
Comment 3 Arfrever Frehtes Taifersar Arahesis 2014-04-27 08:33:24 UTC
You can add this to /etc/portage/bashrc:

post_src_install() {
    du -d0 -m "${PORTAGE_BUILDDIR}"
}
Comment 4 Arfrever Frehtes Taifersar Arahesis 2014-10-07 14:52:22 UTC
Size measured for dev-java/icedtea-7.2.4.8 today: 8364 MiB
  amd64, GCC 4.8.3, glibc 2.19, binutils 2.24.51.0.3
  USE="X alsa cups javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -doc -examples -jamvm -kerberos -pax_kernel -pulseaudio -selinux -test -zero"
  CFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -Wpointer-sign"
  CXXFLAGS="-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall"
  LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--hash-style=gnu -Wl,--sort-common"
Comment 5 Arfrever Frehtes Taifersar Arahesis 2014-10-09 12:16:52 UTC
Size measured for dev-java/icedtea-7.2.4.8[doc] today: 8865 MiB

By the way:
 * dohtml: skipped file '../docs/api/javax/swing/plaf/synth/doc-files/synth.dtd'
Comment 6 Arfrever Frehtes Taifersar Arahesis 2014-10-09 12:56:37 UTC
Created attachment 386298 [details, diff]
icedtea.patch
Comment 7 Arfrever Frehtes Taifersar Arahesis 2014-10-10 20:13:31 UTC
Size measured for dev-java/icedtea-6.1.13.4[-doc]: 7582 MiB
  USE="X alsa cups javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -doc -examples -kerberos -pax_kernel -pulseaudio -selinux -systemtap -test"

Size measured for dev-java/icedtea-6.1.13.4[doc]: 8072 MiB
  USE="X alsa cups doc javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -examples -kerberos -pax_kernel -pulseaudio -selinux -systemtap -test"
Comment 8 Arfrever Frehtes Taifersar Arahesis 2014-10-10 20:40:13 UTC
Created attachment 386396 [details, diff]
Patch for dev-java/icedtea::gentoo
Comment 9 Arfrever Frehtes Taifersar Arahesis 2014-11-07 20:26:11 UTC
Size measured for dev-java/icedtea-7.2.5.3[-doc]: 8410 MiB
  USE="X alsa cups javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -doc -examples -infinality -jamvm -kerberos -pax_kernel -pulseaudio -selinux -smartcard -sunec -test -zero"

Size measured for dev-java/icedtea-7.2.5.3[doc]:  8913 MiB
  USE="X alsa cups doc javascript jbootstrap nsplugin nss source webstart -cacao -cjk -debug -examples -infinality -jamvm -kerberos -pax_kernel -pulseaudio -selinux -smartcard -sunec -test -zero"