Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860279 - media-gfx/iscan-data: make-policy-file: warning: cannot find udev policy template in default locations
Summary: media-gfx/iscan-data: make-policy-file: warning: cannot find udev policy temp...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-23 17:20 UTC by Marco Sirabella
Modified: 2024-03-25 10:45 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=media-gfx/iscan-data-1.39.0.1::gentoo' (iscan-data.info,7.35 KB, text/plain)
2022-07-23 17:20 UTC, Marco Sirabella
Details
iscan-data.build.log (iscan-data.build.log.xz,1.71 KB, text/plain)
2022-07-23 17:23 UTC, Marco Sirabella
Details
iscan-data.build.log.xz (iscan-data.build.log.xz,1.71 KB, application/x-xz)
2022-07-23 17:23 UTC, Marco Sirabella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Sirabella 2022-07-23 17:20:33 UTC
```
make-policy-file: warning: cannot find udev policy template in default locations
make-policy-file: warning: use --template option to specify a file
 * ERROR: media-gfx/iscan-data-1.39.0.1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_install
 *   environment, line 1179:  Called die
 * The specific snippet of code:
 *           "${D}/usr/$(get_libdir)/iscan-data/make-policy-file" --force --mode udev -d "${D}/usr/share/iscan-data/epkowa.desc" -o "${D}${rulesdir}/99-iscan.rules" || die;
```
Comment 1 Marco Sirabella 2022-07-23 17:20:57 UTC
Created attachment 793511 [details]
emerge --info '=media-gfx/iscan-data-1.39.0.1::gentoo'
Comment 2 Marco Sirabella 2022-07-23 17:23:01 UTC
Created attachment 793514 [details]
iscan-data.build.log
Comment 3 Marco Sirabella 2022-07-23 17:23:58 UTC
Created attachment 793517 [details]
iscan-data.build.log.xz
Comment 4 Jared B. 2022-10-17 01:09:54 UTC
This issue is related to sane-backends 1.1.1.  It seems they renamed and drastically changed the udev rules provided with that version and it can't find the new files.  Unfortunately, even after modifying make-policy-file to find the new file (/lib/udev/rules.d/65-sane-backends.rules), it fails later because it's not parsing the file directly.  Tried tracing to find the error, and can see it's getting hung up reading the header/footer/stanza, but can't figure out what the sed commands are even trying to do to troubleshoot and fix it myself.

Unfortunately, no newer iscan-data package.  Couple workarounds:

1. Downgrade to sane-backends 1.0.32.  I confirmed this still works for new iscan-data installs.  Unfortunately it's already been purged from portage, but can be found here: https://github.com/gentoo/gentoo/blob/5b29ea90441b509844072c85bf34cc0b2d95803f/media-gfx/sane-backends/sane-backends-1.0.32.ebuild

2. Depending on your scanner, you can try switching to the new epsonscanner2 package.  This seems to replace iscan, and bundles the plugins differently as well.  Can find at http://support.epson.net/linux/en/epsonscan2.php, but also available the slonko overlay (https://github.com/gentoo-mirror/slonko).  These work, with a couple caveats:

a. I had to reboot after installing in order to get any software to communicate with my V600.  Even then it'd segfault on the first attempt, then work on the second and later attempts.  Observed that pattern twice, so don't think it was a fluke.

b. This seems to work with any "normal" sane frontends as well as epsonscan2 itself, but VueScan refuses to see the new plugin.  Not something most people will care about, but wanted to provided a heads up just in case.  I just sent them a request to add support for plugins installed via epsonscan2.

With new new iscan releases since 2019, I'd guess Epson's prioritizing epsonscan2 at this point.  Would probably be best long term to get that in portage.
Comment 5 Etienne Lorriaux 2022-10-17 20:03:40 UTC
Hello,

confirming the bug. Had to downgrade sane-backends to be able to install iscan-data.
Comment 6 Tanktalus 2023-11-04 14:00:42 UTC
1.1.1 is the oldest version available in portage for sane-backends, there's nothing to downgrade to.  Can we get the older version put back in until this is fixed?