summaryrefslogtreecommitdiff
path: root/opt
diff options
context:
space:
mode:
Diffstat (limited to 'opt')
-rw-r--r--opt/sane/Pkgfile.patch18
-rw-r--r--opt/sane/streifen.patch.new19
2 files changed, 37 insertions, 0 deletions
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 =