Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18149 - sun-j2sdk-1.4.1 and free discspace check
Summary: sun-j2sdk-1.4.1 and free discspace check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-25 07:47 UTC by Tero Pelander
Modified: 2003-04-16 13:30 UTC (History)
1 user (show)

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 Tero Pelander 2003-03-25 07:47:37 UTC
The package sun-j2sdk-1.4.1 checks for free discspace in function pkg_setup. 
However the test is wrong for discs that have device filename that is long 
enough. The following test is used:
  df ${PORTAGE_TMPDIR}/portage/ | tail -n 1 | awk '{ print $4 }'

examples from df-command
$ df /var/tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/discs/disc1/part3
                       2048216    467492   1580724  23% /var

$ df -P /var/tmp
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/discs/disc1/part3   2048216    467568   1580648      23% /var

Fix:
add "-P" to df-command used in the check


Reproducible: Always
Steps to Reproduce:
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-25 19:08:43 UTC
and what if /var/tmp/portage is a separate partition?
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-04-16 13:30:40 UTC
Ok, I agree, Changed, closing bug