[GENESYS] sane-backends-1.0.29 fails to build on s390x arch
Hi,
I was about to build new sane-backends for Fedora, but I encountered the issue with undeclared variable 'depth' in function 'read_unshuffled_image_from_scanner' on s390x arch:
if ((dev->model->flags & GENESYS_FLAG_16BIT_DATA_INVERTED) && session.params.depth == 16) {
dev->pipeline.push_node<ImagePipelineNodeSwap16BitEndian>();
}
#ifdef WORDS_BIGENDIAN
if (depth == 16) {
dev->pipeline.push_node<ImagePipelineNodeSwap16BitEndian>();
}
#endif
if (dev->model->is_cis && session.params.channels == 3) {
dev->pipeline.push_node<ImagePipelineNodeMergeMonoLines>(dev->model->line_mode_color_order);
}
Failed Koji scratch build here
I would say the correct variable is session.params.depth, but I do not have any s390x machine to which I can connect my scanner which uses genesys backend to test.