-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading Dangerzone 0.5.0 to 0.6.0 on Fedora 38 may / will break the OCR component #737
Comments
Great catch! We had tested on Qubes a dev build for Fedora 38 templates, and a production build for Fedora 39 templates. And yet we missed it 😬 . The reason we missed it is:
Originally posted by @apyrgio in #704 (comment) |
Provide a fix for an OCR bug that affected Fedora 38 templates of Qubes OS. In that specific configuration, the PyMuPDF version accepts the Tesseract data directory only from the `TESSDATA_PREFIX` environment variable. Our mistake was that we were setting this environment variable in a dev script, instead of setting it for all configurations. In this commit, we set an attribute in the fitz.fitz module, so that both dev scripts and end-user installations can work. This is hacky, but it targets an old PyMuPDF release after all, so we don't expect things to break in the long run. Fixes #737
This issue has been fixed in our repo, but we also need to ship a new Dangerzone version for affected users. What we plan to do shortly is:
|
The Fedora 38 build for `dangerzone-qubes` had a bug in the OCR phase. Publish a new dangerzone-qubes RPM that fixes it, with a bump in the release number from 1 to 2, so that end-users can get upgraded. Refs freedomofpress/dangerzone#737
@GWeck we have a |
Bump the release number from 1 to 2, so that we can build a dangerzone-qubes 0.6.0-2 package for Fedora 38 that existing 0.6.0 users can update to. Refs #737
Upgrading Dangerzone 0.5.0 to 0.6.0 on Fedora 38 may / will break the OCR component. This can be easily fixed by appending the line
to the file
.bash_profile
in the disposable template used for the Dangerzone dispVM.Originally posted by @GWeck in #704 (comment)
The text was updated successfully, but these errors were encountered: