Comment 13 for bug 1731459

Revision history for this message
fermulator (fermulator) wrote : Re: genesys_gl847 scanners produce a black band in scanned images on Ubuntu 17.10

@genti (pashol), are you sure it's fixed? I see no evidence of a fix according to history:
 * https://gitlab.com/sane-project/backends/commits/master/backend/genesys.c

Also, has anyone successfully worked around the problem?

In theory, if we rebuild from 1.0.25 git snapshot, it SHOULD resolve the problem;
https://help.ubuntu.com/community/CompileSaneFromSource

(gawd it's dumb why Ubuntu took into 1.0.27 experimental ...)

My steps were:
--

sudo apt-get install checkinstall libusb-dev build-essential libsane-dev libavahi-client-dev libavahi-glib-dev
cd ~/projects/_<somewhere you want a temp git clone to go...>
git clone git://anonscm.debian.org/collab-maint/sane-backends.git
cd sane-backends/
git checkout tags/upstream/1.0.25
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --sysconfdir=/etc --localstatedir=/var BACKENDS="genesys" --
make
sudo checkinstall .

#@ (i named my package sane-git-1.0.25 for easy future removal)

$ dpkg --list | grep sane-git
ii sane-git-1.0.25 1.0.25-1 amd64 sane-backends

--
now, I'm not sure why, but it doens't show it actually installing the genesys library back-end ... bah .. just a bunch of docs!
, (something about the configure/make/install didn't quite go right I su ppose ..)

--
OK fine then ...
 (find the backend library it built...)

~/projects/sane-backends$ find . | grep libsane-genesys
./backend/.libs/libsane-genesys.lai
./backend/.libs/libsane-genesys.la
./backend/.libs/libsane-genesys.so
./backend/.libs/libsane-genesys.so.1
./backend/.libs/libsane-genesys.so.1.0.25 <<---- THIS!! we need it
./backend/libsane-genesys.la

$ cd /usr/lib/x86_64-linux-gnu/sane
$ sudo rm libsane-genesys.so libsane-genesys.so.1
$ sudo ln -s /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25
$ sudo ln -s /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25 libsane-genesys.so
$ sudo ln -s /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25 libsane-genesys.so.1

/usr/lib/x86_64-linux-gnu/sane$ ll | grep genesys
-rw-r--r-- 1 root root 867724 Oct 24 21:43 libsane-genesys.a
lrwxrwxrwx 1 root root 79 Mar 11 21:22 libsane-genesys.so -> /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25*
lrwxrwxrwx 1 root root 79 Mar 11 21:22 libsane-genesys.so.1 -> /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25*
lrwxrwxrwx 1 root root 79 Mar 11 21:22 libsane-genesys.so.1.0.25 -> /home/fermulator/projects/sane-backends/backend/.libs/libsane-genesys.so.1.0.25*
-rw-r--r-- 1 root root 537056 Oct 24 21:43 libsane-genesys.so.1.0.27

--

then unplug + replug scanner - BOOM FIXED (WORKAROUND)

--

whenever it _does_ finally get fixed, hopefully the next package installation will wipe my lib symlinks automatically