Source: sane-backends
Version: 1.3.0-1
Severity: important
Tags: patch ftbfs
User: [email protected]
Usertags: hurd
Hi,
currently sane-backends fails to build on hurd-i386 [1] and cannot be
built on hurd-amd64.
The problem on hurd-i386 really is a problem on any non-Linux
architecture: the udev rules, generated only on Linux architectures,
are unconditionally installed by libsane1.install.
The problem on hurd-amd64 is that libieee1284 is not supported on Hurd,
and the libieee1284-3-dev build dependency is currently excluded only
on hurd-i386.
The attached patch fixes both the issues:
- exclude the libieee1284-3-dev build dependency on any Hurd
architecture
- ensure that the /usr/lib/udev/rules.d/ directory is created, so it can
be unconditionally used in the dh_install phase in debian/rules
- install the udev rules in a Linux-only block of debian/rules, rather
than with libsane1.install
[1]
https://buildd.debian.org/status/fetch.php?pkg=sane-backends&arch=hurd-i386&ver=1.3.0-1&stamp=1715647157&raw=1
Thanks,
--
Pino
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Build-Depends:
libcups2-dev,
libcurl4-gnutls-dev,
libgphoto2-dev,
- libieee1284-3-dev [!hurd-i386],
+ libieee1284-3-dev [!hurd-any],
libjpeg-dev,
libltdl-dev,
libpng-dev,
--- a/debian/libsane1.dirs
+++ b/debian/libsane1.dirs
@@ -1 +1,2 @@
/usr/lib/udev/hwdb.d/
+/usr/lib/udev/rules.d/
--- a/debian/libsane1.install
+++ b/debian/libsane1.install
@@ -1,4 +1,2 @@
usr/lib/*/*.so.*
usr/lib/*/sane/*.so.*
-debian/60-libsane1.rules /usr/lib/udev/rules.d/
-debian/99-libsane1.rules /usr/lib/udev/rules.d/
--- a/debian/rules
+++ b/debian/rules
@@ -92,6 +92,8 @@ ifeq (linux,$(DEB_HOST_ARCH_OS))
$(SANE_DESC) -s $(CURDIR)/doc/descriptions -m hwdb >
$(CURDIR)/debian/20-sane.hwdb
cp $(CURDIR)/debian/20-sane.hwdb
$(CURDIR)/debian/libsane1/usr/lib/udev/hwdb.d/
+ cp $(CURDIR)/debian/60-libsane1.rules
$(CURDIR)/debian/libsane1/usr/lib/udev/rules.d/
+ cp $(CURDIR)/debian/99-libsane1.rules
$(CURDIR)/debian/libsane1/usr/lib/udev/rules.d/
endif
dh_install