Commit Graph

28 Commits

Author SHA1 Message Date
Sergey V. Lobanov 26cecccf28 sane-backends: fix build on macos
MacOS does not have /bin/true, but OpenWrt Makefile uses it so
build fails on macos

This patch removes absolute path (replaces /bin/true to true)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-29 19:26:44 -03:00
Sebastian Kemper f37006c2e6 sane-backends: use macros (properly), remove chmod
- use $(INSTALL_DIR) instead of mkdir
- using $(INSTALL_CONF) and then running chmod is pointless, use
  $(INSTALL_DATA) directly
- /etc/xinetd.d/sane-port doesn't need read protection from non-root
  users, use $(INSTALL_DATA) as well

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-17 14:03:44 +02:00
Sebastian Kemper 977109e286 sane-backends: fix usbid file generation
On some build systems (build bots, Debian Buster for example) the
current mechanism in the Build/Install define doesn't run. Replace it
with shell fu that works.

Issue was reported, see [1].

[1] https://github.com/openwrt/packages/issues/16085

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-07-17 14:01:04 +02:00
Luiz Angelo Daros de Luca 49e75e8105 sane-backends: update to 1.0.32
Dropped 102-pixma_Restore_old_behaviour_in_case_XML_support_is_missing.patch (merged)

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2021-02-23 00:24:08 -03:00
Rosen Penev bf1a138f92
sane-backends: remove outdated C++ patch
std::round was unavailable because of a wrong configure var from the
uClibc days. Fixed upstream with 1647790ae6202bd70b199e2aa44f8eb43e8d3af1

Refreshed patches with make package/sane-backends/refresh

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-20 20:03:55 -08:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Luiz Angelo Daros de Luca bf4340e19e sane-backends: revert BUILDONLY flag
BUILDONLY was disabling SANE backends (drivers) build.

Closes #14484

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2021-01-15 00:03:18 -03:00
Luiz Angelo Daros de Luca c40d882587 sabe-backends: update to 1.0.31
* adds the canon_lide70 backend
* avision: adds support for the KODAK i1120, fixes thread cancellation issues,
  disables exposure option for non-filmscanners
* canon_dr: improves error reporting
* dmc: fixes compiler warnings on the scan area options
* epsonds: rewrites the network I/O following changes made to the
* epson2 backend in 1.0.30 to fix security issues.  Network support is still
  unsupported.
* fujitsu: adds support for the fi-800R and a card scanning slot, fixes a bug
  when reading hardware sensors on the first invocation. Adds USB IDs for
  fi-7800 and fi-7900.
* genesys: adds support for the Canon 5600F, Canon LiDE 90, Plustek OpticFilm
  7200 and 7200 (v2), 7400, 7600i, 8100 and 8200i. Fixes several issues with the
  Canon 8600F. Adds 4800dpi support for the Canon LiDE 210 and fixes 3200dpi
  flatbed support on the Canon 8400F. Adds an option to fill dark calibration
  with a constant.  Adds transparency support for gl847 chipset based devices.
  Fixes CIS scanner support for gl842 chipset based devices. Removes lineart and
  image enhancement emulation support.
* gphoto: supports the PLANon DocuPen RC800 (with a recent enough version of
  gphoto2)
* gt68xx: modifies scan cancellation behaviour
* hp5400: adds button support, fixes a scan cancellation crash issue
* pixma: add supports for the i-SENSYS MF440 Series and untested support for the
  PIXMMA G7000 Series and GM4000 Series as well as the i-SENSYS MF720 Series.
* plustek: fixes a potential buffer overrun
* test: adds gamma options

Patches:
- ADD: 102-pixma_Restore_old_behaviour_in_case_XML_support_is_missing.patch:
  pixma was failing to detect libxml2, even when it exists
  (https://gitlab.com/sane-project/backends/-/issues/345)
- DROP: 100-fix-bigendian.patch: fix in release

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2020-11-22 02:11:09 -03:00
Rosen Penev 5a7148d112
treewide: add missing BUILDONLY
Fixes Makefile warnings:

WARNING: skipping X -- package has no install section

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-10-12 17:43:49 -07:00
Huangbin Zhan 704e733e51 treewide: fix broken conffiles
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
2020-07-07 18:29:13 +08:00
Rosen Penev 0bfc120d94
sane-backends: update to 1.0.30
Minor cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-06 20:59:59 -07:00
Luiz Angelo Daros de Luca f12ef14bcd sane-backends: enable PKG_BUILD_PARALLEL
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2020-04-22 00:48:08 -03:00
Eneas U de Queiroz 018392a988
sane-backends: use "tristate" instead of "prompt"
Remove "prompt" command, dropped in kconfig-v5.6, from
Package/sane-backends/config, replacing it with "tristate".  This does
not affect the generated package.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-04-06 22:15:33 -03:00
Luiz Angelo Daros de Luca 0a85579e45 sane-backends: update to 1.0.29
- Migrate libusb dependency back to libsane
  (virtually all useful backends for OpenWrt would need it anyway)
- Disabled new usb-record-replay feature (avoid libxml2 dep)
- Disabled new escl backend (network-only backend are not too useful
  for OpenWrt and it requires libcurl, libnetsnmp, libavahi and libxml2)
- Workaround sane-daemon/postinst installation on Imagebuild
- Enabled backends kvs40xx and mustek_usb2 (fixed upstream)
- Fix bigendian compilation
  (https://gitlab.com/sane-project/backends/-/merge_requests/329)
- Fix missing std::round() for uclibc
  (https://gitlab.com/sane-project/backends/issues/237)
- Fixes FS#2685: coldplug was running before usblp was loaded. Now
  it grants access do usblp when a device using it is plugged.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2020-02-03 02:24:08 -03:00
Luiz Angelo Daros de Luca 794c950b32 sane-backends: run (xinetd) saned as non-root
saned requires write access scanner USB bus for its process and
to usblp/bind in order to rebind multifunctional printers back
to usblp (for printing with p910nd).

A hotplug script monitor new USB devices for scanners. Scanners
are detected by searching /usr/share/sane/<vendor>-<backend>.usbid
for the device product_id.

The package saned creates user saned:scanners. Access is granted to
group scanners.

The default xinetd conf was updated to run as saned:scanner.

sane-daemon pkg now has a postinst trigger that runs udevtrigger for
granting perms where there are connected scanners during installation.

Existing hotplug scripts from hplip were removed. They were mostly
useless.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2019-12-21 20:44:56 -03:00
Luiz Angelo Daros de Luca 623d66853b sane-backends: update to 1.0.28 (WIP)
Just Need runtime tests

* libsane dependency on libusb moved to those drivers that requires it
* clean up some ./configure args
* added saned-ricoh2 for new backend
* enabled saned-gphoto2 (after c8fbe26c53)
* disabled kvs40xx and mustek_usb2 that requires pthread while the issue is
not solved (https://gitlab.com/sane-project/backends/issues/153)
* patches refreshed:
 - 002-remove-uneeded.patch
* patches dropped:
 - 031-fix_uclibc.patch
 - 050-remove_linked_libs_for_unused_preload.patch (with --disable-preload)

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2019-11-01 04:21:14 -03:00
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Luiz Angelo Daros de Luca 7dd2e1776e sane-backends: rebind printers to usblp after scan
While scanning, sane unbinds usb device from usblp module. This
patch creates a saned wrapper that keep track of all usb devices
binded to usblp before saned is launched and rebind them back
if not still bound after saned exits.

This workaround is only effective if saned is launched by a super
daemon like xinetd as it needs to exit after scan job finish. If
not, printing will not be available while saned service is running.

Write access to /sys/bus/usb/drivers/usblp/bind is required. So,
normally it would require root access.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2019-05-02 03:31:45 -03:00
Luiz Angelo Daros de Luca 82fa9f35c5 sane-backends: add PKG_CPE_ID id
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-08-26 02:29:03 -03:00
Luiz Angelo Daros de Luca c4a25df0c6 sane-backends: fix libusb dependency
libusb-compat was still required by package but sane was already
builing and linking libusb-1.0. It was working because libusb-compat
requires libusb-1.0.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2018-06-28 00:36:54 -03:00
Sebastian Muszynski 859d441761 sane-backends: Make sane-backends.pc available
Signed-off-by: Sebastian Muszynski <basti@linkt.de>
2018-05-01 16:56:35 +02:00
Luiz Angelo Daros de Luca 275bc8edcf sane-backends: bump to 1.0.27
Fixes CVE-2017-6318

Patches where refreshed and the following removed:
- 020-fix_pieusb.patch: fixed upstream
- 030-musl.patch: accepted upstream

PS: there was no sane-backends 1.0.26

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2017-05-31 00:18:23 -03:00
Luiz Angelo Daros de Luca 5df4a3c6e2 sane-backends: add missing config file
/etc/xinetd.d/sane-port is a config file.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-04-12 02:51:06 -03:00
Luiz Angelo Daros de Luca 0bab5a449e sane-backends: minor Makefile text typo
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-01-03 01:06:24 -02:00
Luiz Angelo Daros de Luca aa48cd404a sane-backends: select all backends when CONFIG_ALL
sane-xxx backend packages are hidden packages with custom
config and CONFIG_ALL does not select them alone. Now
sane-backends depends on +ALL:sane-backends-all.

No existing ipk is affected as the changed package/sane-backends
does not exist as an ipk.

030-musl.patch was updated to be submitted upstream. However,
the added preprocessor #if are always true for OpenWRT and will
not change the resulting code.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2015-10-26 14:17:28 -02:00
Luiz Angelo Daros de Luca e8e9196a30 sane-backends: import from oldpackages and update
Changes since oldpackages:
- updated to 1.0.25
  * most of openwrt patches are upstreamed now
- cups dependency was completely removed
- small musl patch
- small uclibc patch
- removed link to extra libraries in libsane (used only
  for preload backends)
- sane-libs and sane-backends merged and exploded into
  individual packages for each backend:
  * libsane for sane library (which backends should dep on)
  * sane-daemon for saned daemon
  * sane-xxx for sane backend for xxx
  ** each backend has its own custom dep libraries
  * sane-backends-all (with no files) that deps on all backends
  * sane-qcam is only available for x86/x86_64
  ** other archs does not implement inb/outb (at least in musl)

Now it is possible to use SANE with much less FS space (KB
instead of MB).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2015-10-11 00:39:22 -03:00
Luiz Angelo Daros de Luca 38d34e7eae Revert "sane-backends: import from oldpackages" 2015-09-15 19:15:57 -03:00
Luiz Angelo Daros de Luca e11fbf71f7 sane-backends: import from oldpackages
Changes since oldpackages:
- cups dependency was completely removed
  * This also happened in sane trunk version
- small musl patch
- added detection of inb,outb (link error with musl)
  * this also removes hack 020-non-i386-qcam.patch
- fix for segfault when using sane-test backend
- removed link to extra libraries in libsane (used only
  for preload backends)
- added format-security fix
- sane-libs and sane-backends merged and exploded into
  individual packages for each backend:
  * libsane for sane library (which backends should dep on)
  * sane-daemon for saned daemon
  * sane-xxx for sane backend for xxx
  ** each backend has its own custom dep libraries
  * sane-backends-all (with no files) that deps on all backends
  * sane-qcam is only available for x86/x86_64
  ** other archs does not implement inb/outb (at least in musl)

Now it is possible to use SANE with much less FS space (KB
instead of MB).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2015-09-10 18:39:40 -03:00