package/sane-backends: bump version to 1.4.0

https://gitlab.com/sane-project/backends/-/releases/1.2.1
https://gitlab.com/sane-project/backends/-/releases/1.3.1
https://gitlab.com/sane-project/backends/-/releases/1.4.0

Removed patch which is included in this release.

Added sha256 tarball provided by upstream.

The build of the umax_pp backend fails for microblazeel/mipsel/powerpc
when used with uClibc (detected by the Gitlab pipelines):

umax_pp_low.c: In function ‘sanei_umax_pp_initPort’:
umax_pp_low.c:835:7: error: implicit declaration of function 'iopl'
 [-Wimplicit-function-declaration]
  835 |   if (iopl (3) != 0)

Fix this by disabling that backend under those conditions. The proper
way to do that would be to patch configure.ac to add an option to
exclude specific backends, and then give the corresponding CONF_OPT.
However, that's quite a complex patch for such a corner case, so instead
simply patch configure to remove the umax_pp backend from ALL_BACKENDS.
We only want to do this conditionally, so do it with sed in a post-patch
hook rather than with a patch.

Fixes:
https://autobuild.buildroot.net/results/364/364bfa29f9df16079dd10be628ddefcf80f581f9/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
[Arnout: do it in a post-patch instead of post-extract hook]
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Bernd Kuhls
2026-06-01 22:13:30 +02:00
committed by Arnout Vandecappelle
parent 9d85c36577
commit e2870919b2
3 changed files with 15 additions and 42 deletions

View File

@@ -1,38 +0,0 @@
From 90815a9f2576c2428287a500cab6caeddb80f9a8 Mon Sep 17 00:00:00 2001
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Wed, 5 Feb 2025 13:19:11 +0100
Subject: [PATCH] sm3600.h: Fix build with standard C23
bool, true and false are keywords in the standard C23 - the sm3600
backend defines them on its own, which is forbidden with the new
standard.
The patch adds ifdef guards for the affected typedef - the old code
will be used for older standards, C23 will define TBool as bool.
Upstream: https://gitlab.com/sane-project/backends/-/commit/90815a9f2576c2428287a500cab6caeddb80f9a8
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
backend/sm3600.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/backend/sm3600.h b/backend/sm3600.h
index 2ecbeb236..5d8a8d809 100644
--- a/backend/sm3600.h
+++ b/backend/sm3600.h
@@ -77,7 +77,11 @@ Start: 2.4.2001
/* ====================================================================== */
+#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L
typedef enum { false, true } TBool;
+#else
+typedef bool TBool;
+#endif /* GCC < 15 */
typedef SANE_Status TState;
--
GitLab

View File

@@ -1,5 +1,7 @@
# From https://gitlab.com/sane-project/backends/uploads/d7cf858db3e2abb8fad09cf6b944fc10/sane-backends-1.1.1.sha512.txt
sha512 25bd9f90d550cfe6a6d01c48e83716a53f4b0e3a294287e455ecb5e5b80c8fe1699f45c6c87f694475cceb85745c70597e18a7b1094669d5091c5fb183dfe94d sane-backends-1.1.1.tar.gz
# From https://gitlab.com/-/project/429008/uploads/34e1650a4242a94212983245f375cb8c/sane-backends-1.4.0.sha256.txt
sha256 f99205c903dfe2fb8990f0c531232c9a00ec9c2c66ac7cb0ce50b4af9f407a72 sane-backends-1.4.0.tar.gz
# From https://gitlab.com/-/project/429008/uploads/d83587250844bbcfb8678ddb40d643bc/sane-backends-1.4.0.sha512.txt
sha512 a5ec0cb9e12075be3c4d5eb445a290216c5699645bb6885845868a8323848cef3aafec30f0c380638195a0a8085a8cff4e190741e79ae8f2f70b4d71abeee572 sane-backends-1.4.0.tar.gz
# Hash for license file
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@@ -4,9 +4,9 @@
#
################################################################################
SANE_BACKENDS_VERSION = 1.1.1
SANE_BACKENDS_VERSION = 1.4.0
SANE_BACKENDS_SITE = \
https://gitlab.com/sane-project/backends/uploads/7d30fab4e115029d91027b6a58d64b43
https://gitlab.com/-/project/429008/uploads/843c156420e211859e974f78f64c3ea3
SANE_BACKENDS_CONFIG_SCRIPTS = sane-config
SANE_BACKENDS_LICENSE = GPL-2.0+
SANE_BACKENDS_LICENSE_FILES = COPYING
@@ -81,6 +81,15 @@ endef
SANE_BACKENDS_POST_CONFIGURE_HOOKS += SANE_BACKENDS_DISABLE_DOCS
# uClibc does not provide iopl() on these platforms:
# umax_pp_low.c:835:7: error: implicit declaration of function 'iopl'
ifeq ($(BR2_microblazeel)$(BR2_mipsel)$(BR2_powerpc)$(BR2_TOOLCHAIN_USES_UCLIBC),yy)
define SANE_BACKENDS_DISABLE_UMAX_PP
$(SED) 's/umax_pp //' $(@D)/configure
endef
SANE_BACKENDS_POST_PATCH_HOOKS += SANE_BACKENDS_DISABLE_UMAX_PP
endif
define SANE_BACKENDS_USERS
saned -1 saned -1 * /etc/sane.d - - Saned User
endef