Source: sane-backends
Version: 1.3.1-1
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: hurd
Hi,
first of all, thanks for accepting the fixes in #1081122, which
resolved all the issues when building sane-backends on Hurd.
Unfortunately other changes done in 1.3.1-1, i.e. the enablement of
the v4l support, make sane-backends unbuildable again on non-Linux
architectures.
Hence the additional patch needed:
- limit the v4l build dependency to Linux
- explicitly enable or disable the v4l feature respectively on Linux
and non-Linux architectures
Thanks,
--
Pino
--- a/debian/control
+++ b/debian/control
@@ -23,7 +23,7 @@ Build-Depends:
libsystemd-dev [linux-any],
libtiff-dev,
libusb-1.0-0-dev,
- libv4l-dev,
+ libv4l-dev [linux-any],
libxml2-dev,
pkgconf,
po-debconf,
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,11 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_
INSTALL_STRIP_FLAG = ""
STRIP = ""
endif
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ EXTRA_CONFIGURE_ARGS += --with-v4l
+else
+ EXTRA_CONFIGURE_ARGS += --without-v4l
+endif
%:
dh $@
@@ -48,7 +53,8 @@ endif
--with-avahi \
--enable-pnm-backend \
--with-usb \
- --disable-locking
+ --disable-locking \
+ $(EXTRA_CONFIGURE_ARGS)
override_dh_autoreconf:
dh_autoreconf -Xlibtool.m4