sys-apps/usb_modeswitch: udev scripts need RW temporary directory
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sun, 8 Jan 2017 22:47:56 +0000 (23:47 +0100)
committerRobin H. Johnson <robbat2@gentoo.org>
Fri, 3 Feb 2017 21:47:32 +0000 (13:47 -0800)
commit2e2ceb709324edec7baf64370ba3d3070e8d43f2
tree277ce2efb53968b86cc181efc478e1f2a34925a8
parent66801d7fecf84023164d5c596c80eaa4fc6f73b2
sys-apps/usb_modeswitch: udev scripts need RW temporary directory

/lib/udev/usb_modeswitch script and usb_modeswitch_dispatcher Tcl script
that it calls both need a writable temporary directory which is a
problematic requirement for example if usb_modeswitch is triggered by a
module loaded during system startup.
Fortunately, /run is available RW very early at boot so let's redirect them
there instead.

Fixes a case where system startup with an USB modem plugged in would often
result in this modem not being switched correctly if USB host controller
modules are loaded via the "modules" service.

Gentoo-Bug: https://bugs.gentoo.org/565262
Fixes: https://github.com/gentoo/gentoo/pull/3389
Package-Manager: Portage-2.3.3, Repoman-2.3.1
(cherry picked from commit 1cede4c86a4e691cd51f82aad27c2a4e543cacdd)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
sys-apps/usb_modeswitch/files/usb_modeswitch.sh-tmpdir.patch [new file with mode: 0644]
sys-apps/usb_modeswitch/usb_modeswitch-2.4.0-r1.ebuild [moved from sys-apps/usb_modeswitch/usb_modeswitch-2.4.0.ebuild with 94% similarity]