<div dir="ltr">Thanks Olaf and Jorn for all the details.<div><br></div><div><br></div><div>Regards,</div><div>Aveek</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 12, 2018 at 1:43 PM, Olaf Meeuwissen <span dir="ltr"><<a href="mailto:paddy-hack@member.fsf.org" target="_blank">paddy-hack@member.fsf.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aveek,<br>
<br>
Aveek Basu writes:<br>
<br>
> *1. libusb version 0.1-4 is not installed:*<br>
><br>
> It has been observed in Ubuntu 17.10 (x86) / (x64) & Ubuntu 18.04 that libusb<br>
> version 0.1-4  is not installed properly. Lexmark Scanner drivers<br>
> require libusb<br>
> version 0.1-4 for the scanners to get detected.<br>
<br>
In which case the debian/control file for the Lexmark Scanner driver<br>
should say so.  APT can then pull it in, if needed, without any effort<br>
required from the user when they install your driver.<br>
<br>
> This seems to be a Ubuntu issue and nothing specific to any application.<br>
><br>
> *Bug logged:* <a href="https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770653" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>ubuntu/+source/xsane/+bug/<wbr>1770653</a>.<br>
<br>
This is not an Ubuntu (or any other Debian distro) bug.  This is a bug<br>
in the Lexmark Scanner driver .deb.<br>
<br>
Please read, understand and follow the Debian[1] and Ubuntu[2] packaging<br>
documentation[1].<br>
<br>
 [1]: <a href="https://www.debian.org/devel/#packaging" rel="noreferrer" target="_blank">https://www.debian.org/devel/#<wbr>packaging</a><br>
 [2]: <a href="http://packaging.ubuntu.com/" rel="noreferrer" target="_blank">http://packaging.ubuntu.com/</a><br>
<br>
And as Allan mentioned in another follow-up, distributions are free to<br>
stop providing old, deprecated libraries whenever they want to.  That<br>
said, libusb-0.1-4 is still available.<br>
<br>
> *2.* *XSANE looking for driver files in different paths:*<br>
><br>
> Usually XSANE used to look for the driver files in  /usr/lib/sane for 32<br>
> bit version of the Ubuntu OS and /usr/lib64/sane for the 64 bit version of<br>
> the Ubuntu OS. This was the case at-least till Ubuntu 14.10. After that<br>
> there seems to be discrepancies in the locations XSANE is trying to find<br>
> the driver files. Details mentioned below:<br>
><br>
> OS<br>
> OS locations searched by XSANE for the Driver Files<br>
> Ubuntu 14.10 Ubuntu 16.04 Ubuntu 16.10 Ubuntu 17.10/18.04<br>
> x86 /usr/lib/sane /usr/lib/sane /usr/lib/sane /usr/lib/i386-linux-gnu/sane<br>
> x64 /usr/lib64/sane /usr/lib/sane /usr/lib/sane<br>
> /usr/lib/x86_64-linux-gnu/sane<br>
<br>
So things changed over time.  It's called progress ;-)<br>
Like it or not, you will have to follow these changes.<br>
<br>
> So now the question is which should be the perfect path for XSANE to look<br>
> for the driver files. If "*/usr/lib/i386-linux-gnu/<wbr>sane*" and "<br>
> */usr/lib/x86_64-linux-gnu/<wbr>sane*" are the confirmed new locations then the<br>
> driver has to change. Need a confirmation on the same.<br>
><br>
> *Bug logged: *<a href="https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1770656" rel="noreferrer" target="_blank">https://bugs.launchpad.net/<wbr>ubuntu/+source/xsane/+bug/<wbr>1770656</a><br>
<br>
This is not a bug and the answer to your question is wherever they are<br>
supposed to be installed on each version of each distribution and each<br>
architecture that you target.<br>
<br>
And I fully second Allan's suggestion about open sourcing your driver.<br>
It will allow distribution's to do the packaging for you.  That is,<br>
after a bit of lead-time and hand-holding on your side, likely to lead<br>
to more up-to-date, better integrated packages for more versions of more<br>
distribution and more architectures than Lexmark could ever hope to<br>
support by itself.<br>
<br>
Hope this helps,<br>
--<br>
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27<br>
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9<br>
 Support Free Software                        <a href="https://my.fsf.org/donate" rel="noreferrer" target="_blank">https://my.fsf.org/donate</a><br>
 Join the Free Software Foundation              <a href="https://my.fsf.org/join" rel="noreferrer" target="_blank">https://my.fsf.org/join</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Aveek</div></div></div>
</div>