Package: xsane
Version: 0.999-4
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Hello,

the removal of sane-config from sane-backends in version 1.0.25-3 broke
compilation of xsane:

checking for sane-config... no
checking for SANE - version >= 1.0.0... no
*** The sane-config script installed by SANE could not be found
*** If SANE was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SANE_CONFIG environment variable to the
*** full path to sane-config.

Find attached a minimal seems-to-work-for-me patch.

cu Andreas

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xsane depends on:
ii  libatk1.0-0          2.22.0-1
ii  libc6                2.24-8
ii  libcairo2            1.14.8-1
ii  libfontconfig1       2.11.0-6.7
ii  libfreetype6         2.6.3-3+b1
ii  libgdk-pixbuf2.0-0   2.36.3-1
ii  libgimp2.0           2.8.18-1
ii  libglib2.0-0         2.50.2-2
ii  libgtk2.0-0          2.24.31-1
ii  libjpeg62-turbo      1:1.5.1-2
ii  liblcms2-2           2.8-3
ii  libpango-1.0-0       1.40.3-3
ii  libpangocairo-1.0-0  1.40.3-3
ii  libpangoft2-1.0-0    1.40.3-3
ii  libpng16-16          1.6.28-1
ii  libsane              1.0.25-2+b1
ii  libtiff5             4.0.7-5
ii  xsane-common         0.999-4
ii  zlib1g               1:1.2.8.dfsg-4

Versions of packages xsane recommends:
ii  cups-client            2.2.1-4
ii  firefox [www-browser]  52.0~b1-1
ii  w3m [www-browser]      0.5.3-34

Versions of packages xsane suggests:
ii  gimp                                      2.8.18-1
pn  gocr | cuneiform | tesseract-ocr | ocrad  <none>
pn  gv                                        <none>
pn  hylafax-client | mgetty-fax               <none>

-- no debconf information
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- a/configure.in
+++ b/configure.in
@@ -165,8 +165,10 @@ fi
 
 AC_SUBST(INTLSUB)
 
-AM_PATH_SANE(1.0.0, HAVE_SANE=yes, )
-
+PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0])
+PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix])
+PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags],
+      [HAVE_SANE=yes])
 if test "${USE_GIMP}" = "yes"; then
   if test "${TRY_GIMP_2}" = "yes"; then
     AM_PATH_GIMP_2_0(1.3.23, HAVE_GIMP=yes, )

Reply via email to