FS#65496 - [gscan2pdf] Missing Dependency java-commons-lang leads Strange GSCAN2PDF Warnings
Attached to Project:
Community Packages
Opened by Thomas Reim (rdratlos) - Friday, 14 February 2020, 10:39 GMT
Last edited by Muflone (muflone) - Sunday, 28 June 2020, 18:36 GMT
Opened by Thomas Reim (rdratlos) - Friday, 14 February 2020, 10:39 GMT
Last edited by Muflone (muflone) - Sunday, 28 June 2020, 18:36 GMT
|
Details
Description:
If optional dependency pdftk is installed and used and package java-commons-lang, which is an optional dependency for pdftk, is not installed, gscan2pdf throws strange warnings at startup: 1. message: "pdftk is installed, but cannot access the directory used for temporary files.One reason for this might be that pdftk was installed via snap.In this case, removing pdftk, and reinstalling without using snap would allow gscan2pdf to use pdftk. Another workaround would be to select a temporary directory under your home directory in Edit/Preferences." 2. message Warning: missing packages PDF encryption requires pdftk." Analysis shows that the warnings are caused by gscan2pdf executing pdftk's dump_data function. As soon as package java-commons-lang has been installed, the warning messages are not shown aghain and gscan2pdf works fine. Please check, if java-commons-lang should be a mandatory dependency for gscan2pdf to avoid misleading warnings for users that installed optional dependency pdftk. Align solution with pdftk task Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: Uninstall package java-commons-lang (if installed) Install pdftk Install and start gscan2pdf Start gscan2pdf -> Check warning messages Then install java-commons-lang Start gscan2pdf again -> No warnings |
This task depends upon
Closed by Muflone (muflone)
Sunday, 28 June 2020, 18:36 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in gscan2pdf 2.7.0-1
Sunday, 28 June 2020, 18:36 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in gscan2pdf 2.7.0-1
Please add relkated task:
FS#65495.FS#65495, I think java-commons-lang should be made an optional dependency of gscan2pdf, since it is needed for the already existing optional pdftk dependency. I don't think java-commons-lang needs to be a mandatory dependency of either package.