Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 793446 - app-text/paperwork-2.0.3 fails to install on system with OpenCL enabled tesseract using the Nvidia driver
Summary: app-text/paperwork-2.0.3 fails to install on system with OpenCL enabled tesse...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-01 08:08 UTC by Bas Weelinck
Modified: 2021-06-01 19:54 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge_info.txt,6.22 KB, text/plain)
2021-06-01 08:09 UTC, Bas Weelinck
Details
Paperwork 2.0.3 build log demonstrating the issue described (paperwork-build-20210601.log,495.67 KB, text/x-log)
2021-06-01 08:11 UTC, Bas Weelinck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Weelinck 2021-06-01 08:08:03 UTC
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.
Comment 1 Bas Weelinck 2021-06-01 08:09:31 UTC
Created attachment 713100 [details]
emerge --info output
Comment 2 Bas Weelinck 2021-06-01 08:11:30 UTC
Created attachment 713103 [details]
Paperwork 2.0.3 build log demonstrating the issue described
Comment 3 Ionen Wolkens gentoo-dev 2021-06-01 12:53:17 UTC
I can reproduce, adding "addpredict /dev/nvidiactl" right before main.py install in the ebuild is enough to work around this.
Comment 4 Bernard Cafarelli gentoo-dev 2021-06-01 19:24:52 UTC
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
Comment 5 Larry the Git Cow gentoo-dev 2021-06-01 19:27:27 UTC
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(+)
Comment 6 Bas Weelinck 2021-06-01 19:54:16 UTC
Thanks both, for the quick response and fix.