Skip to content

Commit

Permalink
sane-backends: Update to 1.0.30
Browse files Browse the repository at this point in the history
pkgsrc changes:
 - sane-backends seems now make jobs safe
 - Add dependency to c++11 for genesys backend
 - Remove no longer needed patch-backend_epsonds.c: now sys/time.h is included
 - Use BJNP_HOST_MAX instead of non-portable/POSIX HOST_NAME_MAX via
   patch-backend_pixma_pixma__bjnp.c
 - Update MASTER_SITES and remove it from Makefile.common: the current one is
   specific to sane-backends

Changes:
1.0.30
------
This release fixes several security related issues and a build issue.

### Backends
- `epson2`: fixes CVE-2020-12867 (GHSL-2020-075) and several memory
  management issues found while addressing that CVE
- `epsonds`: addresses out-of-bound memory access issues to fix
  CVE-2020-12862 (GHSL-2020-082) and CVE-2020-12863 (GHSL-2020-083),
  addresses a buffer overflow fixing CVE-2020-12865 (GHSL-2020-084)
  and disables network autodiscovery to mitigate CVE-2020-12866
  (GHSL-2020-079), CVE-2020-12861 (GHSL-2020-080) and CVE-2020-12864
  (GHSL-2020-081).  Note that this backend does not support network
  scanners to begin with.
- `magicolor`: fixes a floating point exception and uninitialized data
  read
- fixes an overflow in `sanei_tcp_read()`

### Build
- fixes a build issue where linker flags would become link time
  dependencies (#239)


1.0.29
------
### Backends
- adds an `escl` backend (theoretically supporting *all* AirPrint
  devices with a scan unit)
- adds support for 23 new scanner models via existing backends
- significantly changes `genesys` and `pixma` backends
- fixes bugs in `canon_dr`, `fujitsu`, `hp3900`, `mustek_usb2`,
  `plustek` and `xerox_mfp` backends
- fixes *all* compiler warnings on Debian 10 (#120)
- fixes portability issues for uClibc-ng and MacOS builds
- adds support to record and replay USB I/O traffic
- adds timestamps to debug logs

### Frontends
- fixes a 32-bit arithmetic overflow issue in `scanimage`

### Documentation
- updates translations for British English, Catalan, German,
  Ukrainian, Valencian
- adds `scangearmp2` external backend descriptions
- updates `hpaio` and `utsushi` external backend descriptions
- adds the `ChangeLogs/` directory to the source tarball (#103)

### Build
- additionally requires `libcurl` and `libxml2` to build the `escl`
  backend
- requires `libxml2` for USB I/O recording and replay functionality
- re-enables pthread support for backends that use its API directly,
  irrespective of the `pthread_t` type (#153)
- moves the `genesys` and `pixma` backends to a directory of their own


1.0.28
------
### Backends
- adds a `ricoh2` backend
- adds support for 40+ new scanner models
- significantly changes `canon_dr`, `fujitsu`, `genesys`, `gt68xx`,
  `hp5590` and, `pixma` backends
- fixes bugs in `as6e`, `avision`, `mustek` and `plustek` backends
- fixes scores of compiler warnings

### Frontends
- adds, changes and removes options for `saned` (see `man 8 saned` for
  details)
  - adds: `-l` (listen), `-D` (daemonize), `-o` (once), `-e` (stderr),
    `-u` (user)
  - removes: `-s` (syslog).
    Use `-a -d level -o -f` for the old behavior
  - changes: `-d` (debug).
    Use `-a -d level -o -f -e` for the old behavior
- `saned` now cancels scans if the data connections appears to have
  gone away (after 4 seconds by default, configurable in `saned.conf`)
- adds `--output-file` option to `scanimage`
- adds `--help` option to `scan-find-scanner`
- changes `sane-desc` to create relative hyperlinks

### Documentation
- adds translations for Catalan, Hebrew and Valencian
- updates translations for British English, Dutch, German and
  Ukrainian
- marks unmaintained backends as such
- documents USB workaround in `sane-usb` manual page

### Build
- requires a C++11 compatible compiler for the `genesys` backend
- requires a JPEG library when building the `pixma` backend
- fixes unneeded linking when not using preloadable backend support
- disables pthread support for systems with non-integral `pthread_t`
  type
- fixes USB support detection on BeOS and OS/2 at `./configure` time
- normalizes trailing whitespace in source code files.  If you have
  local patches that no longer apply, have a look at the whitespace
  ignoring options of `patch` and `git apply`.
  • Loading branch information
iamleot committed Jun 13, 2020
1 parent 6bab05c commit c2e5f6d
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 55 deletions.
16 changes: 8 additions & 8 deletions graphics/sane-backends/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# $NetBSD: Makefile,v 1.72 2020/05/31 17:19:49 rillig Exp $
# $NetBSD: Makefile,v 1.73 2020/06/13 20:54:32 leot Exp $

PKGREVISION= 1
.include "Makefile.common"
MASTER_SITES= https://gitlab.com/sane-project/backends/uploads/c3dd60c9e054b5dee1e7b01a7edc98b0/
COMMENT= API for access to scanners, digital cameras, frame grabbers, etc

DISTNAME= sane-backends-${SANE_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}

# lib/Makefile.in builds .o files and then .a, but rules for shlibs,
# while apparently independent, cause libtool to create .o again,
# making it possible for the ar step of the .a build to fail to find
# the .o
MAKE_JOBS_SAFE= NO

USE_TOOLS+= msgfmt msgmerge pkg-config
USE_PKGLOCALEDIR= YES

# c++11 is needed for genesys backend
USE_LANGUAGES= c c++11

# C++11
GCC_REQD+= 4.8

CONFIGURE_ARGS+= --with-gphoto2=no
CONFIGURE_ARGS+= --without-snmp
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
Expand Down
6 changes: 2 additions & 4 deletions graphics/sane-backends/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# $NetBSD: Makefile.common,v 1.34 2018/03/31 22:39:20 wiz Exp $
# $NetBSD: Makefile.common,v 1.35 2020/06/13 20:54:32 leot Exp $
# used by graphics/sane-frontends/Makefile

CATEGORIES?= graphics
MASTER_SITES?= https://alioth.debian.org/frs/download.php/file/4224/
# http://alioth.debian.org/frs/?group_id=30186

MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.sane-project.org/
LICENSE= gnu-gpl-v2

SANE_MAJOR?= 1
SANE_MINOR?= 0
SANE_MICRO?= 27
SANE_MICRO?= 30
SANE_VERSION= ${SANE_MAJOR}.${SANE_MINOR}.${SANE_MICRO}
PLIST_SUBST+= SANE_MAJOR=${SANE_MAJOR:Q}
PLIST_SUBST+= SANE_MINOR=${SANE_MINOR:Q}
Expand Down
76 changes: 53 additions & 23 deletions graphics/sane-backends/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.34 2019/08/07 15:52:13 maya Exp $
@comment $NetBSD: PLIST,v 1.35 2020/06/13 20:54:32 leot Exp $
bin/gamma4scanimage
bin/sane-config
bin/sane-find-scanner
Expand All @@ -7,28 +7,6 @@ bin/umax_pp
include/sane/sane.h
include/sane/saneopts.h
lib/libsane.la
${PLIST.nls}share/locale/bg/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/cs/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/da/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/de/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en@boldquot/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en@quot/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en_GB/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/eo/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/es/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/fi/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/fr/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/gl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/hu/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/it/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/ja/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/nb/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/nl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/pl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/pt/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/ru/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/sv/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/uk/LC_MESSAGES/sane-backends.mo
lib/pkgconfig/sane-backends.pc
lib/sane/libsane-abaton.la
lib/sane/libsane-agfafocus.la
Expand Down Expand Up @@ -93,6 +71,7 @@ lib/sane/libsane-pixma.la
lib/sane/libsane-plustek.la
lib/sane/libsane-plustek_pp.la
lib/sane/libsane-ricoh.la
lib/sane/libsane-ricoh2.la
lib/sane/libsane-rts8891.la
lib/sane/libsane-s9036.la
lib/sane/libsane-sceptre.la
Expand Down Expand Up @@ -179,6 +158,7 @@ man/man5/sane-pixma.5
man/man5/sane-plustek.5
man/man5/sane-plustek_pp.5
man/man5/sane-ricoh.5
man/man5/sane-ricoh2.5
man/man5/sane-rts8891.5
man/man5/sane-s9036.5
man/man5/sane-sceptre.5
Expand Down Expand Up @@ -207,6 +187,34 @@ sbin/saned
share/doc/sane-backends/AUTHORS
share/doc/sane-backends/COPYING
share/doc/sane-backends/ChangeLog
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.0
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.1
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.10
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.11
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.12
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.13
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.14
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.15
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.16
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.17
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.18
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.19
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.2
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.20
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.21
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.22
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.23
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.24
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.25
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.27
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.28
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.3
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.4
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.5
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.6
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.7
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.8
share/doc/sane-backends/ChangeLogs/ChangeLog-1.0.9
share/doc/sane-backends/LICENSE
share/doc/sane-backends/NEWS
share/doc/sane-backends/PROBLEMS
Expand Down Expand Up @@ -361,6 +369,28 @@ share/examples/sane/umax.conf
share/examples/sane/umax1220u.conf
share/examples/sane/umax_pp.conf
share/examples/sane/xerox_mfp.conf
${PLIST.nls}share/locale/bg/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/cs/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/da/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/de/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en@boldquot/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en@quot/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/en_GB/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/eo/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/es/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/fi/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/fr/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/gl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/hu/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/it/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/ja/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/nb/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/nl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/pl/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/pt/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/ru/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/sv/LC_MESSAGES/sane-backends.mo
${PLIST.nls}share/locale/uk/LC_MESSAGES/sane-backends.mo
@pkgdir share/sane/snapscan
@pkgdir share/sane/gt68xx
@pkgdir share/sane/epjitsu
Expand Down
12 changes: 6 additions & 6 deletions graphics/sane-backends/distinfo
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
$NetBSD: distinfo,v 1.46 2018/02/25 21:22:07 wiz Exp $
$NetBSD: distinfo,v 1.47 2020/06/13 20:54:32 leot Exp $

SHA1 (sane-backends-1.0.27.tar.gz) = 579ec4d6279c7f0f02014358a7e74056672a1e43
RMD160 (sane-backends-1.0.27.tar.gz) = 09afbf4efee05759aef49de8d41c7d089a41ed05
SHA512 (sane-backends-1.0.27.tar.gz) = c6552768bfc10216730fc11011c82f74ca0952182019ded3916072147ec09be5c975ce1d37dc3ccea050c488dbdf983c2ca17dcd702644060ba796ae2591f9c5
Size (sane-backends-1.0.27.tar.gz) = 6430188 bytes
SHA1 (sane-backends-1.0.30.tar.gz) = 4f6a2e56d92d15a58dcabcba76a36929a2fd882f
RMD160 (sane-backends-1.0.30.tar.gz) = 85c57e773d26e8c82304d3d6bce38dcda0f2b8c0
SHA512 (sane-backends-1.0.30.tar.gz) = e9f4ab1f21d5ab0e09b101389c325947824945af968f08b307485f79d4dc4c134b8a1979fb0cf0cfa72435abffe70d0060748a2c2ec46514eb15a0442ee181a5
Size (sane-backends-1.0.30.tar.gz) = 7204519 bytes
SHA1 (patch-aa) = 91f5838b7c455dc160ba22d15659c1b19a222668
SHA1 (patch-ab) = f6ec74b90f5499d07117559c7079ba2efccccf17
SHA1 (patch-ah) = 6e747c3b541c9ebb57db6477ac6b6e48b1df0248
SHA1 (patch-ai) = 14f5467eb865406cbec00b8d47b5c23c4c89f113
SHA1 (patch-aj) = c2e0733796872f1b074d0491dea4cffa1891bccc
SHA1 (patch-ak) = f00d3773c14f9955565debc0d16231906a2bba76
SHA1 (patch-backend_epsonds.c) = 2ecbb36431254b7059c3e35b5ac094c4b3f41374
SHA1 (patch-backend_pixma_pixma__bjnp.c) = c48e929910cbe33b91c919de3f47badd2bf063f0
SHA1 (patch-m4_byteorder.m4) = 23f4b0256fc9980d3472e77ab558b0e24a9495b4
SHA1 (patch-tools_umax__pp.c) = debe660184a1380a894e8a5414983f5fdb19cded
14 changes: 0 additions & 14 deletions graphics/sane-backends/patches/patch-backend_epsonds.c

This file was deleted.

20 changes: 20 additions & 0 deletions graphics/sane-backends/patches/patch-backend_pixma_pixma__bjnp.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$NetBSD: patch-backend_pixma_pixma__bjnp.c,v 1.1 2020/06/13 20:54:32 leot Exp $

Reuse BJNP_HOST_MAX instead of possible undefined HOST_NAME_MAX.

scanner_host is populated via get_scanner_name() that is already
limited by BJNP_HOST_MAX.

--- backend/pixma/pixma_bjnp.c.orig 2020-05-17 11:54:18.000000000 +0000
+++ backend/pixma/pixma_bjnp.c
@@ -1990,8 +1990,8 @@ sanei_bjnp_find_devices (const char **co
fd_set fdset;
fd_set active_fdset;
struct timeval timeout;
- char scanner_host[HOST_NAME_MAX];
- char uri[HOST_NAME_MAX + 32];
+ char scanner_host[BJNP_HOST_MAX];
+ char uri[BJNP_HOST_MAX + 32];
int dev_no;
int port;
int auto_detect = 1;

0 comments on commit c2e5f6d

Please sign in to comment.