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
I have this option too ( only /tmp/ ) and it works for me
(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.
(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?
> 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.
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