python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / drivers / epkowa / firmware_location.patch
blob0f723a4ff9d7344051550f0743b06821c5041123
1 Explanation:
2 in libesci-interpreter-gt-f720.so in
3 libesci_interpreter_gt_f720_342::libesci_interpreter_gt_f720_348 at 0xdf74: the
4 binary blob esfw8b.bin is searched either in /usr/share/esci/ or in
5 $ESCI_FIRMWARE_DIR. But since this library is to be used wia libsane.so in
6 every binary in the system, we can't wrapProgram the relevant executables to
7 set this environment variable. Instead, we patch iscan to set this variable
8 before loading libesci-interpreter-gt-f720.so.
9 --- backend/channel-usb.c.orig 2017-08-14 11:24:27.669582456 +0200
10 +++ backend/channel-usb.c 2017-08-14 11:31:40.509010897 +0200
11 @@ -169,6 +169,10 @@
13 SANE_Status s;
15 + setenv("ESCI_FIRMWARE_DIR", NIX_ESCI_PREFIX, 1);
16 + setenv("ISCAN_FW_DIR", NIX_ESCI_PREFIX, 1);
17 + setenv("ISCAN_FIRMWARE_DIR", NIX_ESCI_PREFIX, 1);
19 s = sanei_usb_open (self->name, &self->fd);
21 if (SANE_STATUS_GOOD == s)