Skip to content

Instantly share code, notes, and snippets.

@robbat2
Created January 18, 2021 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbat2/4ee0b789a6a155884502ca48a80d96fe to your computer and use it in GitHub Desktop.
Save robbat2/4ee0b789a6a155884502ca48a80d96fe to your computer and use it in GitHub Desktop.
pitta ~ # FEATURES='-ipc-sandbox -sandbox -mount-sandbox -network-sandbox -pid-sandbox -usersandbox -userpriv -sfperms -strict' ebuild --debug --debug /var/db/repos/gentoo/sys-apps/sandbox/sandbox-2.20.ebuild package qmerge
>>> Not marked as unpacked; recreating WORKDIR...
+ true
+ __qa_source /var/db/repos/gentoo/profiles/default/linux/amd64/17.1/profile.bashrc
++ shopt
+ local 'shopts=autocd off
assoc_expand_once off
cdable_vars off
cdspell off
checkhash off
checkjobs off
checkwinsize on
cmdhist on
compat31 off
compat32 off
compat40 off
compat41 off
compat42 on
compat43 off
compat44 off
complete_fullquote on
direxpand off
dirspell off
dotglob off
execfail off
expand_aliases on
extdebug on
extglob off
extquote on
failglob off
force_fignore on
globasciiranges on
globstar off
gnu_errfmt off
histappend off
histreedit off
histverify off
hostcomplete on
huponexit off
inherit_errexit off
interactive_comments on
lastpipe off
lithist off
localvar_inherit off
localvar_unset off
login_shell off
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nocasematch off
nullglob off
progcomp on
progcomp_alias off
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off' 'OLDIFS=
'
+ local retval
+ source /var/db/repos/gentoo/profiles/default/linux/amd64/17.1/profile.bashrc
++ [[ clean == \s\e\t\u\p ]]
+ retval=0
+ set +e
++ shopt
+ [[ autocd off
assoc_expand_once off
cdable_vars off
cdspell off
checkhash off
checkjobs off
checkwinsize on
cmdhist on
compat31 off
compat32 off
compat40 off
compat41 off
compat42 on
compat43 off
compat44 off
complete_fullquote on
direxpand off
dirspell off
dotglob off
execfail off
expand_aliases on
extdebug on
extglob off
extquote on
failglob off
force_fignore on
globasciiranges on
globstar off
gnu_errfmt off
histappend off
histreedit off
histverify off
hostcomplete on
huponexit off
inherit_errexit off
interactive_comments on
lastpipe off
lithist off
localvar_inherit off
localvar_unset off
login_shell off
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nocasematch off
nullglob off
progcomp on
progcomp_alias off
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off != autocd off
assoc_expand_once off
cdable_vars off
cdspell off
checkhash off
checkjobs off
checkwinsize on
cmdhist on
compat31 off
compat32 off
compat40 off
compat41 off
compat42 on
compat43 off
compat44 off
complete_fullquote on
direxpand off
dirspell off
dotglob off
execfail off
expand_aliases on
extdebug on
extglob off
extquote on
failglob off
force_fignore on
globasciiranges on
globstar off
gnu_errfmt off
histappend off
histreedit off
histverify off
hostcomplete on
huponexit off
inherit_errexit off
interactive_comments on
lastpipe off
lithist off
localvar_inherit off
localvar_unset off
login_shell off
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nocasematch off
nullglob off
progcomp on
progcomp_alias off
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off ]]
+ [[
!= \ \ \
]]
+ return 0
+ true
+ set +x
+ __dyn_clean
+ '[' -z /var/tmp/portage/sys-apps/sandbox-2.20 ']'
+ '[' '!' -d /var/tmp/portage/sys-apps/sandbox-2.20 ']'
+ has chflags assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr
+ local needle=chflags
+ shift
+ local x
+ for x in "$@"
+ '[' assume-digests = chflags ']'
+ for x in "$@"
+ '[' binpkg-docompress = chflags ']'
+ for x in "$@"
+ '[' binpkg-dostrip = chflags ']'
+ for x in "$@"
+ '[' binpkg-logs = chflags ']'
+ for x in "$@"
+ '[' config-protect-if-modified = chflags ']'
+ for x in "$@"
+ '[' distlocks = chflags ']'
+ for x in "$@"
+ '[' ebuild-locks = chflags ']'
+ for x in "$@"
+ '[' fixlafiles = chflags ']'
+ for x in "$@"
+ '[' merge-sync = chflags ']'
+ for x in "$@"
+ '[' multilib-strict = chflags ']'
+ for x in "$@"
+ '[' news = chflags ']'
+ for x in "$@"
+ '[' parallel-fetch = chflags ']'
+ for x in "$@"
+ '[' preserve-libs = chflags ']'
+ for x in "$@"
+ '[' protect-owned = chflags ']'
+ for x in "$@"
+ '[' qa-unresolved-soname-deps = chflags ']'
+ for x in "$@"
+ '[' unknown-features-warn = chflags ']'
+ for x in "$@"
+ '[' unmerge-logs = chflags ']'
+ for x in "$@"
+ '[' unmerge-orphans = chflags ']'
+ for x in "$@"
+ '[' userfetch = chflags ']'
+ for x in "$@"
+ '[' usersync = chflags ']'
+ for x in "$@"
+ '[' xattr = chflags ']'
+ return 1
+ cd /usr/lib/python3.7/site-packages
+ rm -rf /var/tmp/portage/sys-apps/sandbox-2.20/image /var/tmp/portage/sys-apps/sandbox-2.20/homedir
+ rm -f /var/tmp/portage/sys-apps/sandbox-2.20/.installed
+ [[ '' = binary ]]
+ has keeptemp assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr
+ local needle=keeptemp
+ shift
+ local x
+ for x in "$@"
+ '[' assume-digests = keeptemp ']'
+ for x in "$@"
+ '[' binpkg-docompress = keeptemp ']'
+ for x in "$@"
+ '[' binpkg-dostrip = keeptemp ']'
+ for x in "$@"
+ '[' binpkg-logs = keeptemp ']'
+ for x in "$@"
+ '[' config-protect-if-modified = keeptemp ']'
+ for x in "$@"
+ '[' distlocks = keeptemp ']'
+ for x in "$@"
+ '[' ebuild-locks = keeptemp ']'
+ for x in "$@"
+ '[' fixlafiles = keeptemp ']'
+ for x in "$@"
+ '[' merge-sync = keeptemp ']'
+ for x in "$@"
+ '[' multilib-strict = keeptemp ']'
+ for x in "$@"
+ '[' news = keeptemp ']'
+ for x in "$@"
+ '[' parallel-fetch = keeptemp ']'
+ for x in "$@"
+ '[' preserve-libs = keeptemp ']'
+ for x in "$@"
+ '[' protect-owned = keeptemp ']'
+ for x in "$@"
+ '[' qa-unresolved-soname-deps = keeptemp ']'
+ for x in "$@"
+ '[' unknown-features-warn = keeptemp ']'
+ for x in "$@"
+ '[' unmerge-logs = keeptemp ']'
+ for x in "$@"
+ '[' unmerge-orphans = keeptemp ']'
+ for x in "$@"
+ '[' userfetch = keeptemp ']'
+ for x in "$@"
+ '[' usersync = keeptemp ']'
+ for x in "$@"
+ '[' xattr = keeptemp ']'
+ return 1
+ has keepwork assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr
+ local needle=keepwork
+ shift
+ local x
+ for x in "$@"
+ '[' assume-digests = keepwork ']'
+ for x in "$@"
+ '[' binpkg-docompress = keepwork ']'
+ for x in "$@"
+ '[' binpkg-dostrip = keepwork ']'
+ for x in "$@"
+ '[' binpkg-logs = keepwork ']'
+ for x in "$@"
+ '[' config-protect-if-modified = keepwork ']'
+ for x in "$@"
+ '[' distlocks = keepwork ']'
+ for x in "$@"
+ '[' ebuild-locks = keepwork ']'
+ for x in "$@"
+ '[' fixlafiles = keepwork ']'
+ for x in "$@"
+ '[' merge-sync = keepwork ']'
+ for x in "$@"
+ '[' multilib-strict = keepwork ']'
+ for x in "$@"
+ '[' news = keepwork ']'
+ for x in "$@"
+ '[' parallel-fetch = keepwork ']'
+ for x in "$@"
+ '[' preserve-libs = keepwork ']'
+ for x in "$@"
+ '[' protect-owned = keepwork ']'
+ for x in "$@"
+ '[' qa-unresolved-soname-deps = keepwork ']'
+ for x in "$@"
+ '[' unknown-features-warn = keepwork ']'
+ for x in "$@"
+ '[' unmerge-logs = keepwork ']'
+ for x in "$@"
+ '[' unmerge-orphans = keepwork ']'
+ for x in "$@"
+ '[' userfetch = keepwork ']'
+ for x in "$@"
+ '[' usersync = keepwork ']'
+ for x in "$@"
+ '[' xattr = keepwork ']'
+ return 1
+ rm -rf /var/tmp/portage/sys-apps/sandbox-2.20/temp
+ [[ '' = binary ]]
+ has keepwork assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync xattr
+ local needle=keepwork
+ shift
+ local x
+ for x in "$@"
+ '[' assume-digests = keepwork ']'
+ for x in "$@"
+ '[' binpkg-docompress = keepwork ']'
+ for x in "$@"
+ '[' binpkg-dostrip = keepwork ']'
+ for x in "$@"
+ '[' binpkg-logs = keepwork ']'
+ for x in "$@"
+ '[' config-protect-if-modified = keepwork ']'
+ for x in "$@"
+ '[' distlocks = keepwork ']'
+ for x in "$@"
+ '[' ebuild-locks = keepwork ']'
+ for x in "$@"
+ '[' fixlafiles = keepwork ']'
+ for x in "$@"
+ '[' merge-sync = keepwork ']'
+ for x in "$@"
+ '[' multilib-strict = keepwork ']'
+ for x in "$@"
+ '[' news = keepwork ']'
+ for x in "$@"
+ '[' parallel-fetch = keepwork ']'
+ for x in "$@"
+ '[' preserve-libs = keepwork ']'
+ for x in "$@"
+ '[' protect-owned = keepwork ']'
+ for x in "$@"
+ '[' qa-unresolved-soname-deps = keepwork ']'
+ for x in "$@"
+ '[' unknown-features-warn = keepwork ']'
+ for x in "$@"
+ '[' unmerge-logs = keepwork ']'
+ for x in "$@"
+ '[' unmerge-orphans = keepwork ']'
+ for x in "$@"
+ '[' userfetch = keepwork ']'
+ for x in "$@"
+ '[' usersync = keepwork ']'
+ for x in "$@"
+ '[' xattr = keepwork ']'
+ return 1
+ rm -f /var/tmp/portage/sys-apps/sandbox-2.20/.ebuild_changed /var/tmp/portage/sys-apps/sandbox-2.20/.logid /var/tmp/portage/sys-apps/sandbox-2.20/.pretended /var/tmp/portage/sys-apps/sandbox-2.20/.setuped /var/tmp/portage/sys-apps/sandbox-2.20/.unpacked /var/tmp/portage/sys-apps/sandbox-2.20/.prepared /var/tmp/portage/sys-apps/sandbox-2.20/.configured /var/tmp/portage/sys-apps/sandbox-2.20/.compiled /var/tmp/portage/sys-apps/sandbox-2.20/.tested /var/tmp/portage/sys-apps/sandbox-2.20/.packaged /var/tmp/portage/sys-apps/sandbox-2.20/.instprepped /var/tmp/portage/sys-apps/sandbox-2.20/.die_hooks /var/tmp/portage/sys-apps/sandbox-2.20/.ipc_in /var/tmp/portage/sys-apps/sandbox-2.20/.ipc_out /var/tmp/portage/sys-apps/sandbox-2.20/.ipc_lock /var/tmp/portage/sys-apps/sandbox-2.20/.exit_status
+ rm -rf /var/tmp/portage/sys-apps/sandbox-2.20/build-info
+ rm -rf /var/tmp/portage/sys-apps/sandbox-2.20/work
+ rm -f /var/tmp/portage/sys-apps/sandbox-2.20/files
+ '[' -f /var/tmp/portage/sys-apps/sandbox-2.20/.unpacked ']'
+ rm -rf /var/tmp/portage/sys-apps/sandbox-2.20/distdir
+ rmdir /var/tmp/portage/sys-apps/sandbox-2.20
+ true
+ set +x
[Errno 13] Permission denied: b'/bin/bash':
/bin/bash -c >> /var/cache/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f /var/cache/portage/distfiles/.__portage_test_write__ ; exit $rval
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/portage/process.py", line 391, in spawn
File "/usr/lib/python3.7/site-packages/portage/process.py", line 745, in _exec
File "/usr/lib/python3.7/site-packages/portage/__init__.py", line 246, in __call__
PermissionError: [Errno 13] Permission denied: b'/bin/bash'
!!! Permission Denied: /usr/local/infra-overlay/profiles/thirdpartymirrors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment