[Desktop-packages] [Bug 1731459] Re: genesys_gl847 scanners produce a black band in scanned images on Ubuntu 17.10+, 18.04 LTS and 18.10 Cosmic cuttlefish

2018-12-01 Thread Gabriel N.
Slightly updated patch instructions from above.

--- CUT HERE ---

sudo apt-get install dpkg-dev fakeroot

# in Synaptic, Ubuntu Settings >> Repositories, enable "Source code"
apt-get source libsane1

# eyeball first for any error messages
patch sane-backends-1.0.27/backend/genesys.c --dry-run < genesys.c.diff

# if the above was successful
patch sane-backends-1.0.27/backend/genesys.c < genesys.c.diff

sudo apt-get build-dep libsane1
cd sane-backends-1.0.27
./configure
dpkg-buildpackage -rfakeroot -uc -b
cd ..

sudo rm /usr/share/doc/libsane1/changelog.Debian.gz
sudo dpkg -i libsane1_1.0.27-1~experimental3ubuntu2_amd64.deb
# reboot

--- CUT HERE ---

Also:

- If any of the steps above fails, examine the entire output carefully
line by line for error information about any possible missing packages,
e.g. "Check if the 'dpkg-dev' package is installed". Simply use "sudo
apt-get install " to install anything that is missing.

- Unless you lock the libsane1 package in apt ("sudo apt-mark hold
") and in Synaptic (Synaptic >> Package >> Lock Version), your
next automated or manual Ubuntu update might re-install the original,
unpatched libsane1 package. Those two package maintenance systems use
independent locking mechanisms that are not synchronized.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1731459

Title:
  genesys_gl847 scanners produce a black band in scanned images on
  Ubuntu 17.10+,  18.04 LTS and 18.10 Cosmic cuttlefish

Status in sane-backends package in Ubuntu:
  Confirmed

Bug description:
  On Windows it works but on my Ubuntu 17.10, 18.04 and 18.10 I see a
  black band on scanned image. The scanner is Canon CanoScan LIDE100.
  Libsane version is 1.0.27-1~experimental2ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1731459/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1731459] Re: genesys_gl847 scanners produce a black band in scanned images on Ubuntu 17.10+ (and 18.04 LTS)

2018-10-05 Thread Gabriel N.
FYI, @ramas (slocascio), fermulator (fermulator) and Alec B (castegere)
instructions - slightly updated and automated for Ubuntu 18.04.1
(libsane1_1.0.27-1~experimental3).

Also, I expanded the patch to test for both "slow_back_home" and
"rewind", just in case it matters for some hardware.

--- cut here ---

# in Synaptic, Ubuntu Settings >> Repositories, enable "Source code"
apt-get source libsane1

# eyeball first
patch sane-backends-1.0.27/backend/genesys.c --dry-run < genesys.c.diff

# if the above was successful
patch sane-backends-1.0.27/backend/genesys.c < genesys.c.diff

sudo apt-get build-dep libsane1
cd sane-backends-1.0.27
./configure
sudo apt-get install fakeroot
dpkg-buildpackage -rfakeroot -uc -b
cd ..

sudo rm /usr/share/doc/libsane1/changelog.Debian.gz
sudo dpkg -i libsane1_1.0.27-1~experimental3ubuntu2_amd64.deb
# reboot

--- cut here ---


** Patch added: "genesys.c.diff"
   
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1731459/+attachment/5197760/+files/genesys.c.diff

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1731459

Title:
  genesys_gl847 scanners produce a black band in scanned images on
  Ubuntu 17.10+ (and 18.04 LTS)

Status in sane-backends package in Ubuntu:
  Confirmed

Bug description:
  On Windows it works but on my Ubuntu 17.10 I see a black band on
  scanned image. The scanner is Canon CanoScan LIDE100. Libsane version
  is 1.0.27-1~experimental2ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1731459/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp