From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/, media-gfx/sane-backends/files/
Date: Mon, 2 Nov 2015 22:47:35 +0000 (UTC) [thread overview]
Message-ID: <1446504409.70f1e0c27a7971ae7520a4e137f642103f8a81f7.vapier@gentoo> (raw)
commit: 70f1e0c27a7971ae7520a4e137f642103f8a81f7
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 2 22:37:17 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Nov 2 22:46:49 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70f1e0c2
media-gfx/sane-backends: disable test that relies on USB support
.../files/sane-backends-1.0.25-disable-usb-tests.patch | 14 ++++++++++++++
.../sane-backends/sane-backends-1.0.25_pre20150628.ebuild | 3 ++-
media-gfx/sane-backends/sane-backends-9999.ebuild | 1 +
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch b/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch
new file mode 100644
index 0000000..217a440
--- /dev/null
+++ b/media-gfx/sane-backends/files/sane-backends-1.0.25-disable-usb-tests.patch
@@ -0,0 +1,14 @@
+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
diff --git a/media-gfx/sane-backends/sane-backends-1.0.25_pre20150628.ebuild b/media-gfx/sane-backends/sane-backends-1.0.25_pre20150628.ebuild
index d8cec10..61a6e8f 100644
--- a/media-gfx/sane-backends/sane-backends-1.0.25_pre20150628.ebuild
+++ b/media-gfx/sane-backends/sane-backends-1.0.25_pre20150628.ebuild
@@ -197,7 +197,8 @@ src_prepare() {
"${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
diff --git a/media-gfx/sane-backends/sane-backends-9999.ebuild b/media-gfx/sane-backends/sane-backends-9999.ebuild
index b636bf1..9743a91 100644
--- a/media-gfx/sane-backends/sane-backends-9999.ebuild
+++ b/media-gfx/sane-backends/sane-backends-9999.ebuild
@@ -190,6 +190,7 @@ src_prepare() {
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
next reply other threads:[~2015-11-02 22:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 22:47 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-27 10:56 [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/, media-gfx/sane-backends/files/ Pacho Ramos
2018-04-02 12:23 Pacho Ramos
2020-06-28 8:24 Jeroen Roovers
2020-09-17 23:20 Sam James
2022-01-29 8:42 Pacho Ramos
2022-11-04 4:19 Sam James
2024-05-31 7:17 Andreas Sturmlechner
2024-11-09 14:08 Michael Orlitzky
2024-11-10 13:24 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446504409.70f1e0c27a7971ae7520a4e137f642103f8a81f7.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox