summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-28 07:07:12 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-28 07:07:12 +0100
commite07d695609fdab3184e5999f31b8eee3192b0a59 (patch)
tree504200b0141c63513cd610927025563a0252ac56 /debian/patches
parent013b5c3d4b4e371a63d591392903656d626ab123 (diff)
new debian/patches/0010-fix_missing_sane-config.patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0010-fix_missing_sane-config.patch26
-rw-r--r--debian/patches/series1
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/0010-fix_missing_sane-config.patch b/debian/patches/0010-fix_missing_sane-config.patch
new file mode 100644
index 0000000..4a9c444
--- /dev/null
+++ b/debian/patches/0010-fix_missing_sane-config.patch
@@ -0,0 +1,26 @@
+Description: Fix FTBFS against libsane-dev >= 1.0.25-3
+ Fix missing sane-config
+Author: Andreas Metzler <ametzler@bebt.de>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852840
+Forwarded: https://github.com/nphilipp/xsane/issues/1
+Reviewed-by: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Last-Update: 2017-01-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/configure.in
+===================================================================
+--- trunk.orig/configure.in
++++ trunk/configure.in
+@@ -165,8 +165,10 @@ fi
+
+ AC_SUBST(INTLSUB)
+
+-AM_PATH_SANE(1.0.0, HAVE_SANE=yes, )
+-
++PKG_CHECK_MODULES([SANE], [sane-backends >= 1.0.0])
++PKG_CHECK_VAR([SANE_PREFIX], [sane-backends >= 1.0.0], [prefix])
++PKG_CHECK_VAR([SANE_LDFLAGS], [sane-backends >= 1.0.0], [ldflags],
++ [HAVE_SANE=yes])
+ if test "${USE_GIMP}" = "yes"; then
+ if test "${TRY_GIMP_2}" = "yes"; then
+ AM_PATH_GIMP_2_0(1.3.23, HAVE_GIMP=yes, )
diff --git a/debian/patches/series b/debian/patches/series
index a90b67e..cbf6b1c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -21,3 +21,4 @@
0165-xsane-0.999-lcms2.patch
0001-lcms2_configure.patch
0005-m4.patch
+0010-fix_missing_sane-config.patch