Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
@ 2023-03-03 17:50 ElementW
  2023-04-07 15:08 ` [PR PATCH] [Updated] " ElementW
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: ElementW @ 2023-03-03 17:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

There is a new pull request by ElementW against master on the void-packages repository

https://github.com/ElementW/void-packages sane-fix-pdf-ecsl-scanners
https://github.com/void-linux/void-packages/pull/42569

sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
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.

#### Testing the changes
- I tested the changes in this PR: **YES** (using an EPSON XP-325)


A patch file from https://github.com/void-linux/void-packages/pull/42569.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sane-fix-pdf-ecsl-scanners-42569.patch --]
[-- Type: text/x-diff, Size: 2075 bytes --]

From 127f925ebca02fa3dd07105e20abaf9caff23507 Mon Sep 17 00:00:00 2001
From: Celeste Wouters <perso@elementw.net>
Date: Fri, 3 Mar 2023 18:46:32 +0100
Subject: [PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid
 argument`

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.
---
 srcpkgs/sane/template | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 2a40d0ad5813..74e6bdda7b44 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -2,15 +2,16 @@
 pkgname=sane
 _gitlab_release_hash=7d30fab4e115029d91027b6a58d64b43
 version=1.1.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 $(vopt_if snmp net-snmp-devel)
- $(vopt_if avahi 'avahi-libs-devel libcurl-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"
@@ -26,8 +27,8 @@ 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"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	make_check=no # tests broken on 32bit.  https://gitlab.com/sane-project/backends/-/issues/157

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
@ 2023-04-07 15:08 ` ElementW
  2023-04-13  6:08 ` riddicc
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-04-07 15:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

There is an updated pull request by ElementW against master on the void-packages repository

https://github.com/ElementW/void-packages sane-fix-pdf-ecsl-scanners
https://github.com/void-linux/void-packages/pull/42569

sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
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.

#### Testing the changes
- I tested the changes in this PR: **YES** (using an EPSON XP-325)


A patch file from https://github.com/void-linux/void-packages/pull/42569.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sane-fix-pdf-ecsl-scanners-42569.patch --]
[-- Type: text/x-diff, Size: 2075 bytes --]

From 59cafa7d2f05437a464553f5d1bb20a01708f1b6 Mon Sep 17 00:00:00 2001
From: Celeste Wouters <perso@elementw.net>
Date: Fri, 3 Mar 2023 18:46:32 +0100
Subject: [PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid
 argument`

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.
---
 srcpkgs/sane/template | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 2a40d0ad5813..74e6bdda7b44 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -2,15 +2,16 @@
 pkgname=sane
 _gitlab_release_hash=7d30fab4e115029d91027b6a58d64b43
 version=1.1.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 $(vopt_if snmp net-snmp-devel)
- $(vopt_if avahi 'avahi-libs-devel libcurl-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"
@@ -26,8 +27,8 @@ 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"
 
 if [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
 	make_check=no # tests broken on 32bit.  https://gitlab.com/sane-project/backends/-/issues/157

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
  2023-04-07 15:08 ` [PR PATCH] [Updated] " ElementW
@ 2023-04-13  6:08 ` riddicc
  2023-04-19 10:31 ` riddicc
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2023-04-13  6:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1506400478

Comment:
how can i get at least a test-version of the new package?
i think my scanner (Canon PIXMA TS3450) delivers PDF, too...

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
  2023-04-07 15:08 ` [PR PATCH] [Updated] " ElementW
  2023-04-13  6:08 ` riddicc
@ 2023-04-19 10:31 ` riddicc
  2023-07-19  2:16 ` github-actions
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2023-04-19 10:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1514502629

Comment:
yesterday's sane-1.1.1_2.x86_64 still does not scan with my TS3450... *cry*

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (2 preceding siblings ...)
  2023-04-19 10:31 ` riddicc
@ 2023-07-19  2:16 ` github-actions
  2023-07-19  3:20 ` riddicc
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: github-actions @ 2023-07-19  2:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1641280699

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (3 preceding siblings ...)
  2023-07-19  2:16 ` github-actions
@ 2023-07-19  3:20 ` riddicc
  2023-07-19 17:37 ` [PR PATCH] [Updated] " ElementW
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2023-07-19  3:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1641329934

Comment:
bump

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (4 preceding siblings ...)
  2023-07-19  3:20 ` riddicc
@ 2023-07-19 17:37 ` ElementW
  2023-07-19 17:40 ` ElementW
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-07-19 17:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

There is an updated pull request by ElementW against master on the void-packages repository

https://github.com/ElementW/void-packages sane-fix-pdf-ecsl-scanners
https://github.com/void-linux/void-packages/pull/42569

sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
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.

#### Testing the changes
- I tested the changes in this PR: **YES** (using an EPSON XP-325)


A patch file from https://github.com/void-linux/void-packages/pull/42569.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sane-fix-pdf-ecsl-scanners-42569.patch --]
[-- Type: text/x-diff, Size: 2246 bytes --]

From b783c6cfd68a03367c193e21b4c010fe75d4755f Mon Sep 17 00:00:00 2001
From: Celeste Wouters <perso@elementw.net>
Date: Fri, 3 Mar 2023 18:46:32 +0100
Subject: [PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid
 argument`

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.
---
 srcpkgs/sane/template | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 46ddd20f31701..c63f579650aef 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -2,15 +2,16 @@
 pkgname=sane
 _gitlab_release_hash=7d30fab4e115029d91027b6a58d64b43
 version=1.1.1
-revision=2
+revision=3
 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 $(vopt_if snmp net-snmp-devel)
- $(vopt_if avahi 'avahi-libs-devel libcurl-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"
@@ -26,12 +27,15 @@ 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"
 
 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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (5 preceding siblings ...)
  2023-07-19 17:37 ` [PR PATCH] [Updated] " ElementW
@ 2023-07-19 17:40 ` ElementW
  2023-07-30 11:25 ` riddicc
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-07-19 17:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

New comment by ElementW on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1642494633

Comment:
Gave up trying to understand precisely why the test fails. Not surprising it would really be broken upstream considering [its sorry state on 32 bit since 3 years now](https://gitlab.com/sane-project/backends/-/issues/157).
So I just disabled tests when `poppler` is enabled too.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (6 preceding siblings ...)
  2023-07-19 17:40 ` ElementW
@ 2023-07-30 11:25 ` riddicc
  2023-08-05  8:18 ` [PR PATCH] [Updated] " ElementW
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2023-07-30 11:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1657114128

Comment:
sane-1.2.1_1 still does not work...

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (7 preceding siblings ...)
  2023-07-30 11:25 ` riddicc
@ 2023-08-05  8:18 ` ElementW
  2023-08-05  8:19 ` ElementW
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-08-05  8:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

There is an updated pull request by ElementW against master on the void-packages repository

https://github.com/ElementW/void-packages sane-fix-pdf-ecsl-scanners
https://github.com/void-linux/void-packages/pull/42569

sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
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.

#### Testing the changes
- I tested the changes in this PR: **YES** (using an EPSON XP-325)


A patch file from https://github.com/void-linux/void-packages/pull/42569.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sane-fix-pdf-ecsl-scanners-42569.patch --]
[-- Type: text/x-diff, Size: 2191 bytes --]

From d089d1f0355d51579b5d1d83a6bcdd700e32f131 Mon Sep 17 00:00:00 2001
From: Celeste Wouters <perso@elementw.net>
Date: Fri, 3 Mar 2023 18:46:32 +0100
Subject: [PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid
 argument`

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.
---
 srcpkgs/sane/template | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 27b8c46ad6fdb..66a1a346f1570 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -6,11 +6,12 @@ revision=1
 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"
@@ -26,12 +27,15 @@ 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"
 
 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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (8 preceding siblings ...)
  2023-08-05  8:18 ` [PR PATCH] [Updated] " ElementW
@ 2023-08-05  8:19 ` ElementW
  2023-11-04  1:45 ` github-actions
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-08-05  8:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

There is an updated pull request by ElementW against master on the void-packages repository

https://github.com/ElementW/void-packages sane-fix-pdf-ecsl-scanners
https://github.com/void-linux/void-packages/pull/42569

sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
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.

#### Testing the changes
- I tested the changes in this PR: **YES** (using an EPSON XP-325)


A patch file from https://github.com/void-linux/void-packages/pull/42569.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sane-fix-pdf-ecsl-scanners-42569.patch --]
[-- Type: text/x-diff, Size: 2191 bytes --]

From fb071e7b7ac900b4988e1aac6d556609db1e42ba Mon Sep 17 00:00:00 2001
From: Celeste Wouters <perso@elementw.net>
Date: Fri, 3 Mar 2023 18:46:32 +0100
Subject: [PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid
 argument`

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.
---
 srcpkgs/sane/template | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/sane/template b/srcpkgs/sane/template
index 27b8c46ad6fdb..66a1a346f1570 100644
--- a/srcpkgs/sane/template
+++ b/srcpkgs/sane/template
@@ -6,11 +6,12 @@ revision=1
 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"
@@ -26,12 +27,15 @@ 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"
 
 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

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (9 preceding siblings ...)
  2023-08-05  8:19 ` ElementW
@ 2023-11-04  1:45 ` github-actions
  2023-11-04  6:10 ` riddicc
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: github-actions @ 2023-11-04  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1793291980

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (10 preceding siblings ...)
  2023-11-04  1:45 ` github-actions
@ 2023-11-04  6:10 ` riddicc
  2023-11-07 15:20 ` ElementW
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2023-11-04  6:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1793356281

Comment:
bump?

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (11 preceding siblings ...)
  2023-11-04  6:10 ` riddicc
@ 2023-11-07 15:20 ` ElementW
  2024-02-06  1:44 ` github-actions
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2023-11-07 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

New comment by ElementW on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1642494633

Comment:
Gave up trying to understand precisely why the test fails. Not surprising it would really be broken upstream considering [its sorry state on 32 bit for 4 years now](https://gitlab.com/sane-project/backends/-/issues/157).
So I just disabled tests when `poppler` is enabled too.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (12 preceding siblings ...)
  2023-11-07 15:20 ` ElementW
@ 2024-02-06  1:44 ` github-actions
  2024-02-06  9:20 ` ElementW
  2024-02-06  9:55 ` riddicc
  15 siblings, 0 replies; 17+ messages in thread
From: github-actions @ 2024-02-06  1:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1928624233

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (13 preceding siblings ...)
  2024-02-06  1:44 ` github-actions
@ 2024-02-06  9:20 ` ElementW
  2024-02-06  9:55 ` riddicc
  15 siblings, 0 replies; 17+ messages in thread
From: ElementW @ 2024-02-06  9:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by ElementW on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1929091507

Comment:
Again, this is still current, and SANE's test situation has not improved since 90 days.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: sane: fix PDF-producing eSCL scanners failing with `Invalid argument`
  2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
                   ` (14 preceding siblings ...)
  2024-02-06  9:20 ` ElementW
@ 2024-02-06  9:55 ` riddicc
  15 siblings, 0 replies; 17+ messages in thread
From: riddicc @ 2024-02-06  9:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

New comment by riddicc on void-packages repository

https://github.com/void-linux/void-packages/pull/42569#issuecomment-1929154399

Comment:
why cant we just do it? i mean: make a new package?
when i compile&install it myself, it works fine...

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-02-06  9:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 17:50 [PR PATCH] sane: fix PDF-producing eSCL scanners failing with `Invalid argument` ElementW
2023-04-07 15:08 ` [PR PATCH] [Updated] " ElementW
2023-04-13  6:08 ` riddicc
2023-04-19 10:31 ` riddicc
2023-07-19  2:16 ` github-actions
2023-07-19  3:20 ` riddicc
2023-07-19 17:37 ` [PR PATCH] [Updated] " ElementW
2023-07-19 17:40 ` ElementW
2023-07-30 11:25 ` riddicc
2023-08-05  8:18 ` [PR PATCH] [Updated] " ElementW
2023-08-05  8:19 ` ElementW
2023-11-04  1:45 ` github-actions
2023-11-04  6:10 ` riddicc
2023-11-07 15:20 ` ElementW
2024-02-06  1:44 ` github-actions
2024-02-06  9:20 ` ElementW
2024-02-06  9:55 ` riddicc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).