Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320987 - libpng-1.2.43.tar.xz fails to extract while emerging
Summary: libpng-1.2.43.tar.xz fails to extract while emerging
Status: RESOLVED DUPLICATE of bug 303975
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-22 00:28 UTC by Mark Wagner
Modified: 2010-05-26 07:32 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 Mark Wagner 2010-05-22 00:28:38 UTC
Emerging libpng-1.2.43-r2 fails to extract the archive, with an error about "memory usage limit reached".

Reproducible: Always

Steps to Reproduce:
1. emerge --oneshot '=libpng-1.2.43-r2'

Actual Results:  
>>> Unpacking source...
>>> Unpacking libpng-1.2.43.tar.xz to /var/tmp/portage/media-libs/libpng-1.2.43-r2/work
xz: /var/tmp/portage/media-libs/libpng-1.2.43-r2/distdir/libpng-1.2.43.tar.xz: Memory usage limit reached
xz: Limit was 18 MiB, but 65 MiB would have been needed
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors


Expected Results:  
libpng installs.

The computer in question has 48MB of physical RAM and 256MB of swap space.  At the time I started the emerge, 38MB of physical RAM and 241MB of swap were free.
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2010-05-22 10:49:01 UTC
1.2.43-r2 emerges fine here, get more RAM or try using more swap
Comment 2 Martin Väth 2010-05-22 16:29:35 UTC
Put XZ_OPT="--memory=max" into your /etc/make.conf

Maybe this should be the default in /etc/make.globals
since I already saw many people run into this issue.
Comment 3 Mark Wagner 2010-05-22 20:33:21 UTC
(In reply to comment #2)
> Put XZ_OPT="--memory=max" into your /etc/make.conf
> 
> Maybe this should be the default in /etc/make.globals
> since I already saw many people run into this issue.

That fixed it.  I think this needs to be documented somewhere (maybe in the xz or libpng ebuilds?), because not all of us have the ability to increase RAM, and according to the xz man page, increasing swap won't help.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-05-26 07:32:02 UTC
More or less a duplicate of bug 293580 and bug 303975.

*** This bug has been marked as a duplicate of bug 303975 ***