Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257199 - usb_modeswitch - mismatch /etc/udev/91-usb_modeswitch.rules vs. /etc/udev/rules.d/91-usb_modeswitch.rules
Summary: usb_modeswitch - mismatch /etc/udev/91-usb_modeswitch.rules vs. /etc/udev/rul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-01 11:29 UTC by August Hörandl
Modified: 2009-06-27 12:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description August Hörandl 2009-02-01 11:29:44 UTC
the ebuild installs
 /etc/udev/91-usb_modeswitch.rules

but then talks about another file to edit:
 * For automated mode switching via udev, use "lsusb"
 * to find the correct values for your device and modify
 * them in /etc/udev/rules.d/91-usb_modeswitch.rules


Reproducible: Always




usb_modeswitch-0.9.4.ebuild

src_install() checks for >=sys-fs/udev-106 to get the right filename, pkg_postinst() misses this check
Comment 1 Matthias Schwarzott gentoo-dev 2009-02-02 14:23:40 UTC
1. It seems this ebuild does install its udev rules into the wrong directory. They should be in /etc/udev/rules.d, but ebuild does

doins usb_modeswitch.conf

2. It seems common sense, to install udev rules without use-flags.
Even worse is depending on has_version to decide.

3. Why checking on >=udev-106. ATTRS should be supported longer, but I know no exact version number.
If you look at stable udev version, that is udev-124-r1, why not just block <sys-fs/udev-106 (or any other suitable version) and always install the newer file?
Comment 2 Hanno Böck gentoo-dev 2009-06-27 12:22:38 UTC
With the bump to 1.0.2, I've fixed this and removed the check for udev-version -> we don't have any pre 1.0.6 udev version in tree.