Skip to content

Commit

Permalink
sane: enable pdf support
Browse files Browse the repository at this point in the history
eSCL-speaking scanners that produce PDF-formatted output scan properly,
but completion is only met with `sane_start: Invalid argument` expressed
in various forms depending on front-end.

This is due to SANE being built without PDF support, provided by
poppler-glib; this commit enables that as a default-on option, fixing
support for those scanners.
  • Loading branch information
ElementW authored and Piraty committed May 27, 2024
1 parent 6bcadc0 commit c03119f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions srcpkgs/sane/template
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
pkgname=sane
_gitlab_release_hash=110fc43336d0fb5e514f1fdc7360dd87
version=1.2.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-locking --enable-ipv6 --enable-pthread
--with-usb --docdir=/usr/share/doc/sane ac_cv_func_mmap_fixed_mapped=yes
$(vopt_with snmp)"
$(vopt_with snmp) $(vopt_with poppler poppler-glib)"
hostmakedepends="pkg-config python3"
makedepends="libjpeg-turbo-devel tiff-devel libgphoto2-devel v4l-utils-devel
libusb-devel openssl-devel libxml2-devel libpng-devel
$(vopt_if snmp net-snmp-devel) $(vopt_if avahi 'avahi-libs-devel libcurl-devel')"
$(vopt_if snmp net-snmp-devel) $(vopt_if avahi 'avahi-libs-devel libcurl-devel')
$(vopt_if poppler 'cairo-devel poppler-glib-devel')"
depends="$(vopt_if snmp net-snmp)"
conf_files="/etc/sane.d/*.conf"
short_desc="Scanner Access Now Easy"
Expand All @@ -26,12 +27,16 @@ noshlibprovides="avoid false detection of device drivers"
system_accounts="_saned"
_saned_groups="lp,scanner"

build_options="avahi snmp"
build_options_default="avahi"
build_options="avahi snmp poppler"
build_options_default="avahi poppler"
desc_option_poppler="build with poppler (support for PDF-producing scanners, e.g. Epson eSCL)"

if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
make_check=no # tests broken on 32bit. https://gitlab.com/sane-project/backends/-/issues/157
fi
if [ "$build_option_poppler" ]; then
make_check=no # tests broken when poppler enabled due to bundled minigtest
fi

post_build() {
# generate udev file
Expand Down

0 comments on commit c03119f

Please sign in to comment.