diff --git a/sane-backends.spec b/sane-backends.spec index a3814f4..27a0aa1 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -57,6 +57,8 @@ Patch2: sane-backends-1.0.23-sane-config-multilib.patch Patch3: sane-backends-saned-manpage.patch # several canoscan models did not work due genesys backend rewritten, taken from upstream Patch4: 0001-genesys-Make-sure-calib_reg-are-available-before-wri.patch +# blacklist Samsung C460 for JPEG, #1760916 +Patch5: sane-xerox-mfp-blacklist-C460-for-JPEG.patch URL: http://www.sane-project.org @@ -193,6 +195,7 @@ access image acquisition devices available on the local host. %patch2 -p1 -b .sane-config-multilib %patch3 -p1 -b .saned-manpage %patch4 -p1 -b .genesys-regression +%patch5 -p1 -b .c460-blacklist-for-jpeg %build CFLAGS="%optflags -fno-strict-aliasing" @@ -454,6 +457,7 @@ exit 0 * Thu Oct 17 2019 Zdenek Dohnal - 1.0.28-2 - 1761145, 1761001, 1761051, 1761234 - genesys backend now needs gcc-c++, it is not built otherwise - 1758886 - CanoScan LiDE scanners supported by genesys backend are not detected +- 1760916 - Samsung C460 does not have JPEG support * Mon Sep 30 2019 Zdenek Dohnal - 1.0.28-1 - 1.0.28 diff --git a/sane-xerox-mfp-blacklist-C460-for-JPEG.patch b/sane-xerox-mfp-blacklist-C460-for-JPEG.patch new file mode 100644 index 0000000..401a4a7 --- /dev/null +++ b/sane-xerox-mfp-blacklist-C460-for-JPEG.patch @@ -0,0 +1,12 @@ +diff --git a/backend/xerox_mfp.c b/backend/xerox_mfp.c +index b7fcbee..2cb73ee 100644 +--- a/backend/xerox_mfp.c ++++ b/backend/xerox_mfp.c +@@ -209,6 +209,7 @@ static int isSupportedDevice(struct device __sane_unused__ *dev) + if (dev->compressionTypes & (1 << 6)) { + /* blacklist malfunctioning device(s) */ + if (!strncmp(dev->sane.model, "SCX-4500W", 9) || ++ !strncmp(dev->sane.model, "C460", 4) || + !strncmp(dev->sane.model, "M288x", 5)) + return 0; + return 1;