Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2671 - gentoo-sources ebuild: "cat patch | bzip2 -d | patch -p1 || die" command
Summary: gentoo-sources ebuild: "cat patch | bzip2 -d | patch -p1 || die" command
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-11 23:33 UTC by Tom von Schwerdtner
Modified: 2003-02-04 19:42 UTC (History)
2 users (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 Tom von Schwerdtner 2002-05-11 23:33:01 UTC
This line seems to have been the culprit for some "no space left on device" errors I was getting.  
Though my disk space is a touch short, 'df' before, during and after attempted merge showed no cause 
to the seeming lack of disk space.  I goofed around in the ebuild, and it seems that the subject 
command, or to be more specifc, "cat some-big-file.patch.bz2 | patch -p1" runs out of...well, I guess 
memory (128 here).  Seperating out that cat one-liner into seperate commands (copy out of sandbox 
protected area, un-bzip and patch with "patch -p1 < some-big-file.patch") works fine, but having the 
patch cat'd to patch always runs out of space somewhere. 
 
My error is easily reproduced, so let me know if you want more data (when my problem was posted to 
gentoo-users, there were no responses, so I'm assuming its not a common problem).
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-05-15 11:08:29 UTC
OK, I'll look into making this less memory-intensive in a future release of our
sources.  try changing "bzip2 -d" to "bzip2 -d -s" and see if that works.
Comment 2 Brandon Low (RETIRED) gentoo-dev 2002-09-06 17:38:30 UTC
this shouldn't be an issue any more, due to the new way of handling kernel
ebuilds that I am using.