summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/01-zlib.patch25
-rw-r--r--debian/patches/02-file-filter-labels.patch28
-rw-r--r--debian/patches/series2
3 files changed, 55 insertions, 0 deletions
diff --git a/debian/patches/01-zlib.patch b/debian/patches/01-zlib.patch
new file mode 100644
index 0000000..6314ec4
--- /dev/null
+++ b/debian/patches/01-zlib.patch
@@ -0,0 +1,25 @@
+---
+ configure.ac | 1 +
+ src/Makefile.am | 1 +
+ 2 files changed, 2 insertions(+)
+
+--- simple-scan.orig/configure.ac
++++ simple-scan/configure.ac
+@@ -39,6 +39,7 @@ AM_CONDITIONAL(HAVE_COLORD, test $have_c
+
+ AC_CHECK_HEADERS([sane/sane.h],[],[AC_MSG_ERROR([SANE not found])])
+ AC_CHECK_HEADERS([sane/saneopts.h],[],[AC_MSG_ERROR([SANE not found])])
++AC_CHECK_HEADERS([zlib.h],[],[AC_MSG_ERROR([ZLib not found])])
+ AC_CHECK_HEADERS([jpeglib.h],[],[AC_MSG_ERROR([libjpeg not found])])
+
+ dnl ###########################################################################
+--- simple-scan.orig/src/Makefile.am
++++ simple-scan/src/Makefile.am
+@@ -40,6 +40,7 @@ simple_scan_LDADD = \
+ $(COLORD_LIBS) \
+ -lsane \
+ -ljpeg \
++ -lz \
+ -lm
+
+ CLEANFILES = \
diff --git a/debian/patches/02-file-filter-labels.patch b/debian/patches/02-file-filter-labels.patch
new file mode 100644
index 0000000..c195bfc
--- /dev/null
+++ b/debian/patches/02-file-filter-labels.patch
@@ -0,0 +1,28 @@
+Description: Fix file filter's name shown by the Save dialogs.
+From: https://launchpad.net/bugs/876135
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673593
+---
+ src/ui.vala | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- simple-scan.orig/src/ui.vala
++++ simple-scan/src/ui.vala
+@@ -351,14 +351,14 @@ public class SimpleScan
+
+ /* Filter to only show images by default */
+ var filter = new Gtk.FileFilter ();
+- filter.set_name (/* Save dialog: Filter name to show only image files */
+- _("Image Files"));
++ filter.set_filter_name (/* Save dialog: Filter name to show only image files */
++ _("Image Files"));
+ filter.add_pixbuf_formats ();
+ filter.add_mime_type ("application/pdf");
+ save_dialog.add_filter (filter);
+ filter = new Gtk.FileFilter ();
+- filter.set_name (/* Save dialog: Filter name to show all files */
+- _("All Files"));
++ filter.set_filter_name (/* Save dialog: Filter name to show all files */
++ _("All Files"));
+ filter.add_pattern ("*");
+ save_dialog.add_filter (filter);
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0aab875
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-zlib.patch
+02-file-filter-labels.patch