Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375021

Summary: [feature request] emerge PORTAGE_TMPDIR configuration
Product: Gentoo Linux Reporter: fkhp <fkhp101>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description fkhp 2011-07-13 03:10:04 UTC
to speed up emerge -eav system/world, use /dev/shm/tmp for default PORTAGE_TMPDIR, but it has not eanough space for huge packages such as gcc and openoffice, which will break the emerge process when it comes to one of the huge packages. so another direcotry on disk /var/tmp/portage should be set as PORTAGE_TMPDIR, so please set a configuration file  /etc/portage/package.tmpdir do the work:

/dev/shm/tmp */*
/var/tmp/portage sys-devel/gcc app-office/openoffice

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2011-07-13 03:43:14 UTC
This can be done already via package.env, which allows you to override variables on a per-package basis. For example:

mkdir -p /etc/portage/env
echo PORTAGE_TMPDIR=/var/tmp >> /etc/portage/env/tmpdir
echo sys-devel/gcc >> /etc/portage/package.env
echo app-office/openoffice >> /etc/portage/package.env
Comment 2 Mike Gilbert gentoo-dev 2011-07-13 03:44:15 UTC
The last two lines should be:

echo sys-devel/gcc tmpdir >> /etc/portage/package.env
echo app-office/openoffice tmpdir >> /etc/portage/package.env
Comment 3 fkhp 2011-07-13 06:46:12 UTC
(In reply to comment #2)
> The last two lines should be:
> 
> echo sys-devel/gcc tmpdir >> /etc/portage/package.env
> echo app-office/openoffice tmpdir >> /etc/portage/package.env

Great! thank you very much, I'll try it.