Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488324 - Non-standard PORTAGE_TMPDIR after reboot is not writable by portage user
Summary: Non-standard PORTAGE_TMPDIR after reboot is not writable by portage user
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 07:46 UTC by tcppmm@gmail.com
Modified: 2015-05-31 05:50 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 tcppmm@gmail.com 2013-10-17 07:46:27 UTC
I have in make.conf this option:
PORTAGE_TMPDIR="/tmp/portage"
After every reboot I have 
└─> ls -la /tmp/portage/
итого 16
drwxr-xr-x  2 root root  4096 окт.  17 10:15 .
drwxrwxrwt 12 root root 12288 окт.  17 10:15 ..
and
└─> update_probe 
 * Запуск emerge --sync
>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
>>> Starting rsync with rsync://213.180.204.183/gentoo-portage/...
>>> Checking server timestamp ...
receiving incremental file list
rsync: mkstemp "/tmp/portage/.tmpSJhbGq.vS7ReX" failed: Permission denied (13)
          32 100%   31.25kB/s    0:00:00 (xfer#1, to-check=0/1)
After making chown -R portage:portage /tmp/portage all work fine.

Reproducible: Always

Steps to Reproduce:
1. Set PORTAGE_TMPDIR to /tmp/portage
2. Reboot
3. Try emerge --sync
Actual Results:  
emerge --sync failed

Expected Results:  
emerge --sync working
Comment 1 Agostino Sarubbo gentoo-dev 2013-10-17 09:16:53 UTC
I have this option too ( only /tmp/ ) and it works for me
Comment 2 tcppmm@gmail.com 2013-10-21 05:21:32 UTC
(In reply to Agostino Sarubbo from comment #1)
> I have this option too ( only /tmp/ ) and it works for me

With /tmp/ it works. With /tmp/portage - error.
Comment 3 Zac Medico gentoo-dev 2015-01-10 07:40:27 UTC
(In reply to tcppmm@gmail.com from comment #0)
> I have in make.conf this option:
> PORTAGE_TMPDIR="/tmp/portage"
> After every reboot I have 
> └─> ls -la /tmp/portage/
> итого 16
> drwxr-xr-x  2 root root  4096 окт.  17 10:15 .
> drwxrwxrwt 12 root root 12288 окт.  17 10:15 ..

What is responsible for emptying it out? Maybe your init system? Are you using openrc, systemd, or what?
Comment 4 tcppmm@gmail.com 2015-01-11 05:43:51 UTC
> What is responsible for emptying it out? Maybe your init system? Are you using openrc, systemd, or what?

openrc

But now I using /tmp/ as PORTAGE_TMPDIR. I can try reproduce this bug again later.
Comment 5 SpanKY gentoo-dev 2015-05-31 05:50:42 UTC
openrc specifically wipes /tmp by default:

/etc/conf.d/bootmisc:
clean_tmp_dirs="/tmp"
wipe_tmp="YES"

if you don't like that behavior, you can turn it off, or install your own tmpfiles.d entry so that /tmp/portage is recreated with the right perms/ownership.

either way, not a bug in portage