Gentoo Archives: gentoo-commits

From: "Christopher Brannon (teiresias)" <teiresias@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/sane-backends/files: sane-backends-1.0.23-automagic-v4l.patch sane-backends-1.0.23-automagic-cups.patch
Date: Tue, 27 Aug 2013 12:03:28
Message-Id: 20130827120321.7A1ED20034@flycatcher.gentoo.org
1 teiresias 13/08/27 12:03:21
2
3 Added: sane-backends-1.0.23-automagic-v4l.patch
4 sane-backends-1.0.23-automagic-cups.patch
5 Log:
6 Switch to virtual/libusb:1. Also remove automagic dependencies.
7
8 The switch from virtual/libusb:0 to virtual/libusb:1 closes
9 bug #480184. SANE segfaults with my scanner when libusb 0.x is used,
10 but it is fine with libusb 1.x. Others noticed similar issues.
11
12 There was an automagic dependency on v4l. See bug #479772 for the details.
13 The patch is in upstream's bugtracker.
14 There was also an automagic dependency on CUPS.
15 However, several months after releasing 1.0.23, upstream changed their code
16 so that it no longer uses CUPS.
17 The patch for the CUPS automagic dependency should go away in 1.0.24.
18
19 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x6521e06d)
20
21 Revision Changes Path
22 1.1 media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-v4l.patch
23
24 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-v4l.patch?rev=1.1&view=markup
25 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-v4l.patch?rev=1.1&content-type=text/plain
26
27 Index: sane-backends-1.0.23-automagic-v4l.patch
28 ===================================================================
29 diff --git a/configure.in b/configure.in
30 index b62d4d3..76e37b2 100644
31 --- a/configure.in
32 +++ b/configure.in
33 @@ -129,7 +129,16 @@ SANE_CHECK_LOCKING
34 SANE_CHECK_GPHOTO2
35
36
37 -PKG_CHECK_MODULES(LIBV4L, libv4l1, have_libv4l1=yes, have_libv4l1=no)
38 +AC_ARG_WITH(v4l,
39 + AC_HELP_STRING([--with-v4l],
40 + [include the v4l backend @<:@default=yes@:>@]),
41 + [# If --with-v4l=no or --without-v4l, disable backend
42 + # as "$with_v4l" will be set to "no"])
43 +
44 +if test "$with_v4l" != "no" ; then
45 + PKG_CHECK_MODULES(LIBV4L, libv4l1, have_libv4l1=yes, have_libv4l1=no)
46 +fi
47 +
48 AC_SUBST(LIBV4L_LIBS)
49 AC_SUBST(LIBV4L_CFLAGS)
50
51
52
53
54 1.1 media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-cups.patch
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-cups.patch?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/sane-backends/files/sane-backends-1.0.23-automagic-cups.patch?rev=1.1&content-type=text/plain
58
59 Index: sane-backends-1.0.23-automagic-cups.patch
60 ===================================================================
61 diff -Naur sane-backends-1.0.23/configure.in sane-backends-1.0.23.new/configure.in
62 --- sane-backends-1.0.23/configure.in 2012-08-19 13:31:34.000000000 -0700
63 +++ sane-backends-1.0.23.new/configure.in 2013-08-26 14:41:22.613012270 -0700
64 @@ -326,16 +326,24 @@
65 AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?])
66 fi
67
68 -nl added by PN 3/2/12 to detect cups
69 -$as_echo "checking for cups"
70 -if test -e /usr/include/cups/cups.h ; then
71 - AC_DEFINE(HAVE_CUPS, 1, [Is /usr/include/cups/cups.h available?])
72 +AC_ARG_ENABLE(cups,
73 + AC_HELP_STRING([--enable-cups], [enable CUPS support]),
74 + [enable_cups=$enableval], [enable_cups=no])
75 +
76 +if test "$enable_cups" != no; then
77 + dnl added by PN 3/2/12 to detect cups
78 + $as_echo "checking for cups"
79 + if test -e /usr/include/cups/cups.h ; then
80 + AC_DEFINE(HAVE_CUPS, 1, [Is /usr/include/cups/cups.h available?])
81 with_cups="yes"
82 LIBS="-lcups $LIBS"
83 -else
84 + else
85 $as_echo "cups.h not found, you may want to install a cups development package"
86 $as_echo "in order to autodetect network scanners in kodakaio."
87 with_cups="no"
88 + fi
89 +else
90 + with_cups=no
91 fi
92
93 dnl ***********