Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218911 - cannot install sun-jdk with tmpfs/bind mounted /var/tmp/portage
Summary: cannot install sun-jdk with tmpfs/bind mounted /var/tmp/portage
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 239530 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-22 17:04 UTC by Richard H.
Modified: 2015-07-11 20:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard H. 2008-04-22 17:04:22 UTC
I get the following output when I try to emerge sun-jdk:

>>> Emerging (1 of 2) dev-java/sun-jdk-1.6.0.05 to /
 * jdk-6u5-dlj-linux-i586.bin RMD160 SHA1 SHA256 size ;-) ...                                                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                             [ ok ]
 * checking jdk-6u5-dlj-linux-i586.bin ;-) ...                                                                                                     [ ok ]
>>> Unpacking source...
You will need atleast 217828 kBytes of Disk Free
Please free up the required Disk Space and try again
 *
 * ERROR: dev-java/sun-jdk-1.6.0.05 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2671:  Called die
 * The specific snippet of code:
 *       sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
 *  The die message:
 *   Failed to unpack
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/sun-jdk-1.6.0.05/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/sun-jdk-1.6.0.05/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1. have a small /
2. mount /var/tmp/portage with tmpfs or bind
3. emerge sun-jdk

Actual Results:  
The stated output

Expected Results:  
It should look up whether using tmpfs or bind mounted tempdir
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-04-22 18:31:31 UTC
(In reply to comment #0)
> >>> Unpacking source...
> You will need atleast 217828 kBytes of Disk Free
> Please free up the required Disk Space and try again
>  *

And your tmpfs is big enough?
Comment 2 Richard H. 2008-04-22 18:36:10 UTC
It's 1G big, it should be enough. Everything else works fine too, for instance Qt which really uses much space while compilation.

I can't really find out however, because df does somehow not show anything about it. How is the calculation made? I want to help, but I couldn't find it till now. I have looked in the ebuild and in the java-jdk-2 eclass file.

Also, I bind-mounted a 60GB harddisk to solve the problem, however, it didn't help either...
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-04-22 19:01:02 UTC
(In reply to comment #2)
> 
> I can't really find out however, because df does somehow not show anything
> about it. How is the calculation made? I want to help, but I couldn't find it
> till now. I have looked in the ebuild and in the java-jdk-2 eclass file.
> 

That output is coming from the jdk bundle itself.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2008-04-22 19:03:48 UTC
(In reply to comment #2)
> 
> I can't really find out however, because df does somehow not show anything
> about it. How is the calculation made? I want to help, but I couldn't find it
> till now. I have looked in the ebuild and in the java-jdk-2 eclass file.
> 

There is your problem I supposed. This is the check:
diskSpace=`df -k .              |
           tail ${tail_args} -1 |
           awk '{if ( $4 ~ /%/) { print $3 } else { print $4 } }'`
Comment 5 Richard H. 2008-04-22 19:28:15 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > 
> > I can't really find out however, because df does somehow not show anything
> > about it. How is the calculation made? I want to help, but I couldn't find it
> > till now. I have looked in the ebuild and in the java-jdk-2 eclass file.
> > 
> 
> That output is coming from the jdk bundle itself.
> 

Okay, It seems it's not fixable then, it's upstream I suppose?
Will mount some flash key or something for that package then...

Thanks for the fast help
Comment 6 Alistair Bush (RETIRED) gentoo-dev 2010-03-09 11:01:13 UTC
*** Bug 239530 has been marked as a duplicate of this bug. ***