Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/sane-backends sane-backends: fix big-endian b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/22c1c7e08ffa
branches:  trunk
changeset: 437111:22c1c7e08ffa
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sun Aug 16 22:42:09 2020 +0000

description:
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.)

diffstat:

 graphics/sane-backends/distinfo                              |   3 +-
 graphics/sane-backends/patches/patch-backend_genesys_low.cpp |  16 ++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r d91330c13ed2 -r 22c1c7e08ffa graphics/sane-backends/distinfo
--- a/graphics/sane-backends/distinfo   Sun Aug 16 22:38:55 2020 +0000
+++ b/graphics/sane-backends/distinfo   Sun Aug 16 22:42:09 2020 +0000
@@ -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-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 -r d91330c13ed2 -r 22c1c7e08ffa graphics/sane-backends/patches/patch-backend_genesys_low.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/sane-backends/patches/patch-backend_genesys_low.cpp      Sun Aug 16 22:42:09 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index