summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2020-08-16 22:42:09 +0000
committergutteridge <gutteridge@pkgsrc.org>2020-08-16 22:42:09 +0000
commit639fbd3da48be1b166605fd7369fdd3cb608ed81 (patch)
treeab68b4db895b946db87c2e505c64d64107944437
parentd0eb519f694d83c818f209e216c3033531ac0f95 (diff)
downloadpkgsrc-639fbd3da48be1b166605fd7369fdd3cb608ed81.tar.gz
sane-backends: fix big-endian builds
Patch from Gentoo, via Connor McLaughlan on pkgsrc-users. (Also tested by me on NetBSD 8.2_STABLE/macppc.)
-rw-r--r--graphics/sane-backends/distinfo3
-rw-r--r--graphics/sane-backends/patches/patch-backend_genesys_low.cpp16
2 files changed, 18 insertions, 1 deletions
diff --git a/graphics/sane-backends/distinfo b/graphics/sane-backends/distinfo
index 1e4e1a85c2d..a78f41cf4fc 100644
--- a/graphics/sane-backends/distinfo
+++ b/graphics/sane-backends/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.47 2020/06/13 20:54:32 leot Exp $
+$NetBSD: distinfo,v 1.48 2020/08/16 22:42:09 gutteridge Exp $
SHA1 (sane-backends-1.0.30.tar.gz) = 4f6a2e56d92d15a58dcabcba76a36929a2fd882f
RMD160 (sane-backends-1.0.30.tar.gz) = 85c57e773d26e8c82304d3d6bce38dcda0f2b8c0
@@ -10,6 +10,7 @@ SHA1 (patch-ah) = 6e747c3b541c9ebb57db6477ac6b6e48b1df0248
SHA1 (patch-ai) = 14f5467eb865406cbec00b8d47b5c23c4c89f113
SHA1 (patch-aj) = c2e0733796872f1b074d0491dea4cffa1891bccc
SHA1 (patch-ak) = f00d3773c14f9955565debc0d16231906a2bba76
+SHA1 (patch-backend_genesys_low.cpp) = 6df874fc4e4909e401db923510f802367f2377f5
SHA1 (patch-backend_pixma_pixma__bjnp.c) = c48e929910cbe33b91c919de3f47badd2bf063f0
SHA1 (patch-m4_byteorder.m4) = 23f4b0256fc9980d3472e77ab558b0e24a9495b4
SHA1 (patch-tools_umax__pp.c) = debe660184a1380a894e8a5414983f5fdb19cded
diff --git a/graphics/sane-backends/patches/patch-backend_genesys_low.cpp b/graphics/sane-backends/patches/patch-backend_genesys_low.cpp
new file mode 100644
index 00000000000..17271681b85
--- /dev/null
+++ b/graphics/sane-backends/patches/patch-backend_genesys_low.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-backend_genesys_low.cpp,v 1.1 2020/08/16 22:42:09 gutteridge Exp $
+
+Fix big-endian builds. Patch from Gentoo:
+https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49491819885af7f659dafe3a116ada80fbcfe1d7
+
+--- backend/genesys/low.cpp.orig 2020-05-17 11:54:18.000000000 +0000
++++ backend/genesys/low.cpp
+@@ -539,7 +539,7 @@ Image read_unshuffled_image_from_scanner
+ }
+
+ #ifdef WORDS_BIGENDIAN
+- if (depth == 16) {
++ if (session.params.depth == 16) {
+ dev->pipeline.push_node<ImagePipelineNodeSwap16BitEndian>();
+ }
+ #endif