--- /dev/null
+do not let the tests try reading/locking usb hardware. we also disable
+this because the test will abort() if no usb support is found at all.
+
+--- a/testsuite/sanei/sanei_usb_test.c
++++ b/testsuite/sanei/sanei_usb_test.c
+@@ -832,6 +832,8 @@ main (int argc, char **argv)
+ int detected, opened, i;
+ SANE_Int dn[MAX_DEVICES];
+
++ return 77;
++
+ #ifdef HAVE_LIBUSB
+ printf ("\n%s built with old libusb\n\n", argv[0]);
+ #endif
"${FILESDIR}"/${PN}-1.0.24-automagic_systemd.patch \
"${FILESDIR}"/${PN}-1.0.24-systemd_pkgconfig.patch \
"${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch \
- "${FILESDIR}"/${PN}-1.0.24-cross-compile.patch
+ "${FILESDIR}"/${PN}-1.0.24-cross-compile.patch \
+ "${FILESDIR}"/${PN}-1.0.25-disable-usb-tests.patch
# Fix for "make check".
sed -i -e 's/sane-backends 1.0.24/sane-backends 1.0.25git/' testsuite/tools/data/html*
mv configure.{in,ac} || die
epkowa
EOF
epatch "${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch
+ epatch "${FILESDIR}"/${PN}-1.0.25-disable-usb-tests.patch
mv configure.{in,ac} || die
AT_NOELIBTOOLIZE=yes eautoreconf