This bug is serious for me as I use my scanner everyday.
I am under Lubuntu 17.10.
For who like me cannot wait the official patch, can follow how I did solve:
1. get the source not from git but from the official package manager with command:
apt-get source libsane1
it did download and create the directory sane-backends-1.0.27/
2. modify the lines 2075-2077 of file sane-backends-1.0.27/backend/genesys.c into:
if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK && dev->model->cmd_set->slow_back_home)
{
status = dev->model->cmd_set->slow_back_home (dev, dev->model->flags );
3. build the dependencies with command:
sudo apt-get build-dep libsane1
4. I had to copy the file /usr/share/aclocal/libtool.m4 into sane-backends-1.0.27/m4 as the build process complained it was missing
5. then build the fixed package with command:
cd sane-backends-1.0.27
dpkg-buildpackage -rfakeroot -uc -b
6. then install the updated package with command:
cd ..
sudo dpkg -i libsane1_1.0.27-1~experimental2ubuntu2.1_amd64.deb
7. I did restart my PC (but I do not know if this is necessary)
8. My simple-scan gui program did output a clean scan!!
This bug is serious for me as I use my scanner everyday.
I am under Lubuntu 17.10.
For who like me cannot wait the official patch, can follow how I did solve:
1. get the source not from git but from the official package manager with command: 1.0.27/
apt-get source libsane1
it did download and create the directory sane-backends-
2. modify the lines 2075-2077 of file sane-backends- 1.0.27/ backend/ genesys. c into: FLAG_SHADING_ REPARK && dev->model- >cmd_set- >slow_back_ home) >cmd_set- >slow_back_ home (dev, dev->model->flags );
if (dev->model->flags & GENESYS_
{
status = dev->model-
3. build the dependencies with command:
sudo apt-get build-dep libsane1
4. I had to copy the file /usr/share/ aclocal/ libtool. m4 into sane-backends- 1.0.27/ m4 as the build process complained it was missing
5. then build the fixed package with command: 1.0.27
cd sane-backends-
dpkg-buildpackage -rfakeroot -uc -b
6. then install the updated package with command: 1.0.27- 1~experimental2 ubuntu2. 1_amd64. deb
cd ..
sudo dpkg -i libsane1_
7. I did restart my PC (but I do not know if this is necessary)
8. My simple-scan gui program did output a clean scan!!
reference here: https:/ /askubuntu. com/questions/ 28372/how- do-i-get- and-modify- the-source- code-of- packages- installed- through- apt-get/ 28373#28373