commit:     532d6cb41030f2c98b335f7ee56dfc6e1ddfb826
Author:     Marcin Deranek <marcin.deranek <AT> booking <DOT> com>
AuthorDate: Sat Jan 29 13:58:19 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 18 02:51:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=532d6cb4

media-gfx/iscan: Support build with sane-backends-1.1

Signed-off-by: Marcin Deranek <marcin.deranek <AT> slonko.net>
Closes: https://bugs.gentoo.org/831823
Closes: https://github.com/gentoo/gentoo/pull/24014
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch | 11 +++++++++++
 media-gfx/iscan/iscan-3.65.0.ebuild                        |  1 +
 2 files changed, 12 insertions(+)

diff --git a/media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch 
b/media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch
new file mode 100644
index 000000000000..97979c6a313a
--- /dev/null
+++ b/media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch
@@ -0,0 +1,11 @@
+--- a/sane/version.hpp 2020-12-22 07:44:15.000000000 +0100
++++ b/sane/version.hpp 2022-01-22 22:47:47.508608348 +0100
+@@ -37,7 +37,7 @@
+ #include <sane/sane.h>
+ }
+ 
+-#if !((SANE_MAJOR == SANE_CURRENT_MAJOR) && (SANE_MINOR == 0))
++#if !(SANE_MAJOR == SANE_CURRENT_MAJOR)
+ #error "SANE installation violates versioning portability constraints."
+ #endif
+ 

diff --git a/media-gfx/iscan/iscan-3.65.0.ebuild 
b/media-gfx/iscan/iscan-3.65.0.ebuild
index f143a5474646..38fb610ef483 100644
--- a/media-gfx/iscan/iscan-3.65.0.ebuild
+++ b/media-gfx/iscan/iscan-3.65.0.ebuild
@@ -46,6 +46,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-3.62.0-tests-tesseract.patch
        "${FILESDIR}"/${PN}-3.62.0-tests-linkage.patch
        "${FILESDIR}"/${PN}-3.63.0-autoconf-2.70.patch
+       "${FILESDIR}"/${PN}-3.65.0-sane-backends-1.1.patch
 )
 
 src_prepare() {

Reply via email to