Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] out of disk space to compile webkit-gtk

115 views
Skip to first unread message

Joseph

unread,
Dec 23, 2013, 3:00:02 AM12/23/13
to
I'm upgrading the system and running out of disk space to compile webkit-gtk

* Checking for at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp" ...
[ !! ]
* There is NOT at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp"

df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 28G 16G 11G 61% /
/dev/root 28G 16G 11G 61% /
tmpfs 506M 540K 505M 1% /run
udev 10M 0 10M 0% /dev
shm 506M 0 506M 0% /dev/shm
/dev/hda4 84G 51G 29G 65% /home

How do I tell the system to use /home partition to use for compiling temp tiles?

--
Joseph

Khumba

unread,
Dec 23, 2013, 3:20:02 AM12/23/13
to
See the PORTAGE_TMPDIR variable in "man make.conf".

Cheers,
Khumba

Wang Xuerui

unread,
Dec 23, 2013, 3:50:01 AM12/23/13
to

在 2013-12-23 下午3:54,"Joseph" <sysc...@gmail.com>写道:
>
> I'm upgrading the system and running out of disk space to compile webkit-gtk
>

> How do I tell the system to use /home partition to use for compiling temp tiles?

For such a change to apply only to webkit-gtk (or any other package you want, actually), you can try package.env. Checkout make.conf's manpages to see how it is used.

Hope that helps!

Holger Hoffstätte

unread,
Dec 23, 2013, 5:40:01 AM12/23/13
to
On Mon, 23 Dec 2013 00:53:16 -0700, Joseph wrote:

> I'm upgrading the system and running out of disk space to compile
> webkit-gtk
> [..]
> How do I tell the system to use /home partition to use for compiling
> temp tiles?

portage.env allows per-package environment variables.

This will use two special "configurations" for libreoffice:

holger>grep libreoffice /etc/portage/package.env
app-office/libreoffice clang.conf no-tmpfs.conf

A configuration is simply a set of variables:

holger>cat /etc/portage/env/no-tmpfs.conf
PORTAGE_TMPDIR="/var/tmp"

So replace libreoffice with webkit-gtk and whatever path you want for
PORTAGE_TEMPDIR.

-h

Bruce Hill

unread,
Dec 23, 2013, 10:00:03 AM12/23/13
to
It appears to only require such a ridiculous amount if you build with
debugging flags.
--
List replies preferred.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting

Joseph

unread,
Dec 23, 2013, 10:50:02 AM12/23/13
to
On 12/23/13 08:56, Bruce Hill wrote:
>On Mon, Dec 23, 2013 at 12:53:16AM -0700, Joseph wrote:
>> I'm upgrading the system and running out of disk space to compile webkit-gtk
>>
>> * Checking for at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp" ...
>> [ !! ]
>> * There is NOT at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp"
>>
>> df -h
>> Filesystem Size Used Avail Use% Mounted on
>> rootfs 28G 16G 11G 61% /
>> /dev/root 28G 16G 11G 61% /
>> tmpfs 506M 540K 505M 1% /run
>> udev 10M 0 10M 0% /dev
>> shm 506M 0 506M 0% /dev/shm
>> /dev/hda4 84G 51G 29G 65% /home
>>
>> How do I tell the system to use /home partition to use for compiling temp tiles?
>
>It appears to only require such a ridiculous amount if you build with
>debugging flags.

This would be an easy solution but debug flags are off:
[ebuild N ] net-libs/webkit-gtk-1.8.3-r300:3 USE="geoloc gstreamer introspection jit spell webgl (-aqua) -coverage -debug -doc {-test} -webkit2" 7,631 kB

It appears that only libproxy-0.4.10-r1 needs webkit-gtk-1.6:3
net-libs/libproxy-0.4.10-r1 (webkit ? >=net-libs/webkit-gtk-1.6:3)

--
Joseph

James

unread,
Dec 23, 2013, 11:00:02 AM12/23/13
to
Joseph <syscon780 <at> gmail.com> writes:

>
> I'm upgrading the system and running out of disk space to compile webkit-gtk


I'm not sure you have usb3, but if you do and you have a usb3 stick,
it's useful for this temporary expanded space need and so much more. Sure
it probably will not run as fast as your native HD, but, it's
a very handy device for this and many other needs. Or you can move
something big from the partition where you compile, on a temporary
basis.....

just a thought,
hth,
James

Bruce Hill

unread,
Dec 23, 2013, 11:00:03 AM12/23/13
to
On Mon, Dec 23, 2013 at 08:44:46AM -0700, Joseph wrote:
> >
> >It appears to only require such a ridiculous amount if you build with
> >debugging flags.
>
> This would be an easy solution but debug flags are off:
> [ebuild N ] net-libs/webkit-gtk-1.8.3-r300:3 USE="geoloc gstreamer introspection jit spell webgl (-aqua) -coverage -debug -doc {-test} -webkit2" 7,631 kB
>
> It appears that only libproxy-0.4.10-r1 needs webkit-gtk-1.6:3
> net-libs/libproxy-0.4.10-r1 (webkit ? >=net-libs/webkit-gtk-1.6:3)

You might need to sync your system before emerging to get the latest version:

mingdao@baruch ~ $ eshowkw net-libs/webkit-gtk
Keywords for net-libs/webkit-gtk:
| | u |
| a a p s | n |
| l m h i m m p s p | u s | r
| p d a p a 6 i p c 3 a x | s l | e
| h 6 r p 6 8 p p 6 9 s r 8 | e o | p
| a 4 m a 4 k s c 4 0 h c 6 | d t | o
--------------+---------------------------+--------+-------
1.8.3-r200 | + + + o + o o + + o o + + | o 2 | gentoo
[I]1.8.3-r201 | + + + o + o o + + o o ~ + | o | gentoo
--------------+---------------------------+--------+-------
1.8.3-r300 | + + + o + o o + + o o + + | o 3 | gentoo
1.10.2-r300 | ~ ~ + o ~ o o ~ ~ o o ~ ~ | o | gentoo
--------------+---------------------------+--------+-------
[I]2.0.4 | ~ + ~ o ~ o o ~ ~ o o ~ + | o 3/25 | gentoo

Joseph

unread,
Dec 23, 2013, 1:10:02 PM12/23/13
to
I have changed in make.conf:
PORTAGE_TMPFS="/home/joseph/tmp"

but trying to compile webkit-gtk-2.0.4 I'm running out of disk space
* Checking for at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp" ...
[ !! ]
* There is NOT at least 18 gigabytes disk space at "/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp"

Why is it checking for disk space at:
/var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp

--
Joseph

Joseph

unread,
Dec 23, 2013, 2:00:01 PM12/23/13
to
I just did, but it doesn't help webkit-gtk-2.0.4 still asking 18GB disk space to compile.

--
Joseph

Khumba

unread,
Dec 23, 2013, 2:30:02 PM12/23/13
to
Note that as Holger says, you need to use /etc/portage/package.env
to ensure that you're not setting debugging flags like CFLAGS="-g"
either, to stop webkit-gtk from wanting 18GB.

/etc/portage/package.env:
net-libs/webkit-gtk no-debug.conf

/etc/portage/env/no-debug.conf:
CFLAGS="<put your normal CFLAGS without -g, -ggdb, etc.>"
CXXFLAGS="<ditto>"

Cheers,
Khumba

Joseph

unread,
Dec 23, 2013, 3:00:02 PM12/23/13
to
On 12/23/13 11:20, Khumba wrote:

[snip]
>
>Note that as Holger says, you need to use /etc/portage/package.env
>to ensure that you're not setting debugging flags like CFLAGS="-g"
>either, to stop webkit-gtk from wanting 18GB.
>
>/etc/portage/package.env:
> net-libs/webkit-gtk no-debug.conf
>
>/etc/portage/env/no-debug.conf:
> CFLAGS="<put your normal CFLAGS without -g, -ggdb, etc.>"
> CXXFLAGS="<ditto>"
>
>Cheers,
>Khumba

Thanks for the pointer. That was it!
CFLAGS="-O2 -march=athlon-xp -pipe -ggdb"

I must have been running some debugging in the past and forgot to reset the "-ggdb" flag.

Thanks.
--
Joseph

Bruce Hill

unread,
Dec 23, 2013, 3:00:03 PM12/23/13
to
On Mon, Dec 23, 2013 at 11:52:56AM -0700, Joseph wrote:
>
> I just did, but it doesn't help webkit-gtk-2.0.4 still asking 18GB disk space to compile.

"Checking for sufficient disk space to build ${PN} with debugging CFLAGS"

None here and 2.0.4 has built with 7G, and on the other box with 12G.

Neil Bothwick

unread,
Dec 23, 2013, 5:10:02 PM12/23/13
to
On Mon, 23 Dec 2013 11:09:17 -0700, Joseph wrote:

> I have changed in make.conf:
> PORTAGE_TMPFS="/home/joseph/tmp"

> Why is it checking for disk space at:
> /var/tmp/portage/net-libs/webkit-gtk-2.0.4/temp

Because you should have set PORTAGE_TMPDIR


--
Neil Bothwick

If you don't pay your exorcist, you get repossessed.
signature.asc

Thomas Mueller

unread,
Dec 24, 2013, 4:00:01 AM12/24/13
to
Even better might be a USB 3.0 hard drive: cheaper per GB than USB sticks, and not having the problem of write exhaustion that I've heard about for flash media.

If there is sufficient hard-disk space in the same or other partition, it might be helpful to redirect the work dir.

I might want to make a USB-stick installation of Gentoo to be able to carry from one computer to another.

Tom
0 new messages