[sane-devel] Using "scanimage" under Gentoo
Dr Rainer Woitok
rainer.woitok at gmail.com
Mon Dec 9 17:05:11 GMT 2019
Bruce,
On Thursday, 2019-12-05 06:38:52 +1000, you wrote:
> ...
> I have put together a gentoo overlay for sane-backends with version
> 1.0.28. Can you test this?
>
> https://github.com/brulzki/sane-overlay
I followed the installation instructions in your "README.md" file, first
created file "/etc/portage/repos.conf/sane-overlay.conf", and then ran
the command "emaint sync -r sane-overlay". However this command seemed
to run in an endless loop:
# emaint sync -r sane-overlay
>>> Syncing repository 'sane-overlay' into '/var/db/repos/sane-overlay'...
/usr/bin/git clone https://github.com/brulzki/sane-overlay.git .
Cloning into '.'...
remote: Enumerating objects: 42, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 42 (delta 7), reused 42 (delta 7), pack-reused 0
Unpacking objects: 100% (42/42), done.
=== Sync completed for sane-overlay
Reading Portage settings...
Building database (/var/cache/eix/portage.eix)...
[0] "gentoo" /var/db/repos/gentoo/ (cache: metadata-md5-or-flat)
Reading up to 168 categories of packages...Finished
[1] "sane-overlay" /var/db/repos/sane-overlay (cache: parse|ebuild*#metadata-md5#metadata-flat#assign)
Reading up to 168 categories of packages...Finished
Applying masks...
Calculating hash tables...
Writing database file /var/cache/eix/portage.eix...
Database contains 19386 packages in 168 categories
>>> Syncing repository 'sane-overlay' into '/var/db/repos/sane-overlay'...
/usr/bin/git fetch origin
Already up to date.
=== Sync completed for sane-overlay
Reading Portage settings...
Building database (/var/cache/eix/portage.eix)...
[0] "gentoo" /var/db/repos/gentoo/ (cache: metadata-md5-or-flat)
Reading up to 168 categories of packages...Finished
[1] "sane-overlay" /var/db/repos/sane-overlay (cache: parse|ebuild*#metadata-md5#metadata-flat#assign)
Reading up to 168 categories of packages...Finished
Applying masks...
Calculating hash tables...
Writing database file /var/cache/eix/portage.eix...
Database contains 19386 packages in 168 categories
>>> Syncing repository 'sane-overlay' into '/var/db/repos/sane-overlay'...
/usr/bin/git fetch origin
Already up to date.
=== Sync completed for sane-overlay
Reading Portage settings...
Building database (/var/cache/eix/portage.eix)...
.
.
.
I finally killed it with "Ctrl-C". I then added the line
>=media-gfx/sane-backends-1.0.28 ~amd64
to "/etc/portage/package.accept_keywords/local", so "emerge" would pick
the new version, and ran
$ sudo emerge --ask --deep --newuse --update @world
... plenty of error free output skipped ...
$ scanimage --version
scanimage (sane-backends) 1.0.28; backend version 1.0.28
$ scanimage '--batch=.%03d0.png' --batch-increment 1 --batch-print --batch-start 1 --device pixma:MX880_new-host --source 'Automatic Document Feeder' --format png --mode Color --resolution 300 -l 3 -t 0 -x 210 -y 297
Scanning infinity pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
scanimage: sane_read: Document feeder out of documents
Scanned page 2. (scanner status = 7)
Batch terminated, 2 pages scanned
$
But the document feeder wasn't out of documents, the scanner was busy,
and it's WiFi LED was blinking forever. I had to switch the scanner
off.
So I think I need some instructions for debugging "scanimage". Anybody?
Sincerely,
Rainer
More information about the sane-devel
mailing list