When building paperwork 2.0.3 installation fails at the very end, when paperwork queries Tesseract for the available languages. Tesseract, which is OpenCL enabled on my system tries to initialize OpenCL, causing it to try to open /dev/nvidiactl triggering the sandbox to abort the installation due to a policy violation. Furthermore I've confirmed paperwork 2.0.2 still builds and installs without issue, so this is a recently introduced problem with the new ebuild. Reproducible: Always Steps to Reproduce: 1. install Tesseract with USE=opencl on system with VIDEO_CARDS=nvidia and USE=uvm on the nvidia-drivers package and an Nvidia card available. 2. emerge paperwork Actual Results: Failure to install due to sandbox abort Expected Results: Installation of paperwork Although likely irrelevant, the system is using a GTX 1080 Ti. And of course, I realize temporarily disabling opencl on tesseract will allow paperwork 2.0.3 to install, although I haven't confirmed this yet.
Created attachment 713100 [details] emerge --info output
Created attachment 713103 [details] Paperwork 2.0.3 build log demonstrating the issue described
I can reproduce, adding "addpredict /dev/nvidiactl" right before main.py install in the ebuild is enough to work around this.
Thanks, this comes from ebuild change I put in 2.0.3 to have desktop file and icons: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/paperwork/paperwork-2.0.3.ebuild#n39 Adding that addpredict line
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db48ef9ae8e400c4144b4e0314f1db3c53ff6f9b commit db48ef9ae8e400c4144b4e0314f1db3c53ff6f9b Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2021-06-01 19:27:12 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2021-06-01 19:27:24 +0000 app-text/paperwork: fix install with tesseract[opencl] and nvidia Closes: https://bugs.gentoo.org/793446 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> app-text/paperwork/paperwork-2.0.3.ebuild | 4 ++++ 1 file changed, 4 insertions(+)
Thanks both, for the quick response and fix.