[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Missing libsane package in Trixie



Hi alain,

alain williams <addw@phcomp.co.uk> writes:

> I have a Brother multi function printer & scanner (MFC-J6720DW). This worked
> well under Bookworm both as printer and scanner. I bought it in 2008, it does
> not get high usage.
>
> Scanning worked nicely with xsane.
>
> It needs some proprietary driver from Bother.
>
> Printing works under Trixie. I have a problem with scanning. When I run the
> Brother script it tries to install libsane. Libsane exists on Bookworm but not
> Trixie. Both Trixie and Bookworm have package libsane1
>
> https://packages.debian.org/search?keywords=libsane1
>
> Libsane is described as a "transitional package"
>
> https://packages.debian.org/bullseye/libsane
>

It is usually a standard practice to remove transitional package after
at least one stable release (in this case, Bookworm).

> • Could I just grab the source of libsane & compile it ?
>

It doesn't really help as it's basically the same as the next one.  See
below.

> • Could I grab the Bullseye libsane & just install on Trixie ?
>

No.  As newer version is already available, this will cause conflicts.

> • Why is it not available in Trixie ?
>
> Installation fails thus:
>
> Setting up brscan-skey (0.3.2-0) ...
> apt-get install libusb-0.1-4
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> You might want to run 'apt --fix-broken install' to correct these.
> The following packages have unmet dependencies:
>  brscan-skey : Depends: libsane (>= 1.0.11-3) but it is not installable

If you are familiar with Debian building process, one way to solve this
is to let libsane1 provide libsane, so that apt will consider libsane1
as an alternative to libsane so that the dependencies of brscan-skey is
satisfied.  This is also forward compatible without the dropped
transitional package.  More specifically, you want to revert this
patch[1], at least the lines about Breaks/Replaces/Provides (you can
leave the rest but resurrecting the whole patch doesn't hurt), build the
package locally and install.

I would suggest that you file a wishlist bug on sane-backends suggesting
the restoration on the "Provides" so that it'll work for 3rd party
packages for forky and newer versions.  If you are unfamiliar with the
process, I can help file the bug on your behalf.

(Alternatively you may request the 3rd party provider to update their
package for forky, though it depends on how responsive the 3rd party
provider is.)

[1] https://git.jff.email/cgit/sane-backends.git/commit/?id=7624a9935917d16d5ec1a2d7ec756b37cd123863

-- 
Xiyue Deng

Attachment: signature.asc
Description: PGP signature


Reply to: