Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905436 - sci-libs/caffe2-1.13.1-r4: emerge fails due to sandbox violation (cuda tries to write to /dev/char*)
Summary: sci-libs/caffe2-1.13.1-r4: emerge fails due to sandbox violation (cuda tries ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-01 23:42 UTC by Anton Bolshakov
Modified: 2023-06-04 13:36 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 Anton Bolshakov 2023-05-01 23:42:03 UTC
Please add  addpredict "/dev/char" here to, similar with the ebuild 2.0.0
https://bugs.gentoo.org/904292

sci-libs/caffe2-2.0 (or one of the deps) doesn't GCC-12 yet, so I have to use caffe2-1.13.1.

Thank you.
Comment 1 Larry the Git Cow gentoo-dev 2023-05-05 06:00:48 UTC
The bug has been closed via the following commit(s):

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

commit 9c94203f8b64847edab176509c93ebdc5aef7573
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2023-05-05 05:59:11 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2023-05-05 06:00:02 +0000

    sci-libs/caffe2: fix sandbox error
    
    Closes: https://bugs.gentoo.org/905436
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/caffe2/caffe2-1.13.1-r4.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-06-04 13:36:15 UTC
The bug has been referenced in the following commit(s):

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

commit 9c1e2bb5e15c833363367382e9f1c44b9eeae0a0
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-06-04 10:47:05 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-06-04 13:35:43 +0000

    x11-drivers/nvidia-drivers: use sandbox.d for /dev/nvidiactl+/dev/char
    
    /dev/nvidiactl been a long standing issue, sometime appearing in sneaky
    ways when a revdeps is built with opencl/cuda support even though the
    package itself does not use it.
    
    And /dev/char is newly needed with >=nvidia-drivers-525.105.17 or
    >=535.43.02, but not 530.41.03. The production branch's 525.105.17
    is newer than ~arch's long-living 530 and led to this being overlooked
    until it hit stable (older stable 525.89.02 was not affected) and
    was unaware of this until rebuilt libomp[offload] with 535 today
    (note that 535.43.02 is unkeyworded, it's a beta).
    
    Need /dev/char rather than /dev/char/195:255 given it tries to remove
    + create a symlink and does not simply try to write there.
    
    This is not meant to be a full coverage of nvidia devices and only
    for those being a widespread problem. Special needs or addwrite
    (typically to run tests) should be handled manually or using
    cuda.eclass' cuda_add_sandbox.
    
    Adding /dev/char to all versions even if not needed *yet* just so it's
    not overlooked when nvidia spreads it to other branches (except 390
    given it's EOL, not to mention has no cuda packages anymore).
    
    Bug: https://bugs.gentoo.org/904292
    Bug: https://bugs.gentoo.org/905436
    Closes: https://bugs.gentoo.org/904944
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild           | 7 +++++++
 ...ivers-470.182.03.ebuild => nvidia-drivers-470.182.03-r1.ebuild} | 7 +++++++
 ...ivers-515.105.01.ebuild => nvidia-drivers-515.105.01-r1.ebuild} | 7 +++++++
 ...ivers-525.116.04.ebuild => nvidia-drivers-525.116.04-r1.ebuild} | 7 +++++++
 ...drivers-525.47.26.ebuild => nvidia-drivers-525.47.26-r1.ebuild} | 7 +++++++
 ...drivers-530.41.03.ebuild => nvidia-drivers-530.41.03-r1.ebuild} | 7 +++++++
 ...drivers-535.43.02.ebuild => nvidia-drivers-535.43.02-r1.ebuild} | 7 +++++++
 7 files changed, 49 insertions(+)