pkgsrc-Users archive

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

Patch for graphics/sane-backends on sparc64



Hi,

graphics/sane-backends fails to compile
(pkgsrc-2020Q2/NetBSD9/sparc64) with this error:

genesys/low.cpp:542:9: error: 'depth' was not declared in this scope
     if (depth == 16) {
         ^~~~~
gmake[2]: *** [Makefile:6323: genesys/libgenesys_la-low.lo] Error 1
gmake[2]: Leaving directory
'/usr/pkgsrc/graphics/sane-backends/work/sane-backends-1.0.30/backend'
gmake[1]: *** [Makefile:3275: all] Error 2


I found a patch here:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49491819885af7f659dafe3a116ada80fbcfe1d7

--- /dev/null
+++ b/media-gfx/sane-backends/files/sane-backends-1.0.30-bigendian-depth.patch
@@ -0,0 +1,14 @@
+Correct overlooked bigendian case. This has been fixed upstream in a different
+way since the 1.0.30 release.
+
+--- a/backend/genesys/low.cpp
++++ b/backend/genesys/low.cpp
+@@ -539,7 +539,7 @@
+ }
+
+ #ifdef WORDS_BIGENDIAN
+- if (depth == 16) {
++ if (session.params.depth == 16) {
+ dev->pipeline.push_node<ImagePipelineNodeSwap16BitEndian>();
+ }
+ #endif


Regards,
Connor


Home | Main Index | Thread Index | Old Index