Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sane-airscan for openSUSE:Factory 
checked in at 2025-02-03 21:43:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sane-airscan (Old)
 and      /work/SRC/openSUSE:Factory/.sane-airscan.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sane-airscan"

Mon Feb  3 21:43:21 2025 rev:6 rq:1242009 version:0.99.32

Changes:
--------
--- /work/SRC/openSUSE:Factory/sane-airscan/sane-airscan.changes        
2025-01-01 23:07:38.851818666 +0100
+++ /work/SRC/openSUSE:Factory/.sane-airscan.new.2316/sane-airscan.changes      
2025-02-03 21:43:50.875310103 +0100
@@ -1,0 +2,9 @@
+Sat Feb 01 00:18:11 UTC 2025 - rra...@opensuse.org
+
+- Update to version 0.99.32:
+  * docs: Add Brother ADS-4300N
+  * Added the "pretend-local" configuration option to treat networked scanners
+    as if they were locally attached
+  * sane-airscan.5 is automatically generated from sane-aircan.5.md
+
+-------------------------------------------------------------------

Old:
----
  sane-airscan-0.99.31.tar.zst

New:
----
  _servicedata
  sane-airscan-0.99.32.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sane-airscan.spec ++++++
--- /var/tmp/diff_new_pack.8bbLLX/_old  2025-02-03 21:43:52.663383908 +0100
+++ /var/tmp/diff_new_pack.8bbLLX/_new  2025-02-03 21:43:52.675384403 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sane-airscan
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           sane-airscan
-Version:        0.99.31
+Version:        0.99.32
 Release:        0
 Summary:        Universal driver for Apple AirScan (eSCL) and WSD
 License:        SUSE-GPL-2.0+-with-sane-exception

++++++ _service ++++++
--- /var/tmp/diff_new_pack.8bbLLX/_old  2025-02-03 21:43:53.039399429 +0100
+++ /var/tmp/diff_new_pack.8bbLLX/_new  2025-02-03 21:43:53.079401080 +0100
@@ -2,7 +2,7 @@
   <service name="tar_scm" mode="manual">
     <param name="url">https://github.com/alexpevzner/sane-airscan.git</param>
     <param name="scm">git</param>
-    <param name="revision">0.99.31</param>
+    <param name="revision">0.99.32</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
   </service>

++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
                <param 
name="url">https://github.com/alexpevzner/sane-airscan.git</param>
              <param 
name="changesrevision">1ff182b4c980d1e76b27d5875006790cb59d73f3</param></service></servicedata>
(No newline at EOF)

++++++ sane-airscan-0.99.31.tar.zst -> sane-airscan-0.99.32.tar.zst ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/README.md 
new/sane-airscan-0.99.32/README.md
--- old/sane-airscan-0.99.31/README.md  2024-12-26 12:49:06.000000000 +0100
+++ new/sane-airscan-0.99.32/README.md  2025-01-29 14:22:54.000000000 +0100
@@ -56,6 +56,7 @@
 | Device                             | eSCL mode                 | WSD mode    
              |
 | ---------------------------------- | :-----------------------: | 
:-----------------------: |
 | Brother ADS-2700W                  | No                        | Yes         
              |
+| Brother ADS-4300N                  | Yes                       | Yes         
              |
 | Brother DCP-7055W                  | No                        | Yes         
              |
 | Brother DCP-7070DW                 | No                        | Yes         
              |
 | Brother DCP-9020CDW                | No                        | Yes         
              |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/airscan-conf.c 
new/sane-airscan-0.99.32/airscan-conf.c
--- old/sane-airscan-0.99.31/airscan-conf.c     2024-12-26 12:49:06.000000000 
+0100
+++ new/sane-airscan-0.99.32/airscan-conf.c     2025-01-29 14:22:54.000000000 
+0100
@@ -295,6 +295,8 @@
                     if (conf.socket_dir == NULL) {
                         conf_perror(rec, "failed to expand socket_dir path");
                     }
+                } else if (inifile_match_name(rec->variable, "pretend-local")) 
{
+                    conf_load_bool(rec, &conf.pretend_local, "true", "false");
                 }
             } else if (inifile_match_name(rec->section, "debug")) {
                 if (inifile_match_name(rec->variable, "trace")) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/airscan.c 
new/sane-airscan-0.99.32/airscan.c
--- old/sane-airscan-0.99.31/airscan.c  2024-12-26 12:49:06.000000000 +0100
+++ new/sane-airscan-0.99.32/airscan.c  2025-01-29 14:22:54.000000000 +0100
@@ -57,7 +57,7 @@
 {
     log_debug(NULL, "API: sane_get_devices(): called");
 
-    if (local_only) {
+    if (local_only && !conf.pretend_local) {
         /* Note, all our devices are non-local */
         static const SANE_Device *empty_devlist[1] = {0};
         *device_list = empty_devlist;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/airscan.conf 
new/sane-airscan-0.99.32/airscan.conf
--- old/sane-airscan-0.99.31/airscan.conf       2024-12-26 12:49:06.000000000 
+0100
+++ new/sane-airscan-0.99.32/airscan.conf       2025-01-29 14:22:54.000000000 
+0100
@@ -39,6 +39,19 @@
 # can be found.  If an eSCL device's URL is in the form unix://socket/eSCL/,
 # traffic will be sent through socket_dir/socket instead of TCP.  If not
 # specified, sockets will be searched for in /var/run.
+#
+# Proxy mode
+#   pretend-local = false ; Remote scanners are marked as such (DEFAULT)
+#   pretend-local = true  ; Remote scanners are treated as if they were local
+#
+# The SANE network protocol destinguishes between locally attached devices,
+# and devices that can only be accessed over the network. While this is
+# useful information to have, it isn't always used consistently. In particular,
+# the saned daemon refuses to make any scanners available that aren't local
+# to the machine. While well-intentioned, there are use-cases where this is
+# unexpected; for instance in proxies that translate from eSCL/WSD protocols
+# to the SANE protocol. Setting this configuration options instructs
+# sane-airscan to treat all eSCL/WSD devices as if they were attached locally.
 
 [options]
 #discovery = enable
@@ -46,6 +59,7 @@
 #protocol = auto
 #ws-discovery = fast
 #socket_dir = /var/run
+#pretend-local = false
 
 # Configuration of debug facilities
 #   trace = path         ; enables protocol trace and configures output
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/airscan.h 
new/sane-airscan-0.99.32/airscan.h
--- old/sane-airscan-0.99.31/airscan.h  2024-12-26 12:49:06.000000000 +0100
+++ new/sane-airscan-0.99.32/airscan.h  2025-01-29 14:22:54.000000000 +0100
@@ -1391,6 +1391,7 @@
     WSDD_MODE      wsdd_mode;        /* WS-Discovery mode */
     const char     *socket_dir;      /* Directory for AF_UNIX sockets */
     conf_blacklist *blacklist;       /* Devices blacklisted for discovery */
+    bool           pretend_local;    /* Pretend devices are local */
 } conf_data;
 
 #define CONF_INIT {                     \
@@ -1402,7 +1403,8 @@
         .model_is_netname = true,       \
         .proto_auto = true,             \
         .wsdd_mode = WSDD_FAST,         \
-        .socket_dir = NULL              \
+        .socket_dir = NULL,             \
+        .pretend_local = false          \
     }
 
 extern conf_data conf;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/sane-airscan.5 
new/sane-airscan-0.99.32/sane-airscan.5
--- old/sane-airscan-0.99.31/sane-airscan.5     2024-12-26 12:49:06.000000000 
+0100
+++ new/sane-airscan-0.99.32/sane-airscan.5     2025-01-29 14:22:54.000000000 
+0100
@@ -1,6 +1,6 @@
 .\" generated with Ronn-NG/v0.9.1
 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1
-.TH "SANE\-AIRSCAN" "5" "May 2022" "" "AirScan (eSCL) and WSD SANE backend"
+.TH "SANE\-AIRSCAN" "5" "January 2025" "" "AirScan (eSCL) and WSD SANE backend"
 .SH "NAME"
 \fBsane\-airscan\fR \- SANE backend for AirScan (eSCL) and WSD scanners and MFP
 .SH "DESCRIPTION"
@@ -63,6 +63,8 @@
 If running \fBairscan\-discover(1)\fR on the same LAN segment as a scanner is 
not possible, you will have to follow a hard way\. Your administrator must know 
device IP address, consult your device manual for the eSCL port, and the URL 
path component most likely is the "/eSCL", though on some devices it may 
differ\. Discovering WSD URLs doing this way is much harder, because it is very 
difficult to guess TCP port and URL path, that in a case of eSCL\.
 .P
 For eSCL devices, the URL can also use the unix:// scheme, such as 
unix://scanner\.sock/eSCL\. The "host" from the URL is a file name that will be 
searched for in the directory specified by socket_dir (see below)\. When 
connecting to the scanner, all traffic will be sent to the specified UNIX 
socket instead of a TCP connection\.
+.P
+By default, sane\-airscan treats all scanners as remote devices\. This can be 
undesirable, if configuring a proxy that translates from eSCL/WSD to the SANE 
protocol, as \fBsaned(8)\fR ignores any device that isn't attached locally\. By 
setting \fBpretend\-local = true\fR, sane\-airscan can make its devices 
accessible to the SANE network daemon\.
 .SH "CONFIGURATION OPTIONS"
 Miscellaneous options all goes to the \fB[options]\fR section\. Currently the 
following options are supported:
 .IP "" 4
@@ -94,6 +96,12 @@
 ; socket name (not a full path)\.  The name will be searched for in the
 ; directory specified here\. The default is /var/run\.
 socket_dir = /path/to/directory
+
+; Configure whether eSCL and WSD devices should be treated as if
+; they were attached locally\. The default behavior considers them as
+; remote devices that are accessed over the network\. This option has
+; to be changed when exporting a scanner through "saned"\.
+pretend\-local = false | true
 .fi
 .IP "" 0
 .SH "BLACKLISTING DEVICES"
@@ -108,9 +116,9 @@
 .fi
 .IP "" 0
 .P
-Network names come from DNS\-SD, WS\-Discovery doesn\'t provide this 
information\. For filtering by network name to work, Avahi must be enabled and 
device must be discoverable via DNS\-SD (not necessarily as a scanner, it\'s 
enough if WSD scanner is discoverable as a printer via DNS\-SD)\.
+Network names come from DNS\-SD, WS\-Discovery doesn't provide this 
information\. For filtering by network name to work, Avahi must be enabled and 
device must be discoverable via DNS\-SD (not necessarily as a scanner, it's 
enough if WSD scanner is discoverable as a printer via DNS\-SD)\.
 .P
-Blacklisting only affects automatic discovery, and doesn\'t affect manually 
configured devices\.
+Blacklisting only affects automatic discovery, and doesn't affect manually 
configured devices\.
 .SH "DEBUGGING"
 sane\-airscan provides very good instrumentation for troubleshooting without 
physical access to the problemmatic device\.
 .P
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sane-airscan-0.99.31/sane-airscan.5.md 
new/sane-airscan-0.99.32/sane-airscan.5.md
--- old/sane-airscan-0.99.31/sane-airscan.5.md  2024-12-26 12:49:06.000000000 
+0100
+++ new/sane-airscan-0.99.32/sane-airscan.5.md  2025-01-29 14:22:54.000000000 
+0100
@@ -80,6 +80,12 @@
 connecting to the scanner, all traffic will be sent to the specified UNIX 
socket
 instead of a TCP connection.
 
+By default, sane-airscan treats all scanners as remote devices. This can be
+undesirable, if configuring a proxy that translates from eSCL/WSD to the SANE
+protocol, as `saned(8)` ignores any device that isn't attached locally. By
+setting `pretend-local = true`, sane-airscan can make its devices accessible
+to the SANE network daemon.
+
 ## CONFIGURATION OPTIONS
 
 Miscellaneous options all goes to the ``[options]`` section. Currently
@@ -113,6 +119,12 @@
     ; directory specified here. The default is /var/run.
     socket_dir = /path/to/directory
 
+    ; Configure whether eSCL and WSD devices should be treated as if
+    ; they were attached locally. The default behavior considers them as
+    ; remote devices that are accessed over the network. This option has
+    ; to be changed when exporting a scanner through "saned".
+    pretend-local = false | true
+
 ## BLACKLISTING DEVICES
 
 This feature can be useful, if you are on a very big network and have

Reply via email to