Summary: | media-video/mpv-0.7.0 - src_compile(): .../work/mpv-0.7.0/build/mpv --list-options: access violation in mkdir /root/.config | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Amadeusz Sławiński <amade> |
Component: | Current packages | Assignee: | Ben de Groot (RETIRED) <yngwin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maksbotan, media-video, nikoli, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 499288 | ||
Bug Blocks: | |||
Attachments: | emerge log |
Description
Amadeusz Sławiński
2014-12-03 22:07:31 UTC
Created attachment 390886 [details]
emerge log
# emerge --info mpv|grep ^FEATURES= FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" I have userpriv and usersandbox enabled, '/root/.config' does not exist and no sandbox violations are displayed. But selinux sandbox is not enabled here. What and why tries to create files in your /root/? You are running mpv build as portage user, default home directory for it is '/var/tmp/portage'. If you can, please help to analyze problem and find solution. # emerge --info mpv|grep "^FEATURES=" FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" # ls -l /root/.config total 12 drwx------. 2 root root 4096 Nov 3 2013 htop drwx------. 2 root root 4096 Nov 15 15:32 mpv drwx------. 2 root root 4096 Feb 11 2014 pulse # ls -l /root/.config/mpv total 0 And what is home directory of your portage user? May be something like HOME=/root/ was exported? So I looked a bit following $HOME suggestion and it seems that it emerges fine when I unset $XDG_CONFIG_HOME which was set to /root/.config # grep XDG_CONFIG_HOME /var/tmp/portage/media-video/mpv-9999/temp/environment export XDG_CONFIG_HOME="${T}/.config"; mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" "${XDG_RUNTIME_DIR}"; So why you have XDG_CONFIG_HOME set to /root/.config for portage user? Well, I'm not sure why shell env leaks into portage. I have x11-misc/xdg-user-dirs installed, maybe it causes something... Seems like it happens early because waf uses it, /var/tmp/portage/media-video/mpv-0.7.0/work/mpv-0.7.0/.lock-waf_linux2_build contains "'XDG_CONFIG_HOME': '/root/.config'" pair I reproduced problem: XDG_CONFIG_HOME=/root/.t123/ emerge -1v mpv ... [242/242] Creating build/etc/_mpv 00:29:55 runner ' /usr/bin/perl /var/tmp/portage/media-video/mpv-9999/work/mpv-9999/TOOLS/zsh.pl /var/tmp/portage/media-video/mpv-9999/work/mpv-9999/build/mpv > etc/_mpv ' * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 * ACCESS DENIED: mkdir: /root/.t123 ... This issue was fixed upstream in commit 638a398d628ab4bb04a040480ca09606f0b652de Author: Philip Sequeira <phsequei@gmail.com> Date: Sun Mar 29 23:15:59 2015 -0400 TOOLS/zsh.pl: use --no-config when calling mpv The above commit is included in mpv >= v0.9.0. Affected versions are long gone from tree now. I can confirm it isn't reproducible with current mpv versions available in tree. Closing. |