e9a637ee5d5b32549a071bcfd92b61ef6ae77c67
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / sane-backends / 0003-remove-cups-and-systemd-support.patch
1 These tests use absolute directories and host leakage is granted
2 when cups and systemd are around. In fact there's no way these could work
3 in any predictable manner.
4
5 CUPS support was in fact disabled upstream since it's not required
6 in commit efb04936b8ad3bf313c289a522ae5832e22c1b7e
7
8 And for systemd we never handled it properly anyway.
9
10 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11
12 diff -Nura sane-backends-1.0.24.orig/configure sane-backends-1.0.24/configure
13 --- sane-backends-1.0.24.orig/configure 2015-05-01 09:51:19.479785064 -0300
14 +++ sane-backends-1.0.24/configure      2015-05-01 10:08:49.834447226 -0300
15 @@ -9649,33 +9649,6 @@
16  
17  fi
18  
19 -$as_echo "checking for cups"
20 -if test -e /usr/include/cups/cups.h ; then
21 -
22 -$as_echo "#define HAVE_CUPS 1" >>confdefs.h
23 -
24 -       with_cups="yes"
25 -       LIBS="-lcups  $LIBS"
26 -else
27 -       $as_echo "cups.h not found, you may want to install a cups development package"
28 -       $as_echo "in order to autodetect network scanners in kodakaio."
29 -       with_cups="no"
30 -fi
31 -
32 -$as_echo_n "Checking for systemd..."
33 -if test -e /usr/include/systemd/sd-daemon.h ; then
34 -
35 -$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
36 -
37 -    with_systemd="yes"
38 -    SYSTEMD_LIBS=" -lsystemd-daemon"
39 -
40 -    $as_echo "yes"
41 -else
42 -    with_systemd="no"
43 -    $as_echo "no"
44 -fi
45 -
46  
47  # Check whether --enable-libusb_1_0 was given.
48  if test "${enable_libusb_1_0+set}" = set; then :
49 @@ -21180,7 +21153,6 @@
50  echo "IPv6 support:  `eval eval echo ${ipv6}`"
51  echo "Avahi support: `eval eval echo ${enable_avahi}`"
52  echo "SNMP support:  `eval eval echo ${with_snmp}`"
53 -echo "CUPS support:  `eval eval echo ${with_cups}`"
54  echo "-> The following backends will be built:"
55  for backend in ${BACKENDS} ; do
56    echo $ECHO_N "${backend} "