Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819516 - media-gfx/gscan2pdf-2.91 save button disabled, doesn't find libtiff
Summary: media-gfx/gscan2pdf-2.91 save button disabled, doesn't find libtiff
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Chris Mayo
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-10-22 17:38 UTC by korte
Modified: 2021-11-11 19:38 UTC (History)
3 users (show)

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


Attachments
emerge --info gscan2pdf (emerge--info_gscan2pdf.txt,6.28 KB, text/plain)
2021-10-22 17:38 UTC, korte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2021-10-22 17:38:10 UTC
Created attachment 746175 [details]
emerge --info gscan2pdf

Installing media-gfx/gscan2pdf-2.9.1 on aarch64 worked. gscan2pdf itself reports some missing dependencies which I installed then. libtiff is required for saving a file and if libtiff is not found the Save Button isn't clickable.

I inverted several dependency checks and gscan2pdf works, including saving to a tiff.

I guess the problem is in line 896-899 but couldn't fix it:

        [
            'libtiff', 'stderr',
            qr/LIBTIFF,\sVersion\s([\d.]+)/xsm, [ 'tiffcp', '-h' ]
        ],

Output from my system:

# tiffcp -h | grep ersio | hexdump -C
00000000  4c 49 42 54 49 46 46 2c  20 56 65 72 73 69 6f 6e  |LIBTIFF, Version|
00000010  20 34 2e 33 2e 30 0a                              | 4.3.0.|
00000017
Comment 1 Chris Mayo 2021-10-22 18:25:31 UTC
I think media-gfx/gscan2pdf-2.12.2 could work because it includes this fix:

 Check both stderr and stdout for libtiff-tools version
 Closes Debian bug 977532 (gscan2pdf: save option not available)

https://sourceforge.net/p/gscan2pdf/code/ci/47b85e4c4c47a1c0c4248b925837c5bde0ca21e9/

Although that might be a lot of work for aarch64 because of the new dependencies - creating a patch from that commit I guess would be easier.
Comment 2 korte 2021-10-22 20:41:18 UTC
The "patches" from Document.pm and gscan2pdf worked. https://sourceforge.net/p/gscan2pdf/code/ci/47b85e4c4c47a1c0c4248b925837c5bde0ca21e9/

I modified it manually and it works.
Comment 3 Chris Mayo 2021-10-24 16:47:51 UTC
Thanks for reporting and testing.

We do have a fixed version in the tree which I will request to be stabilized, waiting on one dependency: bug 819519.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-24 19:05:15 UTC
(In reply to Chris Mayo from comment #3)
> Thanks for reporting and testing.
> 
> We do have a fixed version in the tree which I will request to be
> stabilized, waiting on one dependency: bug 819519.

Kicked it off, thanks!

By the way, it’s ok to file stablereqs with deps in and just wait to cc arches.
Comment 5 korte 2021-11-10 08:23:32 UTC
media-gfx/gscan2pdf-2.12.3 works for me. I think this bug report can be closed.
Comment 6 Chris Mayo 2021-11-11 19:38:06 UTC
OK. Good to now 2.12.3 works.