From 574185d86f2a801d7e6d2de9358a5bb644e4ddfa Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Mar 2018 19:36:54 +0100 Subject: opt/sane: fix my scanner --- opt/sane/Pkgfile.patch | 18 ++++++++++++++++++ opt/sane/streifen.patch.new | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 opt/sane/Pkgfile.patch create mode 100644 opt/sane/streifen.patch.new (limited to 'opt') diff --git a/opt/sane/Pkgfile.patch b/opt/sane/Pkgfile.patch new file mode 100644 index 0000000..2c954e2 --- /dev/null +++ b/opt/sane/Pkgfile.patch @@ -0,0 +1,18 @@ +--- Pkgfile 2017-07-18 21:35:31.319090107 +0200 ++++ Pkgfile 2018-03-06 18:22:31.614780429 +0100 +@@ -6,11 +6,14 @@ + name=sane + version=1.0.27 + release=1 +-source=(https://alioth.debian.org/frs/download.php/file/4224/$name-backends-$version.tar.gz) ++source=(https://alioth.debian.org/frs/download.php/file/4224/$name-backends-$version.tar.gz ++streifen.patch) + + build () { + cd $name-backends-$version + ++ patch -p1 -i $SRC/streifen.patch ++ + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc \ diff --git a/opt/sane/streifen.patch.new b/opt/sane/streifen.patch.new new file mode 100644 index 0000000..7923e85 --- /dev/null +++ b/opt/sane/streifen.patch.new @@ -0,0 +1,19 @@ +diff --git a/backend/genesys.c b/backend/genesys.c +index e0ee9509..19b3a827 100644 +--- a/backend/genesys.c ++++ b/backend/genesys.c +@@ -2069,12 +2069,9 @@ genesys_white_shading_calibration (Genesys_Device * dev) + /* turn on motor and lamp power */ + dev->model->cmd_set->set_lamp_power (dev, dev->calib_reg, SANE_TRUE); + dev->model->cmd_set->set_motor_power (dev->calib_reg, motor); +- +- /* if needed, go back before doin next scan, by using rewind, registers and +- * slopes table are kept intact from previous scan */ +- if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK && dev->model->cmd_set->rewind) ++ if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK) + { +- status = dev->model->cmd_set->rewind (dev); ++ status = dev->model->cmd_set->slow_back_home (dev, SANE_TRUE); + } + + status = -- cgit v1.2.3-70-g09d2