Summary: | =app-shells/mpv-bash-completion-3.3.13 : sandbox issue (XDG_xxx_DIR related) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Coacher <itumaykin+gentoo> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/2ion/mpv-bash-completion/issues/3 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 567192 | ||
Attachments: |
emerge-history.txt
sandbox-28311.log emerge-info.txt app-shells:mpv-bash-completion-3.3.13:20170416-225205.log emerge-history.txt etc.portage.tbz2 sandbox-8634.log emerge-info.txt app-shells:mpv-bash-completion-3.3.13:20170721-150551.log emerge-history.txt etc.portage.tbz2 sandbox-1612.log |
Description
Toralf Förster
2016-06-21 16:24:57 UTC
Created attachment 438300 [details]
emerge-history.txt
Created attachment 438302 [details]
sandbox-28311.log
I've seen a similar issue before with mpv. mpv-bash-completion should call mpv with `--no-config' option. I'll try to reproduce this and confirm my assumption. ETA on this one is 1-2 days. Hi, maybe it is worth to have a look into bug #577704 too (In reply to Toralf Förster from comment #4) > Hi, maybe it is worth to have a look into bug #577704 too Thanks, I know it can be workarounded right away by env reset. I'd like to deliver a proper fix with `--no-config' option and try to get it merged upstream. I just need a couple of days to test it that's all. A bit busy now. Fixed in 0.17. See https://github.com/gentoo/gentoo/pull/1720 commit d12c6d14d31f4f86d08953f5795a7499825f7202 (HEAD) Author: Ilya Tumaykin <itumaykin@gmail.com> AuthorDate: Wed Jun 22 18:18:57 2016 +0300 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Thu Jun 23 21:15:47 2016 +0000 app-shells/mpv-bash-completion: verbump to 0.17 Remove redundant app-shells/bash blocker. This version also fixes Gentoo bug #586596. Gentoo-Bug: https://bugs.gentoo.org/586596 Package-Manager: portage-2.3.0_rc1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> app-shells/mpv-bash-completion/Manifest | 1 + app-shells/mpv-bash-completion/mpv-bash-completion-0.17.ebuild | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 app-shells/mpv-bash-completion/mpv-bash-completion-0.17.ebuild same issue with app-shells/mpv-bash-completion-3.3.13 at the unstable amd64 chroot image 13.0-no-multilib-libressl_20170409-194102 at the tinderbox Created attachment 470212 [details]
emerge-info.txt
Created attachment 470214 [details]
app-shells:mpv-bash-completion-3.3.13:20170416-225205.log
Created attachment 470216 [details]
emerge-history.txt
Created attachment 470218 [details]
etc.portage.tbz2
Created attachment 470220 [details]
sandbox-8634.log
(In reply to Toralf Förster from comment #8) > same issue with app-shells/mpv-bash-completion-3.3.13 at the unstable amd64 > chroot image 13.0-no-multilib-libressl_20170409-194102 at the tinderbox Can't reproduce: ~ # la .cache ls: cannot access '.cache': No such file or directory ~ # la cache ls: cannot access 'cache': No such file or directory ~ # export XDG_CACHE_HOME="/root/cache" ~ # emerge -1v mpv-bash-completion ~ # la .cache ls: cannot access '.cache': No such file or directory ~ # la cache ls: cannot access 'cache': No such file or directory Strace of `mpv --no-config --ad help' also doesn't yield any ~/.cache or ~/cache activity. Please provide exact steps to trigger it. (In reply to Coacher from comment #14) lines 1063 ff of https://github.com/toralf/tinderbox/blob/master/bin/job.sh are needed IMO (In reply to Toralf Förster from comment #15) and maybe this too : FEATURES="xattr preserve-libs parallel-fetch ipc-sandbox network-sandbox -news" (line 241 of https://github.com/toralf/tinderbox/blob/master/bin/tbs.sh) (In reply to Toralf Förster from comment #16) > (In reply to Toralf Förster from comment #15) > and maybe this too : > > FEATURES="xattr preserve-libs parallel-fetch ipc-sandbox network-sandbox > -news" > > (line 241 of https://github.com/toralf/tinderbox/blob/master/bin/tbs.sh) Still can't trigger it: https://paste.pound-python.org/show/AJkOwZUBbfgXF7ONyNnI/ Please attach `emerge -pqv media-video/mpv'. (In reply to Coacher from comment #17) tinderbox@mr-fox ~ $ scw ~/run/13.0-no-multilib-libressl_20170409-194102 mr-fox / # emerge -pqv media-video/mpv [ebuild R ] media-video/mpv-0.24.0 USE="X alsa cdda cli dvb egl iconv jpeg libass lua opengl uchardet xscreensaver xv (-aqua) -archive -bluray (-coreaudio) -cplugins -cuda -doc -drm -dvd -encode -gbm -jack -lcms -libav -libcaca -libmpv -luajit -openal -oss -pulseaudio (-raspberry-pi) -rubberband -samba -sdl (-selinux) {-test} -tools -v4l -vaapi -vdpau -vf-dlopen -wayland -xinerama -zsh-completion" CPU_FLAGS_X86="-sse4_1" PYTHON_TARGETS="python2_7 python3_4 -python3_5" Still can't reproduce with exact same versions as you have :( Please attach temp/environment. (In reply to Coacher from comment #20) > Please attach temp/environment. Ping. Please also provide a tinderbox command I can use to trigger this as I'm unable to reproduce this problem on any of my regular systems. (In reply to Coacher from comment #21) I can't reproduce it here till now. BTW there's no "tinderbox command" except the one which is used by every gentoo user at the command line too - look around line 931 of https://github.com/toralf/tinderbox/blob/master/bin/job.sh : RunCmd "emerge --update $task" (In reply to Toralf Förster from comment #22) > (In reply to Coacher from comment #21) > I can't reproduce it here till now. So you too can't reproduce it? Cannot reproduce whatever I do. Tried emerge, ebuild, root, non-root, latest mpv, live mpv, latest mpv-bash-completion, live mpv-bash-completion with all the exports as seen in comment #17. Please provide exact step by step instructions to trigger this bug using either regular emerge/ebuild or tinderbox script. Sorry, but "take a look at some script and deduce" is not an exact step by step instructions. Closing for now. got at the unstable amd64 chroot image 13.0_libressl_20170716-132702 this : app-shells/mpv-bash-completion-3.3.13 : sandbox issue (XDG_xxx_DIR related) Created attachment 486270 [details]
emerge-info.txt
Created attachment 486272 [details]
app-shells:mpv-bash-completion-3.3.13:20170721-150551.log
Created attachment 486274 [details]
emerge-history.txt
Created attachment 486276 [details]
etc.portage.tbz2
Created attachment 486278 [details]
sandbox-1612.log
reproduce this : # https://bugs.gentoo.org/show_bug.cgi?id=567192 # export XDG_DESKTOP_DIR="/root/Desktop" export XDG_DOCUMENTS_DIR="/root/Documents" export XDG_DOWNLOAD_DIR="/root/Downloads" export XDG_MUSIC_DIR="/root/Music" export XDG_PICTURES_DIR="/root/Pictures" export XDG_PUBLICSHARE_DIR="/root/Public" export XDG_TEMPLATES_DIR="/root/Templates" export XDG_VIDEOS_DIR="/root/Videos" export XDG_RUNTIME_DIR="/root/run" export XDG_CONFIG_HOME="/root/config" export XDG_CACHE_HOME="/root/cache" export XDG_DATA_HOME="/root/share" then emerge the package with FEATURES="xattr preserve-libs parallel-fetch ipc-sandbox network-sandbox -news" should be enough (In reply to Toralf Förster from comment #31) > reproduce this : $ cat bug586596.sh : https://paste.pound-python.org/show/HIyeCtjeVT1OcfatzlsT/ $ sh bug586596.sh emerge --info : https://paste.pound-python.org/show/wx9q2fRLgnRVEUM2WayP/ # sh bug586596.sh emerge -1v =app-shells/mpv-bash-completion-3.3.13 : https://paste.pound-python.org/show/U9SvVLy8GNpGUSbjzAkm/ Your suggested steps again don't reproduce the issue here. I've mentioned before that these steps are not enough, see comment #17. ah, forgot to mention: please take a look at xdg_environment_reset() and friends xdg_* - there're a lot of ebuilds using them to sane emerge software. (In reply to Toralf Förster from comment #34) > ah, forgot to mention: please take a look at xdg_environment_reset() and > friends xdg_* - there're a lot of ebuilds using them to sane emerge software. Thanks. I know very well how to solve these kind of issues, but I won't add workarounds for issues that only you can see. Sorry. Tested in a clean ~amd64 chroot. After a successful emerge of app-shells/mpv-bash-completion-3.3.13 with all of your settings: # bzgrep XDG /var/db/pkg/app-shells/mpv-bash-completion-3.3.13/environment.bz2 declare -x XDG_CACHE_HOME="/root/cache" declare -x XDG_CONFIG_DIRS="/etc/xdg" declare -x XDG_CONFIG_HOME="/root/config" declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share" declare -x XDG_DATA_HOME="/root/share" declare -x XDG_DESKTOP_DIR="/root/Desktop" declare -x XDG_DOCUMENTS_DIR="/root/Documents" declare -x XDG_DOWNLOAD_DIR="/root/Downloads" declare -x XDG_MUSIC_DIR="/root/Music" declare -x XDG_PICTURES_DIR="/root/Pictures" declare -x XDG_PUBLICSHARE_DIR="/root/Public" declare -x XDG_RUNTIME_DIR="/root/run" declare -x XDG_TEMPLATES_DIR="/root/Templates" declare -x XDG_VIDEOS_DIR="/root/Videos" # cat /var/db/pkg/app-shells/mpv-bash-completion-3.3.13/FEATURES assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr Please do the following: 1. Re-create the required environment to trigger this issue, e.g. as you described in comment #31. 2. Run strace on the problematic command from your sandbox.log like this: `strace -e trace=mkdir -o strace.log mpv --no-config --ad help' 3. Attach the resulting strace.log here. re-tested it today at affected image img1/13.0_libressl_20170716-132702 - issue could't be reproduced there |