Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578628 - sci-chemistry/chemical-mime-data - src_compile(): /usr/bin/convert .../work/chemical-mime-data-0.1.94/icons/hicolor/gnome-mime-chemical.svg -resize 16x16 gnome-mime-chemical_16.png: ACCESS DENIED: open_wr: /dev/nvidia-uvm
Summary: sci-chemistry/chemical-mime-data - src_compile(): /usr/bin/convert .../work/c...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-30 18:14 UTC by C. Wijtmans
Modified: 2019-07-29 12:20 UTC (History)
1 user (show)

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


Attachments
sci-chemistry:chemical-mime-data-0.1.94-r2:20160329-175101.log (sci-chemistry:chemical-mime-data-0.1.94-r2:20160329-175101.log,16.44 KB, text/plain)
2016-03-30 18:15 UTC, C. Wijtmans
Details
Fix the emerge by allowing access to the relevant GPU related files as suggested in Marius Brehler's comment. (chemical-mime-data-fix-sandbox-violations.patch,693 bytes, patch)
2019-07-29 12:20 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description C. Wijtmans 2016-03-30 18:14:52 UTC
Packages building with opencl will fail because of sandbox in combination with cuda accelerated opencl. 

Reproducible: Always
Comment 1 C. Wijtmans 2016-03-30 18:15:40 UTC
Created attachment 429320 [details]
sci-chemistry:chemical-mime-data-0.1.94-r2:20160329-175101.log
Comment 2 Marius Brehler 2016-05-30 09:36:18 UTC
For me this looks like a bug in the sci-chemistry/chemical-mime-data ebuild, which can be fixed by adding RESTRICT="userpriv" and granting write access to nvidia-uvm etc. as for example done within this [1] ebuild.

[1] https://github.com/gentoo-science/sci/blob/master/sci-libs/arrayfire/arrayfire-3.3.2.ebuild#L83
Comment 3 Jan-Matthias Braun 2019-07-29 12:20:00 UTC
Created attachment 584974 [details, diff]
Fix the emerge by allowing access to the relevant GPU related files as suggested in Marius Brehler's comment.

(In reply to Marius Brehler from comment #2)
> For me this looks like a bug in the sci-chemistry/chemical-mime-data ebuild,
> which can be fixed by adding RESTRICT="userpriv" and granting write access
> to nvidia-uvm etc. as for example done within this [1] ebuild.
> 
> [1]
> https://github.com/gentoo-science/sci/blob/master/sci-libs/arrayfire/
> arrayfire-3.3.2.ebuild#L83

Using a similar mechanism works. But I am not sure what the best approach is.
My attached patch is checking for the opencl use flags, but this is misleading at best, as the question is if /usr/bin/convert, i.e. media-gfx/imagemagick, is actually emerged with opencl, and inserting an IUSE="opencl" is just recognising global USE flags.
Also, I don't know how vendor specific this is.

Nonetheless, I could emerge again. So thanks for the tip.