From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#35640: Make USB modems just work on Guix Date: Sat, 25 May 2019 21:42:15 +0200 Message-ID: <20190525194215.egiyrax3f3k7nojp@pelzflorian.localdomain> References: <20190513205720.k2bruoaa5zpdslhu@pelzflorian.localdomain> <20190513210443.y2xs7fsvxwng3zjz@pelzflorian.localdomain> <20190514103555.1b2a6316@scratchpost.org> <20190514205648.nl4s4lwvc4t67gho@pelzflorian.localdomain> <87ef4zvpm7.fsf@gnu.org> <20190522162909.tds5wz7lj6npkgy4@pelzflorian.localdomain> <87ef4nx3s2.fsf@gnu.org> <20190524201210.bzeyua7lv2mamf52@pelzflorian.localdomain> <20190525111856.jfu5ly2p6ynn3rdk@pelzflorian.localdomain> <87lfyupgxm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUcZL-0007TN-EP for bug-guix@gnu.org; Sat, 25 May 2019 15:43:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUcZK-0002Oj-7C for bug-guix@gnu.org; Sat, 25 May 2019 15:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUcZK-0002OZ-2z for bug-guix@gnu.org; Sat, 25 May 2019 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUcZJ-0000RU-VI for bug-guix@gnu.org; Sat, 25 May 2019 15:43:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87lfyupgxm.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35640@debbugs.gnu.org On Sat, May 25, 2019 at 07:44:37PM +0200, Ludovic Courtès wrote: > "pelzflorian (Florian Pelz)" skribis: > > The udev rules file in usb-modeswitch-data has lines like: > > > > ATTR{idVendor}=="03f0", ATTR{idProduct}=="002a", RUN+="usb_modeswitch '/%k'" > > > > Maybe I should substitute these by > > > > RUN+="/gnu/store/…-usb-modeswich-2.5.2/usb_modeswitch '/%k'" > > > > but this would introduce a cyclic dependency between usb-modeswitch > > and usb-modeswitch-data. Therefore this rules file should rather be > > fixed in a future USB_ModeSwitch service type. > > Sounds good. Another option would be to install the udev rule as part > of the ‘usb-modeswitch’ package, which makes more sense and would solve > the problem. But anyway, don’t lose your hair over it. > The udev rules file is shipped with usb-modeswitch-data, so I need to install it from usb-modeswitch-data. > >> + (substitute* "usb_modeswitch_dispatcher" > >> + (("!/usr/bin/tclsh") > >> + (string-append "!" jimtcl "/bin/jimsh")) > > I don’t think it’s needed, is it? > Frankly, I am not actually sure if usb_modeswitch_dispatcher is really needed for the USB_ModeSwitch service type. In much earlier (2010) versions of USB_ModeSwitch () the UDEV rules file referred to usb_modeswitch_dispatcher. It does not do so anymore, instead it apparently uses usb_modeswitch directly. I will ask in the USB_ModeSwitch forums tomorrow if the dispatcher is needed. I will also ask about an option for specifying the config file. usb_modeswitch has one, usb_modeswitch_dispatcher does not have the option. Regards, Florian