87 Commits

Author SHA1 Message Date
baozewei c93fdd2119 update sane-backends to 1.4.0 Signed-off-by:baozewei@huawei.com
Signed-off-by: baozewei <baozewei@huawei.com>
2025-11-13 22:08:51 +08:00
田迅 b16d9d30d7 升级到1.3.1
Signed-off-by: 田迅 <tianxun3@huawei.com>
2025-06-12 17:58:44 +08:00
Ralph Little efa3309ca2 configure: corrected issue in Makefile.am and removed noinst build of umax_pp tool
Currently, there is no way to disable the build of the umax_pp low level
sources because the tool umax_pp is *always* built. Some platforms
cannot build the umax_pp low level code so this causes problems.
2022-07-22 09:10:46 -07:00
David Ward 6e160f1e81 configure: Use PKG_CHECK_MODULES to detect Net-SNMP
The output of "net-snmp-config --cflags" can contain optimization flags.
These might not be applicable to the current compiler, causing warnings.

Use PKG_CHECK_MODULES to check for Net-SNMP and obtain the compiler and
linker flags instead, in the same way as for libcurl or poppler-glib.
2022-04-26 02:12:25 -04:00
David Ward 9e950b0de2 Fix header file used for poll()
POSIX specifies the header to include is <poll.h>, not <sys/poll.h>.
This results in a compiler warning with musl libc (on Alpine Linux).
2022-04-21 23:37:33 -04:00
Olaf Meeuwissen 80e5d0d899 Build genesys testsuite only when backend is build. Re #354 2021-02-07 16:25:30 +09:00
Olaf Meeuwissen 14d25630a4 Use git-version-gen to inject a version
This fixes builds from tarballs without a .git directory.

Fixes #248
2021-02-07 14:46:47 +09:00
Gerhard Jaeger 92953cb0a1 Fix issue with '--enable-locking': Do not require sub-directory for locking. 2021-01-07 12:34:34 +01:00
Your Name 02b34622f7 Lower minimum python version required to 2.7 2020-09-14 15:44:36 +01:00
Your Name 7bf427ef52 Do not use fixed python executable name and use AM_PROG_PYTHON
On many systems now python executable it is python3.
On my system it the case and by this muild failed with:

make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
Generating pixma/pixma_sane_options.h from pixma/pixma.c
/bin/sh: python: command not found
make[2]: *** [Makefile:7317: pixma/pixma_sane_options.h] Error 127
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/backends-1.0.31/backend'
make[2]: *** Waiting for unfinished jobs....

Using AM_PROG_PYTHON() nmacro cllows avoide tha by hecks current version of the
python and allw to use custom python executable by execute configure by:

$ PYTHON=</some/python> ./configure <params>

AM_PROG_PYTHON aclocal macro propagates to automake files $(PYTHON) variable
which could be used on geberate instaleable scripts on duting build process like
it is now in backend/Makefile.am.

Currently minum version of required vesion of the python is python >= 3.
2020-09-13 20:17:43 +01:00
Olaf Meeuwissen 2d481381be configure.ac: Remove maintainer mode
Now that we no longer include generated files in our git repository
builds should always have maintainer mode enabled so checkouts pick
up on changes in Makefile.am, configure.ac, etc. between builds.

See #350.
2020-09-13 16:34:05 +09:00
Olaf Meeuwissen 6b049f8a5e configure.ac: Remove stale release versioning comment 2020-09-13 16:34:05 +09:00
Peter Marschall 59252e1ca5 spelling fixes for sane core 2020-08-29 09:18:04 +02:00
Olaf Meeuwissen 2febfff82a v4l: Drop kernel interface from v4l.h
It has been included in libv4l1.h since 0.8.3.
2020-05-05 16:15:13 +09:00
Olaf Meeuwissen 0a100e8734 Merge branch 'newyearsbranch' into 'master'
canon_lide70-sequel

See merge request sane-project/backends!315
2020-04-04 04:35:45 +00:00
Olaf Meeuwissen 66e120557f Add linker flags for JPEG library when checking for functions 2020-03-23 21:59:41 +09:00
Olaf Meeuwissen 311afe591f Add checks for newer JPEG API used by the escl backend. Fixes #243
The backend is excluded from the build if this API is not available by
SANE_CHECK_BACKENDS.
2020-03-17 20:44:40 +09:00
Olaf Meeuwissen 803f89ba43 Merge branch 'master' into '224-enable-avahi-support-by-default'
# Conflicts:
#   .gitlab-ci.yml
2020-03-14 09:03:31 +00:00
Ordissimo 05304fac87 .gitlab-ci.yml: Revert poppler related changes
The Docker images used by CI have been updated to include the required
packages.
2020-03-14 09:01:17 +00:00
Olaf Meeuwissen 556e5c8df7 Enable Avahi support by default if possible. Re #224
This eases building of the escl backend and aligns configure time
behaviour with other --with-* options.
2020-03-14 14:59:39 +09:00
pimvantend e836dae5af Merge branch 'master' of https://gitlab.com/sane-project/backends into newyearsbranch
resolve po/POTFILES.in
2020-03-10 20:09:49 +01:00
Olaf Meeuwissen 8b04130349 Remove SANE Standard build support 2020-03-02 20:19:07 +09:00
pimvantend c398235591 canon_lide70
adding/modifying twelve files to provide the new canon_lide70 backend
2020-01-04 16:18:57 +01:00
Touboul Nathane 256e07b8b1 Add escl backend 2019-12-14 08:13:54 +00:00
Olaf Meeuwissen a0fbc3dcde Merge branch 'sanei-usb-testing-mode' into 'master'
sanei: Support capture and replay of USB data for testing

See merge request sane-project/backends!55
2019-08-08 14:01:30 +00:00
Povilas Kanapickas 9c26473a08 genesys: Add tests for serialization of calibration data 2019-07-23 02:00:44 +03:00
Povilas Kanapickas d277cf4bff configure: Make --with-usb-record-replay opt-in rather than opt-out 2019-06-30 22:31:14 +03:00
Olaf Meeuwissen 249a756d8d Use git to put a version in configure
CI has been using this for a long time.  Now that generated files are
no longer in the repository, new clones require autotools already and
adding a git requirement doesn't seem like a big burden.
2019-06-25 21:54:37 +09:00
Olaf Meeuwissen 6fb0afdaf3 Fix AS_CASE clause matching
See https://alioth-lists.debian.net/pipermail/sane-devel/2019-June/036809.html
2019-06-19 21:12:51 +09:00
Povilas Kanapickas c28ebb3cb5 configure: Add option to enable USB record-replay 2019-06-16 20:46:39 +03:00
Olaf Meeuwissen 6a2b8a00a8 Drop unneeded C++ compiler flag additions to AM_CXXFLAGS. Re #92
The AX_CXX_COMPILE_STDCXX_11 macro takes care of doing so if needed
already.
2019-06-16 21:43:18 +09:00
Olaf Meeuwissen 58b4e4a2e7 Expand AM_CXXFLAGS in our Makefiles. Fixes #84 2019-05-21 22:14:46 +09:00
Povilas Kanapickas c9ae8b8942 Enable C++ in autoconf 2019-05-11 00:03:26 +03:00
Stanislav Yuzvinsky 2ff369a35d Add new backend ricoh2 2018-09-29 11:16:28 +03:00
Olaf Meeuwissen 53d32726ad Update mailing lists addresses to new location 2018-04-18 21:36:00 +09:00
Olaf Meeuwissen 691faf38d8 Bump autofoo dependencies to match those present in Debian 9
This gets rid of the warning that AM_PROG_MKDIR_P is deprecated and
should be replaced with AC_PROG_MKDIR_P warning.
2018-03-17 10:35:57 +09:00
Olaf Meeuwissen a461a98bae plustek-pp: Replace sys/signal.h include with signal.h
All other backends already `#include <signal.h>` directly, without any
configure time checking or problems.

Fixes [-Wcc] compiler warning on Alpine.
2017-07-15 22:48:29 +09:00
Olaf Meeuwissen 92a1a29e47 lib/isfdtype.c: Remove badly broken substitute
The substitute completely ignores the fdtype argument and only works
correctly for S_IFSOCK values.  This happened to be the only way the
function was invoked but for safety's sake this has been replaced by
a local implementation that does pretty much the same thing, without
the misleading bit.

Found courtesy of a [-Wunused-parameter] compiler warning on Alpine.
2017-07-15 21:58:51 +09:00
Olaf Meeuwissen 7e855c22eb CI: Build git describe versioned snapshot tarballs
This:
 - modifies `configure.ac` to get a version number courtesy of `git`
   when `autoconf` is run
 - runs a `make dist` when all compilation targets succeed
 - makes the resulting tarball available as a build artifact
 - renames the various pipeline stages
2017-06-17 12:38:21 +09:00
Olaf Meeuwissen 182b8f22fe libsane: Only depend on and link in the kitchen sink if needed
There is no need to depend on and link in all the various dependencies
for whatever backends *might* be preloaded if none are.  Distributions
habitually rip these out, rightfully so, to reduce the list of package
dependencies.  This will achieve the same while still doing the "right
thing" for builds that do preload one or more backens.
2017-06-07 22:06:05 +09:00
Olaf Meeuwissen 9faf64b6c8 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
m. allan noah c9f5d8285b Open repo for 1.0.28 development 2017-05-22 21:08:33 -04:00
m. allan noah b7fde013c1 SANE-backends release 1.0.27
Moved old changelogs to new directory, and excluded them from
release tarball.

Improved release docs.

Updated config.* files

Bumped version numbers.

Wrote release notes.
2017-05-22 11:16:40 -04:00
Olaf Meeuwissen 8095be233c configure.ac: Fix condition 2017-05-13 16:34:38 +09:00
Olaf Meeuwissen 2d6af49542 Fix test for API specification generation
If none of the formats can be generated but API specs are requested,
bomb.  The original test aimed to do so but was testing against "no",
a value that was never assigned.
2017-05-06 20:40:25 +09:00
Paul Newall d30b8b2858 deleted a line in configure.ac. This was a commented out line left from when the backend kodakaio used CUPS to autodetect printers. 2017-04-30 18:09:59 +01:00
Olaf Meeuwissen ffc5ac6ec2 Fix typo 2016-12-17 17:06:25 +09:00
Olaf Meeuwissen 5a875ee236 sane-find-scanner: disable USB if not supported
This fixes a [-Wpedantic] compiler warning about ISO C forbidding empty
translation units.  The check-usb-chip.c file reduces to such a file in
the case USB support was explicitly disabled or no usable library found.
2016-09-25 17:00:54 +09:00
Olaf Meeuwissen 1ccab20e13 Add fig2dev as prerequisite for API HTML docs
The target for sane-html depends on sane.dvi which requires fig2dev.

Thanks to:
 - https://lists.debian.org/debian-user/2016/08/msg00484.html
 - http://superuser.com/questions/1101439/error-building-sane-backend-on-debian
2016-09-18 21:31:34 +09:00
Olaf Meeuwissen 8b86457e59 Fix typo introduced in 19f4872c. Fixes 315435 2016-09-18 21:19:12 +09:00