--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: zbar-tools: zbarimg fails on svg barcodes with cryptic error message unless librsvg2-bin is installed.
- From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
- Date: Sun, 11 Dec 2016 17:36:59 +0100
- Message-id: <148147421971.27183.43574763098220428.reportbug@alice.fifthhorseman.net>
Package: zbar-tools
Version: 0.10+doc-10+b2
Severity: normal
i don't have librsvg2-bin installed:
0 dkg@alice:~$ qrencode -l H -t SVG -o foo.svg 'blah blah blah'
0 dkg@alice:~$ zbarimg foo.svg
ERROR: unable to open file `/tmp/magick-27173Tslqs3l2JcPp': No such file or directory @ error/constitute.c/ReadImage/544
1 dkg@alice:~$
But when i install librsvg2-bin, zbarimg works as expected.
So under the hood, i think zbarimg is invoking /usr/bin/rsvg-convert
to do the conversion -- i suspect this is part of imagemagick, since
zbarimg links to libraries shipped in libmagickwand-6.q16-2
but those libraries fail to process svg files unless librsvg2-bin is
installed.
I understand that this isn't a strict dependency -- the tools work
fine for everything but svg afaict. But the error message should at
least give the user a hint about what's wrong and how to fix it,
rather than a cryptic message about /tmp/magick-blahblahblah
thanks for maintaining zbar in debian!
--dkg
-- System Information:
Debian Release: stretch/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages zbar-tools depends on:
ii libc6 2.24-7
ii libgomp1 6.2.1-5
ii libjpeg62-turbo 1:1.5.1-2
ii libmagickcore-6.q16-2 8:6.9.6.6+dfsg-1
ii libmagickwand-6.q16-2 8:6.9.6.6+dfsg-1
ii libv4l-0 1.10.1-1
ii libzbar0 0.10+doc-10+b2
zbar-tools recommends no packages.
zbar-tools suggests no packages.
-- no debconf information
--- End Message ---