1 |
On 24/02/20 08:30, Neil Bothwick wrote: |
2 |
> On Sun, 23 Feb 2020 18:59:27 -0800, Ian Zimmerman wrote: |
3 |
> |
4 |
>> In a desperate act to satisfy the ever increasing build space |
5 |
>> requirements for firefox and its kin, I'd symlinked /var/tmp/portage to |
6 |
>> a subdirectory of /usr/portage. And webrsync does "rsync ... --delete |
7 |
>> ...", so now you see where this is going. |
8 |
>> |
9 |
>> Fortunately, as you say, the recovery was easy once I knew what went |
10 |
>> wrong. |
11 |
>> |
12 |
>>> You might consider moving the sync location out of /usr while you're |
13 |
>>> at it. Also, if you haven't already done so get |
14 |
>>> /usr/portage/distfiles outside of the repo directory. For new |
15 |
>>> installs both of these are moved to /var in non-nested directories, |
16 |
>>> but existing installs will continue to use their present locations. |
17 |
>> |
18 |
>> But I already have a bunch of symlinks to juggle the space requirements |
19 |
>> and I would rather not revisit that, right now. On my system /var is in |
20 |
>> the / filesystem and doesn't have that much space (less than the 8G |
21 |
>> necessary to build firefox). At some future spring cleaning time, |
22 |
>> maybe. |
23 |
> |
24 |
> There's no need for any symlinks, just set $PORTAGE_TMPDIR globally then |
25 |
> separate for greedy packages. For example, in make.conf I have |
26 |
|
27 |
Ahhh. I didn't know about that trick. |
28 |
> |
29 |
> PORTAGE_TMPDIR="/tmp" |
30 |
> |
31 |
> Then /etc/portage/package.env/firefox contains |
32 |
> |
33 |
> www-client/firefox disk-tmpdir.conf |
34 |
> |
35 |
> and /etc/portage/env/disk-tmpdir.conf contains |
36 |
> |
37 |
> PORTAGE_TMPDIR="/mnt/scratch" |
38 |
> |
39 |
> So I get faster tmpfs based builds for most packages and use a disposable |
40 |
> disk partition for the greedy ones. |
41 |
> |
42 |
I just have a massive swap space, and /var/tmp/portage is a tmpfs. So |
43 |
everything gets a fast tmpfs build, and it spills into swap as required |
44 |
(hopefully almost never). |
45 |
|
46 |
Cheers, |
47 |
Wol |