Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622656 - sys-apps/usb_modeswitch-2.5.0 version bump request
Summary: sys-apps/usb_modeswitch-2.5.0 version bump request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rafael Martins (RETIRED)
URL: http://www.draisberghof.de/usb_modesw...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-25 01:33 UTC by Alexey Skobkin
Modified: 2018-03-25 20:40 UTC (History)
2 users (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 Alexey Skobkin 2017-06-25 01:33:42 UTC
There is new version of usb_modeswitch since January (and February for data-package) but there is no ebuild in the Portage tree.
New version (and data package) supports many new USB modems and other hardware. It would be nice if it appear in packages.
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2017-07-12 08:40:32 UTC
Please note that /lib/udev/usb_modeswitch is broken on Gentoo since usb_modeswitch-2.4.0 !

Here's what happens:

systemd-udevd[24124]: starting 'usb_modeswitch '/3-2''
systemd-udevd[24109]: 'usb_modeswitch '/3-2''(err) 'basename: missing operand'
systemd-udevd[24109]: 'usb_modeswitch '/3-2''(err) 'Try 'basename --help' for more information.'
systemd-udevd[24109]: 'usb_modeswitch '/3-2''(err) '/lib/udev/usb_modeswitch: line 68: [: =: unary operator expected'
systemd-udevd[24109]: Process 'usb_modeswitch '/3-2'' succeeded.

Reason is that 'readlink /sbin/init' fails because it is not a symlink on Gentoo.

Here's a fix that worksforme [tm]:

zephyr udev # diff -u /lib/udev/usb_modeswitch{-2.5.0,}
--- /lib/udev/usb_modeswitch-2.5.0      2017-07-12 10:34:17.809756612 +0200
+++ /lib/udev/usb_modeswitch    2017-07-12 10:38:03.755741578 +0200
@@ -64,7 +64,7 @@
 fi
 
 PATH=/bin:/sbin:/usr/bin:/usr/sbin
-init_path=`readlink /sbin/init`
+init_path=`readlink /proc/1/exe`
 if [ `basename $init_path` = "systemd" ]; then
        systemctl --no-block start usb_modeswitch@$p2.service
 elif [ -e "/etc/init/usb-modeswitch-upstart.conf" ]; then
zephyr udev #
Comment 2 Larry the Git Cow gentoo-dev 2018-03-25 20:40:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54bc2d02fa53adc994266479764f352543bbec67

commit 54bc2d02fa53adc994266479764f352543bbec67
Author:     Gilles Dartiguelongue <eva@gentoo.org>
AuthorDate: 2018-03-25 17:53:08 +0000
Commit:     Gilles Dartiguelongue <eva@gentoo.org>
CommitDate: 2018-03-25 20:40:27 +0000

    sys-apps/usb_modeswitch: version bump to 2.5.2, bug #622656
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=622656
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-apps/usb_modeswitch/Manifest                   |  2 +
 .../usb_modeswitch/usb_modeswitch-2.5.2.ebuild     | 67 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)