summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--debian/changelog46
-rw-r--r--debian/control3
-rw-r--r--debian/copyright6
-rw-r--r--debian/libsane1.postinst19
-rw-r--r--debian/libsane1.preinst7
-rw-r--r--debian/libsane1.symbols2
-rw-r--r--debian/patches/0185-fix_memory.patch62
-rw-r--r--debian/patches/0190-Fix_scanimage_help.patch20
-rw-r--r--debian/patches/0205-ftbfs_with_GCC-15.patch22
-rw-r--r--debian/patches/series3
-rw-r--r--debian/po/tr.po115
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/sane-utils.links1
-rw-r--r--debian/sane-utils.postinst6
-rwxr-xr-xtools/create-release.sh4
16 files changed, 302 insertions, 25 deletions
diff --git a/NEWS b/NEWS
index 91070c0..0578bde 100644
--- a/NEWS
+++ b/NEWS
@@ -7,7 +7,7 @@
<!--(towncrier release notes start)-->
-## New with 1.3.0 (released 2024-02-12)
+## New with 1.3.1 (released 2024-05-22)
### Backends
diff --git a/debian/changelog b/debian/changelog
index 18224ab..e51c729 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,49 @@
+sane-backends (1.3.1-4) unstable; urgency=medium
+
+ * New debian/patches/0205-ftbfs_with_GCC-15.patch (Closes: #1097841).
+ - Fix ftbfs with GCC-15.
+ * New debian/po/tr.po (Closes: #1104475).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sat, 10 May 2025 08:40:04 +0200
+
+sane-backends (1.3.1-3) unstable; urgency=medium
+
+ * sane-utils.postinst:
+ - Add addgroup (Closes: #1100848, #1095956).
+ * debian/libsane1.preinst:
+ - Run addgroup every time.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Wed, 19 Mar 2025 19:23:37 +0100
+
+sane-backends (1.3.1-2) unstable; urgency=medium
+
+ * Fix FTBFS on non-Linux architectures (Closes: #1090801).
+ Thanks to Pino Toscano <pino@debian.org>.
+ * Move addgroup from debian/libsane1.postinst to debian/libsane1.preinst
+ (Closes: #1095956).
+ * New debian/patches/0190-Fix_scanimage_help.patch to Fix_output of
+ scanimage --help (Closes: #1094671).
+ * debian/sane-utils.links: Add link from sane-umax_pp.5.gz to umax_pp.5.gz
+ to make lintian happy.
+ * Declare compliance with Debian Policy 4.7.2 (No changes needed).
+ * debian/copyright:
+ - Add 2025 to myself.
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 16 Mar 2025 11:45:27 +0100
+
+sane-backends (1.3.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ * Reenable v4l.
+ * debian/libsane1.symbols:
+ - Replace hurd-i386 with hurd-any to fix FTBFS (Closes: #1081122).
+ - Remove kfreebsd.
+ * New debian/patches/0185-fix_memory.patch:
+ - Fix memory handling at backends/hp5590_low.c
+ (Closes: #1071658, #1071660).
+
+ -- Jörg Frings-Fürst <debian@jff.email> Sun, 08 Dec 2024 19:33:14 +0100
+
sane-backends (1.3.0-2) unstable; urgency=medium
* Fix FTBFS on hurd-i386 & hurd-amd64 (Closes: #1081122).
diff --git a/debian/control b/debian/control
index a77f110..77fc0ce 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: sane-backends
Section: graphics
Priority: optional
Maintainer: Jörg Frings-Fürst <debian@jff.email>
-Standards-Version: 4.7.0.1
+Standards-Version: 4.7.2
Build-Depends:
autoconf,
autoconf-archive,
@@ -23,6 +23,7 @@ Build-Depends:
libsystemd-dev [linux-any],
libtiff-dev,
libusb-1.0-0-dev,
+ libv4l-dev [linux-any],
libxml2-dev,
pkgconf,
po-debconf,
diff --git a/debian/copyright b/debian/copyright
index 1b084ce..da8004e 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -15,7 +15,11 @@ Copyright: 1997-2002 Kevin Dalley <kevind@rahul.net>
2013 Mark Buda <hermit@acm.org>
2018 Laurent Bigonville <bigon@debian.org>
2019 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
- 2014-2024 Jörg Frings-Fürst <debian@jff.email>
+ 2014-2025 Jörg Frings-Fürst <debian@jff.email>
+License: GPL-2+ with sane exception
+
+Files: debian/po/tr.po
+Copyright: 2025 Nuri KÜÇÜKLER <nurikucukler@yahoo.com>
License: GPL-2+ with sane exception
Files: .editorconfig
diff --git a/debian/libsane1.postinst b/debian/libsane1.postinst
index 7c747f6..b5da9aa 100644
--- a/debian/libsane1.postinst
+++ b/debian/libsane1.postinst
@@ -18,24 +18,5 @@ if [ "$1" = "configure" ]; then
fi
# end-remove-after
-case "$1" in
- configure)
- # Add the scanner system group if it doesn't exist
- if ! getent group | grep -q "^scanner:"; then
- echo "Adding scanner group..."
- addgroup --quiet --system scanner || true
- fi
-
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "$0 called with unknown argument '$1'" >&2
- exit 1
- ;;
-esac
-
#DEBHELPER#
diff --git a/debian/libsane1.preinst b/debian/libsane1.preinst
index 4ceccd3..1f02da9 100644
--- a/debian/libsane1.preinst
+++ b/debian/libsane1.preinst
@@ -18,5 +18,12 @@ if [ "$1" = "upgrade" ]; then
fi
# end-remove-after
+#if [ "$1" = "upgrade" ]; then
+ # Add the scanner system group if it doesn't exist
+ if ! getent group | grep -q "^scanner:"; then
+ echo "Adding scanner group..."
+ addgroup --quiet --system scanner || true
+ fi
+#fi
#DEBHELPER#
diff --git a/debian/libsane1.symbols b/debian/libsane1.symbols
index b32e02e..4a63c19 100644
--- a/debian/libsane1.symbols
+++ b/debian/libsane1.symbols
@@ -1,6 +1,6 @@
libsane.so.1 libsane1 #MINVER#
* Build-Depends-Package: libsane-dev
- (arch=!hurd-i386 !kfreebsd-any)cmsg@Base 1.0.29
+ (arch=!hurd-any)cmsg@Base 1.0.29
fail_test@Base 1.0.29
md5_buffer@Base 1.0.27
md5_finish_ctx@Base 1.0.27
diff --git a/debian/patches/0185-fix_memory.patch b/debian/patches/0185-fix_memory.patch
new file mode 100644
index 0000000..137ae31
--- /dev/null
+++ b/debian/patches/0185-fix_memory.patch
@@ -0,0 +1,62 @@
+Description: Fix memory handling at backend/hp5590_low.c
+Author:
+Origin: upstream, https://gitlab.com/sane-project/backends/-/merge_requests/857
+Bug: https://gitlab.com/sane-project/backends/-/issues/782
+ https://gitlab.com/sane-project/backends/-/issues/781
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071658
+ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071660
+Forwarded: not-needed
+Applied-Upstream: https://gitlab.com/sane-project/backends/-/merge_requests/857
+Last-Update: 2024-12-08
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/backend/hp5590.c b/backend/hp5590.c
+index 78c93132558365c8005c45fb756da57d1dfe9005..56acfb13c308f889daba472e05f1a03bb5967d18 100644
+--- a/backend/hp5590.c
++++ b/backend/hp5590.c
+@@ -2154,6 +2154,24 @@ sane_read_internal (struct hp5590_scanner * scanner, SANE_Byte * data,
+ max_length,
+ scanner->transferred_image_size);
+
++ /*
++ * We will truncate down the buffer size to *under* what the
++ * internal USB reading buffer can supply. This will avoid page read issues
++ * at the end of the buffer.
++ *
++ * See: https://gitlab.com/sane-project/backends/-/issues/781
++ *
++ */
++ if (max_length > BULK_READ_PAGE_SIZE * MAX_READ_PAGES)
++ {
++ DBG (DBG_proc, "%s, truncating sane_read buffer from %u to %u\n",
++ __func__,
++ max_length,
++ BULK_READ_PAGE_SIZE * MAX_READ_PAGES);
++
++ max_length = BULK_READ_PAGE_SIZE * MAX_READ_PAGES;
++ }
++
+ SANE_Int length_limited = 0;
+ *length = max_length;
+ if ((unsigned long long) *length > scanner->transferred_image_size)
+diff --git a/backend/hp5590_low.c b/backend/hp5590_low.c
+index 2d19dcf951717919099995a402002e1d18822849..7038f438640c72ede3b9d01d09d14b750f2c0041 100644
+--- a/backend/hp5590_low.c
++++ b/backend/hp5590_low.c
+@@ -99,9 +99,15 @@ struct usb_in_usb_ctrl_setup {
+ #define CORE_FLAG_NOT_READY 1 << 1
+
+ /* Bulk transfers are done in pages, below their respective sizes */
++/*
++ * Note that we limit the amount we can supply to sane_read() to avoid
++ * clashes with the size of the internal read buffer.
++ *
++ */
+ #define BULK_WRITE_PAGE_SIZE 0x0f000
+ #define BULK_READ_PAGE_SIZE 0x10000
+-#define ALLOCATE_BULK_READ_PAGES 16 /* 16 * 65536 = 1Mb */
++#define ALLOCATE_BULK_READ_PAGES 17 /* 16 * 65536 = 1Mb */
++#define MAX_READ_PAGES 16 /* maximum that we will return to sane_read() */
+
+ /* Structure describing bulk read state, because bulk reads will be done in
+ * pages, but function caller uses its own buffer, whose size is certainly
diff --git a/debian/patches/0190-Fix_scanimage_help.patch b/debian/patches/0190-Fix_scanimage_help.patch
new file mode 100644
index 0000000..9d0901f
--- /dev/null
+++ b/debian/patches/0190-Fix_scanimage_help.patch
@@ -0,0 +1,20 @@
+Description: Fix scanimage --help output
+Author: Jörg Frings-Fürst <debian@jff.email>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1094671
+Forwarded: https://gitlab.com/sane-project/backends/-/issues/795
+Last-Update: 2025-03-16
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/frontend/scanimage.c
+===================================================================
+--- trunk.orig/frontend/scanimage.c
++++ trunk/frontend/scanimage.c
+@@ -2372,7 +2372,7 @@ Parameters are separated by a blank from
+ %%n (newline)\n\
+ -b, --batch[=FORMAT] working in batch mode, FORMAT is `out%%d.pnm' `out%%d.tif'\n\
+ `out%%d.png' or `out%%d.jpg' by default depending on --format\n\
+- This option is incompatible with --output-file.");
++ This option is incompatible with --output-file.\n");
+ printf ("\
+ --batch-start=# page number to start naming files with\n\
+ --batch-count=# how many pages to scan in batch mode\n\
diff --git a/debian/patches/0205-ftbfs_with_GCC-15.patch b/debian/patches/0205-ftbfs_with_GCC-15.patch
new file mode 100644
index 0000000..54a7421
--- /dev/null
+++ b/debian/patches/0205-ftbfs_with_GCC-15.patch
@@ -0,0 +1,22 @@
+Description: Fix ftbfs with GCC-15
+Author: <name and email of author, optional>
+Origin: https://gitlab.com/sane-project/backends/-/commit/f5736eb50c3be88428f7d629b20c5c514df85b82
+Bug: https://gitlab.com/sane-project/backends/-/issues/796
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097841
+Last-Update: 2025-03-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/backend/sm3600.h
+===================================================================
+--- trunk.orig/backend/sm3600.h
++++ trunk/backend/sm3600.h
+@@ -77,7 +77,8 @@ Start: 2.4.2001
+
+ /* ====================================================================== */
+
+-typedef enum { false, true } TBool;
++#include <stdbool.h>
++typedef bool TBool;
+
+ typedef SANE_Status TState;
+
diff --git a/debian/patches/series b/debian/patches/series
index 93fa125..6e62f3f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,6 @@
0200-disable-check-equal-stderr.patch
0610-fix_groff_font_warnings.patch
0180-Escl_force_idle_status.patch
+0185-fix_memory.patch
+0190-Fix_scanimage_help.patch
+0205-ftbfs_with_GCC-15.patch
diff --git a/debian/po/tr.po b/debian/po/tr.po
new file mode 100644
index 0000000..022dab9
--- /dev/null
+++ b/debian/po/tr.po
@@ -0,0 +1,115 @@
+# Turkish debconf translation of sane-backends package
+# This file is distributed under the same license as the sane-backends package.
+# Nuri KÜÇÜKLER <nurikucukler@yahoo.com>, 2025.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sane-backends\n"
+"Report-Msgid-Bugs-To: sane-backends@packages.debian.org\n"
+"POT-Creation-Date: 2009-12-12 13:14+0100\n"
+"PO-Revision-Date: 2025-04-25 15:12+0300\n"
+"Last-Translator: Nuri KÜÇÜKLER <nurikucukler@yahoo.com>\n"
+"Language-Team: Debian L10n Turkish <debian-l10n-turkish@lists.debian.org>\n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Enable saned as a standalone server?"
+msgstr "saned tek başına sunucu olarak etkinleştirilsin mi?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network."
+msgstr ""
+"saned sunucusu, etkinleştirildiğinde tarayıcıları ağ üzerinde kullanılabilir "
+"kılar."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"There are two ways of running saned:\n"
+" - as an inetd service, started by the inetd superserver. In this mode,\n"
+"saned is started on demand when a client connects to the server;\n"
+" - as a standalone daemon, started at system boot. In this mode, saned\n"
+"runs in the background all by itself and listens for client connections."
+msgstr ""
+"saned çalıştırmanın iki yolu vardır:\n"
+" - inetd süpersunucusu ile başlatılan, inetd hizmeti olarak. Bu kipte,\n"
+"saned istemci sunucuya bağlandığında talep üzerine başlatılır.\n"
+" - sistem önyüklemesi sırasında başlatılan, tek başına artalan hizmeti "
+"olarak.\n"
+"Bu kipte, saned tamamen kendi başına arkaplanda çalışır ve istemci "
+"bağlantılarını dinler."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid ""
+"When run in standalone mode, saned advertises itself on the network and can "
+"be detected automatically by the SANE clients with no configuration on the "
+"client side. You still need to configure the server to accept connections "
+"from your clients. This feature is experimental and requires a running Avahi "
+"daemon."
+msgstr ""
+"saned tek başına kipinde çalıştığında, ağ üzerinde kendini tanıtır ve SANE "
+"istemcileri tarafından istemci tarafında bir yapılandırma olmadan otomatik "
+"olarak algılanır. Yine de, sunucuyu istemcilerden gelecek bağlantıları kabul "
+"etmesi için yapılandırmanız gerekir. Bu özellik deneysel durumdadır ve "
+"çalışan bir Avahi artalan hizmeti gerektirir."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:1001
+msgid "Accept this option if you want to make use of this feature."
+msgstr "Bu özelliğin kullanılması için bu seçeneği kabul edin."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid "Add saned user to the scanner group?"
+msgstr "saned kullanıcısı scanner grubuna eklensin mi?"
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"The saned server, when enabled, makes scanners available over the network. "
+"By applying different permissions to the different scanners connected to "
+"your machine, you can control which ones will be made available over the "
+"network."
+msgstr ""
+"saned sunucusu etkinleştirildiğinde, tarayıcıları ağ üzerinde kullanılabilir "
+"kılar. Makinenize bağlanan farklı tarayıcılara farklı yetkiler vererek, "
+"hangilerinin ağ üzerinde kullanılabilir hale getirileceğini "
+"denetleyebilirsiniz."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Read /usr/share/doc/sane-utils/README.Debian for details on how to manage "
+"permissions for saned. By default, saned is run under the saned user and "
+"group."
+msgstr ""
+"saned yetkilerinin yönetilmesinin detayları için okuyun: /usr/share/doc/sane-"
+"utils/README.Debian. Öntanımlı olarak saned, saned kullanıcısı ve grubuna "
+"ait olarak çalışır."
+
+#. Type: boolean
+#. Description
+#: ../sane-utils.templates:2001
+msgid ""
+"Accept this option if you want to make all your scanners available over the "
+"network without restriction."
+msgstr ""
+"Tüm tarayıcılarınızı ağ üzerinde herhangi bir kısıtlama olmadan "
+"kullanılabilir duruma getirmek için bu seçeneği kabul edin."
diff --git a/debian/rules b/debian/rules
index d44c8ce..1b0243f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,11 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_STRIP_FLAG = ""
STRIP = ""
endif
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+ EXTRA_CONFIGURE_ARGS += --with-v4l
+else
+ EXTRA_CONFIGURE_ARGS += --without-v4l
+endif
%:
dh $@
@@ -48,8 +53,8 @@ endif
--with-avahi \
--enable-pnm-backend \
--with-usb \
- --without-v4l \
- --disable-locking
+ --disable-locking \
+ $(EXTRA_CONFIGURE_ARGS)
override_dh_autoreconf:
dh_autoreconf -Xlibtool.m4
diff --git a/debian/sane-utils.links b/debian/sane-utils.links
index 8f6000d..93fb67d 100644
--- a/debian/sane-utils.links
+++ b/debian/sane-utils.links
@@ -1 +1,2 @@
/dev/null /usr/lib/systemd/system/saned.service
+/usr/share/man/man5/sane-umax_pp.5.gz /usr/share/man/man5/umax_pp.5.gz
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index b334d59..553cfce 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -41,6 +41,12 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
# Stop debconf; output to stdout after this point. update-inetd needs debconf.
db_stop
+ # Add the scanner system group if it doesn't exist
+ if ! getent group | grep -q "^scanner:"; then
+ echo "Adding scanner group..."
+ addgroup --quiet --system scanner || true
+ fi
+
# Create saned user/group if they do not exist
if ! getent passwd | grep -q "^saned:"; then
echo "Adding saned group and user..."
diff --git a/tools/create-release.sh b/tools/create-release.sh
index 40904d7..7b0ed2d 100755
--- a/tools/create-release.sh
+++ b/tools/create-release.sh
@@ -54,6 +54,10 @@ cat << EOF >> release.json
}
EOF
+echo '=================================================='
+cat release.json
+echo '=================================================='
+
curl --silent --fail --write-out "%{http_code}\n"\
--header "PRIVATE-TOKEN: $PRIVATE_TOKEN" \
--header "Content-Type: application/json" \