Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3016 - gentoolkit: pkg-size fails for long CONTENTS (patch included)
Summary: gentoolkit: pkg-size fails for long CONTENTS (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-25 06:59 UTC by Dan Armak (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
0 users

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


Attachments
patch to cvs version 1.1 (current) of pkg-size (pkg-size.long-args.diff,1.35 KB, patch)
2002-05-25 07:03 UTC, Dan Armak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Armak (RETIRED) gentoo-dev 2002-05-25 06:59:10 UTC
pkg-size passes all filenames as parameteres to du. When there are really meany files (e.g. kdelibs), the parameter list is to long and an error is produced. The pkg-size script has "2> /dev/null" btw, so ou won't even see the error, it just reports size 0.  Attached patch splits the file list into 64k segments with split, runs du on each and prints the sum of the segments' sizes (with expr). Please see comments in the patch for more info.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-05-25 07:03:36 UTC
Created attachment 1136 [details, diff]
patch to cvs version 1.1 (current) of pkg-size
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-05-28 14:08:03 UTC
I know this is a problem, but I also think your code is too long. Is there any
other way to fix this ? 
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-06-04 17:48:55 UTC
Fixed in a much shorter manner that also works with spaced file names (I think).