Control: retitle -1 sane-frontends: FTBFS: Couldn't find SANE libraries 
(sane-backends)

Hello,

This seems to be a regression caused by the newly uploaded sane-backends.
Maybe that should get an RC bug to prevent it from going into testing!
Would probably make sense to atleast add a
Breaks: sane-fronteds (<< fixed-version)
to the new version of sane-backends.

Anyway, more about sane-frontends FTBFS below.

On Fri, Feb 17, 2023 at 08:04:01AM +0100, Lucas Nussbaum wrote:
> Source: sane-frontends
> Version: 1.0.14-16
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20230216 ftbfs-bookworm
[...]
> > checking for sane-backends >= 1.0.0... yes
> > **********************************************************************
> > ERROR: Couldn't find SANE libraries (sane-backends). Possible reasons:
> >      - sane-backends isn't installed (install sane-backends before
> >        sane-frontends)
> >      - the SANE header files aren't installed (if you installed
> >        SANE as RPM make sure you also included the sane-devel RPM)
> >      - the SANE libraries can't be found because /usr/local/lib/ isn't
> >        searched by the dynamic linker (see INSTALL for details)
> > **********************************************************************

^^^^^^ this is the actual error.
Unfontunately when this occurs the configure script exits with code 0.
https://sources.debian.org/src/sane-frontends/1.0.14-16/configure.in/#L131

It would be much better if it exited with an error code (and printed the
error messages to stderr instead of stdout while at it).

Then we wouldn't have to proceed to end up with this:

> > 
> >    create-stamp debian/debhelper-build-stamp
> >    dh_prep
> >    dh_installdirs
> >    dh_auto_install --destdir=debian/sane/
> >    dh_install
> > dh_install: warning: Cannot find (any matches for) 
> > "debian/sane/usr/bin/xscanimage" (tried in ., debian/tmp)
[...]


The fix would probably be to replace ldflags with libs here (and bump
version of libsane-dev build-dep as this would not work with older
versions than the one currently in unstable):
https://sources.debian.org/src/sane-frontends/1.0.14-16/configure.in/#L117


The sane-backends.pc from unstable (1.2.1-1) has:

# grep -e ldflags= -e libs= 
/usr/lib/x86_64-linux-gnu/pkgconfig/sane-backends.pc 
libs= -ldl  -lm -ltiff -ljpeg  -lgphoto2 -lgphoto2_port -lm     -lavahi-common 
-lavahi-client  -lusb-1.0   



While the sane-backends.pc currently in testing (1.1.1-6) has:

# grep -e ldflags= -e libs= usr/lib/x86_64-linux-gnu/pkgconfig/sane-backends.pc
ldflags=-Wl,-z,relro -Wl,-z,now
libs=



Regards,
Andreas Henriksson

Reply via email to