Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375021 - [feature request] emerge PORTAGE_TMPDIR configuration
Summary: [feature request] emerge PORTAGE_TMPDIR configuration
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-13 03:10 UTC by fkhp
Modified: 2011-07-13 06:48 UTC (History)
0 users

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 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.