Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656738 - app-emulation/crossover-bin-17.5.0 fails to emerge: ACCESS DENIED: open_wr & fopen_wr
Summary: app-emulation/crossover-bin-17.5.0 fails to emerge: ACCESS DENIED: open_wr & ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-28 10:36 UTC by urcindalo
Modified: 2021-01-21 19:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description urcindalo 2018-05-28 10:36:39 UTC
This is what just happened when updating my box:
=====
[ebuild     U ~] app-emulation/crossover-bin-17.5.0::gentoo [15.2.0::gentoo] USE="cups gphoto2 gsm jpeg lcms ldap mp3 nls openal opencl%* opengl png scanner ssl v4l (-capi) -doc" PYTHON_TARGETS="python2_7" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] Y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/crossover-bin-17.5.0::gentoo
 * install-crossover-17.5.0.bin BLAKE2B SHA512 size ;-) ...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking install-crossover-17.5.0.bin to /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work
warning [/var/tmp/portage/app-emulation/crossover-bin-17.5.0/distdir/install-crossover-17.5.0.bin]:  867913 extra bytes at beginning or within zipfile
  (attempting to process anyway)
>>> Source unpacked in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work
>>> Preparing source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...
 * Fixing shebang in ./bin/cxfix.
 * Fixing shebang in ./bin/cxrun.
 * Fixing shebang in ./bin/cxtie.
 * Fixing shebang in ./bin/cxprefs.
 * Fixing shebang in ./bin/cxreset.
 * Fixing shebang in ./bin/crossover.
 * Fixing shebang in ./bin/cxwait.
 * Fixing shebang in ./bin/cxinstaller.
 * Fixing shebang in ./bin/cxmessage.
 * Fixing shebang in ./bin/cxupdatecheck.
 * Fixing shebang in ./bin/cxregister.
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...                                                           
>>> Source configured.                                                                                                                           
>>> Compiling source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...                                                             
>>> Source compiled.                                                                                                                             
 * Skipping make test/check due to ebuild restriction.                                                                                           
>>> Test phase [disabled because of RESTRICT=test]: app-emulation/crossover-bin-17.5.0                                                           
                                                                                                                                                 
>>> Install crossover-bin-17.5.0 into /var/tmp/portage/app-emulation/crossover-bin-17.5.0/image/ category app-emulation                          
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/tmp/portage/app-emulation/crossover-bin-17.5.0/temp/runtime-root'                   
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/tmp/portage/app-emulation/crossover-bin-17.5.0/temp/runtime-root'                   
 * ACCESS DENIED:  open_wr:      /dev/dri/card0
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: nouveau
 * ACCESS DENIED:  fopen_wr:     /root/.dbus/session-bus/5397d3a911a572e9018ecf0500000009-0
>>> Completed installing crossover-bin-17.5.0 into /var/tmp/portage/app-emulation/crossover-bin-17.5.0/image/

 * Final size of build directory: 495904 KiB (484.2 MiB)
 * Final size of installed tree:  496068 KiB (484.4 MiB)

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-2175.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: open_wr
S: deny
P: /dev/dri/card0
A: /dev/dri/card0
R: /dev/dri/card0
C: konqueror --version 

F: fopen_wr
S: deny
P: /root/.dbus/session-bus/5397d3a911a572e9018ecf0500000009-0
A: /root/.dbus/session-bus/5397d3a911a572e9018ecf0500000009-0
R: /root/.dbus/session-bus/5397d3a911a572e9018ecf0500000009-0
C: dbus-launch --autolaunch 5397d3a911a572e9018ecf0500000009 --binary-syntax --close-stderr 
 * --------------------------------------------------------------------------------
 * The ebuild phase 'install' with pid 2175 appears to have left an orphan
 * process running in the background.
=====
Comment 1 urcindalo 2018-05-28 10:38:19 UTC
My nouveau driver (also got updated today to 1.0.15-r1):
=====
$ eix -I nouveau
[I] x11-drivers/xf86-video-nouveau
     Available versions:  1.0.15 1.0.15-r1
     Installed versions:  1.0.15-r1(11:44:34 28/05/18)
     Homepage:            https://nouveau.freedesktop.org/wiki/
     Description:         Accelerated Open Source driver for nVidia cards
=====
Comment 2 urcindalo 2018-05-28 21:05:07 UTC
I just tried updating another box, running the OS amdgpu driver. It also fails, but apparently with a different error:
=====
>>> Emerging (4 of 6) app-emulation/crossover-bin-17.5.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * install-crossover-17.5.0.bin BLAKE2B SHA512 size ;-) ...                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking install-crossover-17.5.0.bin to /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work
warning [/var/tmp/portage/app-emulation/crossover-bin-17.5.0/distdir/install-crossover-17.5.0.bin]:  867913 extra bytes at beginning or within zipfile
  (attempting to process anyway)
>>> Source unpacked in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work
>>> Preparing source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...
 * Fixing shebang in ./bin/cxinstaller.
 * Fixing shebang in ./bin/cxfix.
 * Fixing shebang in ./bin/cxregister.
 * Fixing shebang in ./bin/cxprefs.
 * Fixing shebang in ./bin/cxwait.
 * Fixing shebang in ./bin/crossover.
 * Fixing shebang in ./bin/cxtie.
 * Fixing shebang in ./bin/cxreset.
 * Fixing shebang in ./bin/cxmessage.
 * Fixing shebang in ./bin/cxrun.
 * Fixing shebang in ./bin/cxupdatecheck.
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/crossover-bin-17.5.0/work ...
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: app-emulation/crossover-bin-17.5.0

>>> Install crossover-bin-17.5.0 into /var/tmp/portage/app-emulation/crossover-bin-17.5.0/image/ category app-emulation
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/tmp/portage/app-emulation/crossover-bin-17.5.0/temp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/tmp/portage/app-emulation/crossover-bin-17.5.0/temp/runtime-root'
 * ACCESS DENIED:  open_wr:      /root/.cache/mesa_shader_cache/index
 * ACCESS DENIED:  fopen_wr:     /root/.dbus/session-bus/772ff2e7b22d37eb759c47170000001c-0
>>> Completed installing crossover-bin-17.5.0 into /var/tmp/portage/app-emulation/crossover-bin-17.5.0/image/

 * Final size of build directory: 496008 KiB (484.3 MiB)
 * Final size of installed tree:  496404 KiB (484.7 MiB)

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-17773.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: open_wr
S: deny
P: /root/.cache/mesa_shader_cache/index
A: /root/.cache/mesa_shader_cache/index
R: /root/.cache/mesa_shader_cache/index
C: konqueror --version 

F: fopen_wr
S: deny
P: /root/.dbus/session-bus/772ff2e7b22d37eb759c47170000001c-0
A: /root/.dbus/session-bus/772ff2e7b22d37eb759c47170000001c-0
R: /root/.dbus/session-bus/772ff2e7b22d37eb759c47170000001c-0
C: dbus-launch --autolaunch 772ff2e7b22d37eb759c47170000001c --binary-syntax --close-stderr 
 * --------------------------------------------------------------------------------
 * The ebuild phase 'install' with pid 17773 appears to have left an orphan
 * process running in the background.
=====
Comment 3 urcindalo 2018-06-24 15:23:04 UTC
The same also happens with recent v17.5.0-r1
Currently, I find it impossible to emerge ANY of the crossover-bin versions on any of my boxes, no matter the graphics card (NVIDIA or ATI) or opensource driver (nouveau or amdgpu/radeonsi).
Comment 4 urcindalo 2018-07-01 18:18:39 UTC
I was able to emerge crossover-bin by clearing the environment in advance:
===
# env -i emerge =app-emulation/crossover-bin-17.5.0-r1
===

The above workaround comes from the forum:
https://forums.gentoo.org/viewtopic-p-8235946.html#8235946

Is it possible to add this solution to the ebuilds?
Comment 5 Pacho Ramos gentoo-dev 2019-04-10 12:41:47 UTC
It would be better to know what exact variable is causing this failure
Comment 6 Pacho Ramos gentoo-dev 2021-01-21 19:57:23 UTC
I never saw this again... and with EAPI7 many of the relevant variables are unset by default... I would close this for now then except if still appearing