FS#46580 - [xsane] 0.999-1 Unable to select scan area in preview window -- fix / patch included

Attached to Project: Arch Linux
Opened by Robert (emmi3) - Tuesday, 06 October 2015, 08:50 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 04 June 2020, 14:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

In the xsane preview window I can not select the scan area any more. When I click there is something selected, but I an not properly choose the area. I am pretty sure that it did work properly not so long ago. Sorry, cannot be more specific here since I haven't used xsane for a while.

A quick search turned up that this problem was already known and fixed 5 years ago in Ubuntu and Debian:
https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/370818
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311199
Fix here:
http://launchpadlibrarian.net/49011896/xsane_0.996-2ubuntu1.2.debdiff
From the Ubuntu bug report it seems that this problem has been reintroduced there as well. The Debian bug report includes a very good explaination of the patch.

A quick look at the sources shows that our sources are indeed missing the patch. I have removed the debian specific part from the above mentioned fix and built the package. Now it works as expected.

I'll attach it as xsane-0.996-preview.patch together with the modified PKGBUILD to include this patch.

Additional info:
* package version: xsane 0.999-1
* Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/370818
* Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311199
* Ubuntu fix: http://launchpadlibrarian.net/49011896/xsane_0.996-2ubuntu1.2.debdiff

Steps to reproduce:
* start xsane
* acquire a previev
* try to select scan area with the mouse (in my case X61s Thinkpad trackpoint)
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 04 June 2020, 14:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  xsane 0.999-5
Comment by Bill (QuimaxW) - Friday, 06 November 2015, 17:04 GMT
I also had the same issues with the selection in the preview windows.

Using the aforementioned PKGBUILD and patch, I was able to rebuild the package and everything is working again as it should.
Comment by mariakatosvich (mariakatosvich) - Tuesday, 14 June 2016, 09:09 GMT
I am pretty sure that it did work properly not so long ago. I haven't used the same for a while.
Thanks.
http://qwikfix.co.uk/equifax-contact-number/
Comment by dllud (dllud) - Saturday, 02 November 2019, 18:13 GMT
This issue still remains. I've applied the xsane-0.996-preview.patch on top of the latest PKGBUILD. The resulting PKGBUILD goes attached.
The patch still applies and makes xsane's scan area selection work as expected.
Shouldn't this be merged into the official package?
   PKGBUILD (3.2 KiB)
Comment by dllud (dllud) - Monday, 01 June 2020, 13:38 GMT
Hi again. I have to keep reapplying the patch and rebuilding the package with every new package release (now at 0.999-4). The patch still works as expected. Seems safe to add it into Arch. It has been applied on both Debian and Ubuntu for a long time now.

Loading...