Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128978 - portage-utils: qsize 4GB (32bits) limit
Summary: portage-utils: qsize 4GB (32bits) limit
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 16:30 UTC by TGL
Modified: 2006-04-06 04:32 UTC (History)
2 users (show)

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


Attachments
files/0.1.15-qsize-4GB.patch (0.1.15-qsize-4GB.patch,513 bytes, patch)
2006-04-05 16:32 UTC, TGL
Details | Diff
portage-utils-0.1.15-ebuild.patch (portage-utils-0.1.15-ebuild.patch,712 bytes, patch)
2006-04-05 16:33 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-04-05 16:30:05 UTC
The qsize applet uses some size_t to store files sizes sums. But it's not big enough when there is more than 4GB installed on the system (with -s or -S option), or even when a single package weights more than 4GB (i'm not sure, but i think this may happen with some huge proprietary games).

On my system, with portage-utils-0.1.15:
% qsize -afbS
 Totals: 326341 files, 37741 non-files, 395427840 bytes

Expected result:
% qsize -afbS
 Totals: 326341 files, 37741 non-files, 8985362432 bytes
(which is 8GB more)

I will attach a patch to use some uint64_t instead.
Comment 1 TGL 2006-04-05 16:32:17 UTC
Created attachment 84036 [details, diff]
files/0.1.15-qsize-4GB.patch
Comment 2 TGL 2006-04-05 16:33:03 UTC
Created attachment 84037 [details, diff]
portage-utils-0.1.15-ebuild.patch

ebuild changes to apply the previous patch
Comment 3 solar (RETIRED) gentoo-dev 2006-04-06 04:32:36 UTC
Thanks tgl.
Fixed in portage-utils cvs repo. revision: 1.22;
Your fix will be included the next release.