Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] neovim-8.0.0 won't install due to permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 180

PostPosted: Sat Oct 01, 2022 4:40 am    Post subject: [SOLVED] neovim-8.0.0 won't install due to permissions Reply with quote

Hi, I tried to update Neovim today, but after running emerge -uD @world I got an error.

This is the full log, but reading through the last few lines

Code:
 * ACCESS DENIED:  mkdir:         /home/sicro/.local/state
 * ACCESS DENIED:  mkdir:         /home/sicro/.local/state
[397/400] cd /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime && luajit /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0/scripts/genvimvim.lua /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0/src/nvim /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime/syntax/vim/generated.vim /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/funcs_data.mpack
[398/400] cd /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime/pack/dist/opt/matchit && /usr/bin/cmake -E copy_directory /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0/runtime/pack/dist/opt/matchit /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime/pack/dist/opt/matchit && /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags\ doc -c quit
[399/400] cd /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime/pack/dist/opt/vimball && /usr/bin/cmake -E copy_directory /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0/runtime/pack/dist/opt/vimball /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime/pack/dist/opt/vimball && /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags\ doc -c quit
 * ACCESS DENIED:  mkdir:         /home/sicro/.local/state
[400/400] cd /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/runtime && /usr/bin/cmake -E remove doc/* && /usr/bin/cmake -E copy_directory /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0/runtime/doc doc && /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags\ ++t\ doc -c quit
>>> Source compiled.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/app-editors/neovim-0.8.0/temp/sandbox.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /home/sicro/.local/state
A: /home/sicro/.local/state
R: /home/sicro/.local/state
C: /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags doc -c quit

F: mkdir
S: deny
P: /home/sicro/.local/state
A: /home/sicro/.local/state
R: /home/sicro/.local/state
C: /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags doc -c quit

F: mkdir
S: deny
P: /home/sicro/.local/state
A: /home/sicro/.local/state
R: /home/sicro/.local/state
C: /var/tmp/portage/app-editors/neovim-0.8.0/work/neovim-0.8.0_build/bin/nvim -u NONE -i NONE -e --headless -c helptags ++t doc -c quit
 * --------------------------------------------------------------------------------


I have the suspicion it's about permissions to write to $HOME/.local/state.

Does anybody know why is this happening?


Last edited by sicr0 on Sat Nov 12, 2022 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1767

PostPosted: Sat Oct 01, 2022 6:24 am    Post subject: Reply with quote

Can you file a bug please on bugs.gentoo.org with the full build.log, emerge --info, and the contents of 'env' (check it for anything sensitive first)?

I suspect this patch I've proposed may help, but not sure yet, as I couldn't reproduce the problem either way: https://marc.info/?l=gentoo-dev&m=166460505310396&w=2.

EDIT: I've also pushed https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737b23a0af4224a9d02d23ede7f41ab6dbd97319 which may help.
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 180

PostPosted: Sat Oct 01, 2022 6:42 am    Post subject: Reply with quote

Of course, I'll link it here.
Back to top
View user's profile Send private message
sicr0
Apprentice
Apprentice


Joined: 23 Mar 2022
Posts: 180

PostPosted: Sat Oct 01, 2022 6:56 am    Post subject: Reply with quote

This is the bug: https://bugs.gentoo.org/873802
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum