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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Chemistry-Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-30 18:14 UTC by C. Wijtmans
Modified: 2023-03-20 20:22 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.
Comment 4 Pacho Ramos gentoo-dev 2023-03-20 13:39:55 UTC
Are you still hitting this with sci-chemistry/chemical-mime-data-0.1.94-r4 ?
Comment 5 Larry the Git Cow gentoo-dev 2023-03-20 20:22:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3e4562f4be5db8b8fd49161c8a36fea45c9ecca

commit c3e4562f4be5db8b8fd49161c8a36fea45c9ecca
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2023-03-20 20:21:38 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2023-03-20 20:21:38 +0000

    sci-chemistry/chemical-mime-data: add 0.1.95_pre20171122
    
    Closes: https://bugs.gentoo.org/578628
    Closes: https://bugs.gentoo.org/710906
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sci-chemistry/chemical-mime-data/Manifest          |  1 +
 .../chemical-mime-data-0.1.95_pre20171122.ebuild   | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)