From 0814708701b2729c16febba4e29d84bbda735cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 30 Mar 2020 23:03:34 +0200 Subject: Fix FTBFS on big endian systems --- debian/changelog | 2 ++ debian/patches/0160-big_endian.patch | 13 +++++++++++++ debian/patches/series | 1 + 3 files changed, 16 insertions(+) create mode 100644 debian/patches/0160-big_endian.patch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 2655a74..e30b687 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ sane-backends (1.0.29-1~experimental2) UNRELEASED; urgency=medium - Remove 4 tests failed tests on i386. * New patches/0155-hurd_PATH_MAX.patch: - Fix missing PATH_MAX on hurd-i386. + New patches/0160-big_endian.patch: + - Fix FTBFS on big endian systems. -- Jörg Frings-Fürst Mon, 30 Mar 2020 21:32:22 +0200 diff --git a/debian/patches/0160-big_endian.patch b/debian/patches/0160-big_endian.patch new file mode 100644 index 0000000..5c8a2ff --- /dev/null +++ b/debian/patches/0160-big_endian.patch @@ -0,0 +1,13 @@ +Index: trunk/backend/genesys/low.cpp +=================================================================== +--- trunk.orig/backend/genesys/low.cpp ++++ trunk/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(); + } + #endif diff --git a/debian/patches/series b/debian/patches/series index fec477b..75a0ddc 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -11,3 +11,4 @@ 0725-fix_link_60-libsane_rule.patch 0150-i386-test.patch 0155-hurd_PATH_MAX.patch +0160-big_endian.patch -- cgit v1.2.3