Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524534 - net-misc/networkmanager-0.9.8.10-r1 fails to start modemmanager with use OpenRC because systemd support is enabled by "$(systemd_with_unitdir)" always
Summary: net-misc/networkmanager-0.9.8.10-r1 fails to start modemmanager with use Open...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 529440 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-05 18:48 UTC by Konstantin Ivanov
Modified: 2014-11-16 11:29 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info,5.48 KB, text/plain)
2014-10-06 19:16 UTC, Konstantin Ivanov
Details
NetworkManager-0.9.8.8 log (nw-0.9.8.8,13.19 KB, text/plain)
2014-10-06 19:21 UTC, Konstantin Ivanov
Details
NetworkManager-0.9.8.10-r1 log (nw-0.9.8.10,6.39 KB, text/plain)
2014-10-06 19:30 UTC, Konstantin Ivanov
Details
ModemManager init script (ModemManager,453 bytes, text/plain)
2014-10-09 19:07 UTC, Konstantin Ivanov
Details
NetworkManager-0.9.8.10-r1 build.log (build-0.9.8.10-r1,572.93 KB, text/plain)
2014-10-12 11:24 UTC, Konstantin Ivanov
Details
NetworkManager-0.9.10.0 build.log (build-0.9.10.0,832.37 KB, text/plain)
2014-10-12 11:25 UTC, Konstantin Ivanov
Details
networkmanager-0.9.10.0-r1.ebuild (networkmanager-0.9.10.0-r1.ebuild,8.47 KB, text/plain)
2014-10-12 12:03 UTC, Konstantin Ivanov
Details
Build log diff. (build_diff,3.00 KB, text/plain)
2014-10-12 12:04 UTC, Konstantin Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Ivanov 2014-10-05 18:48:29 UTC
>networkmanager-0.9.8.8 not start modemmanager when modem connected on OpenRC

Reproducible: Always

Steps to Reproduce:
1. Install >networkmanager-0.9.8.8
2. Connect 3g modem
3. wait for the display of mobile connections



NetworkManager-0.9.8.8 to connect 3g modem launched modemmanager. When using OpenRC. 

I do not remember exactly, but there was news that using SystemD networkmanager will not run modemmanager, but I use OpenRC And networkmanager-0.9.8.10-r1 on OpenRC such behavior.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-05 21:22:24 UTC
1) Please post your `emerge --info net-misc/networkmanager' output in a comment.
2) Please attach networkmanager's output (log) to this bug report.
Comment 2 Konstantin Ivanov 2014-10-06 05:09:55 UTC
Here is an excerpt from the news on NetworkManager-0.9.8.9: 
"* NetworkManager no longer tries to start ModemManager itself on 
   systemd-using systems "
https://download.gnome.org/sources/NetworkManager/0.9/NetworkManager-0.9.8.9.news

Some distributions that use the system initialization is different from SуstemD already added init script for ModemManager.

I think that this change also affected the work NetworkManager in the case of the use of OpenRC.


But in any case, if I install NetvorkManager-0.9.8.8 everything works fine. When I connect USB 3g modem NetworkManager after a while execute ModemManager and in the mobile connections  list appears the icon to start the connection. 

networkmanager's output (log) will add later.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-06 10:38:41 UTC
Please address comment #1's requests for information.
Comment 4 Konstantin Ivanov 2014-10-06 19:16:52 UTC
Created attachment 386150 [details]
emerge --info
Comment 5 Konstantin Ivanov 2014-10-06 19:21:56 UTC
Created attachment 386152 [details]
NetworkManager-0.9.8.8 log

NM-0.9.8.8 running:
NetworkManager --no-daemon > /tmp/nw-0.9.8.8 2> & 1
, then connected 3g modem, after a while NM launches ModemManager. ModemManager determines the modem and then I activate the modem connection.
Comment 6 Konstantin Ivanov 2014-10-06 19:30:00 UTC
Created attachment 386154 [details]
NetworkManager-0.9.8.10-r1 log

NM-0.9.8.10-r1 running:
NetworkManager --no-daemon> /tmp/nw-0.9.8.10 2> & 1
, then connected 3g modem and that's it. NM does not start ModemManager.
Comment 7 Konstantin Ivanov 2014-10-06 19:36:33 UTC
So I think to start ModemManager need to add init script. If the initialization  system is OpenRC.
What I have in the [url=https://bugs.gentoo.org/show_bug.cgi?id=524534#c2]second[/url] comments.
Comment 8 Pacho Ramos gentoo-dev 2014-10-07 09:12:58 UTC
Please try simply running manually "nm-applet" from a terminal (it was autostarted some time ago, later upstream started to play with the way it was autostarted and...)
Comment 9 Konstantin Ivanov 2014-10-09 17:18:55 UTC
(In reply to Pacho Ramos from comment #8)
> Please try simply running manually "nm-applet" from a terminal (it was
> autostarted some time ago, later upstream started to play with the way it
> was autostarted and...)

I have KDE, so nm-applet is not installed, and installed kde-misc/networkmanagement-0.9.0.11.
Comment 10 Konstantin Ivanov 2014-10-09 18:35:05 UTC
Here are themes on the forum that describe exactly the same problem: 
http://forums.gentoo.org/viewtopic-t-998610.html
http://forums.gentoo.org/viewtopic-p-7611012.html

I think these themes can be considered as a confirmation of the problem.
Comment 11 Konstantin Ivanov 2014-10-09 19:07:54 UTC
Created attachment 386320 [details]
ModemManager init script

A simple init script to start ModemManager.
Comment 12 Pacho Ramos gentoo-dev 2014-10-11 12:12:10 UTC
Please provide the full networkmanager build.log. Looks like you are building it with USE=-systemd but, for some reason, it keeps not trying to start ModemManager even if it should per:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-0-9-8&id=86b8b602942038a370914006e61af64ab15ee0b8
https://bugzilla.gnome.org/show_bug.cgi?id=703040

Also would be interesting to test with 0.9.10.0 :|
Comment 13 Konstantin Ivanov 2014-10-12 11:24:14 UTC
Created attachment 386500 [details]
NetworkManager-0.9.8.10-r1 build.log
Comment 14 Konstantin Ivanov 2014-10-12 11:25:01 UTC
Created attachment 386502 [details]
NetworkManager-0.9.10.0 build.log
Comment 15 Konstantin Ivanov 2014-10-12 11:28:40 UTC
(In reply to Pacho Ramos from comment #12)
> Please provide the full networkmanager build.log. Looks like you are
> building it with USE=-systemd but, for some reason, it keeps not trying to
> start ModemManager even if it should per:
> http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-0-9-
> 8&id=86b8b602942038a370914006e61af64ab15ee0b8
> https://bugzilla.gnome.org/show_bug.cgi?id=703040
> 
> Also would be interesting to test with 0.9.10.0 :|

When using NM-0.9.10.0 also present this problem.
Comment 16 Konstantin Ivanov 2014-10-12 12:03:14 UTC
Created attachment 386504 [details]
networkmanager-0.9.10.0-r1.ebuild

If you make changes to the ebuild and remove specifying directory with units of systemd, ie
"$(systemd_with_unitdir)"

Then at the configuration stage will not have the option "--with-systemdsystemunitdir=/usr/lib/systemd/system".

In this case, NetworkManager will run ModemManager immediately after its start. I.e. ModemManager will run always and not only when connecting a 3g modem.
Comment 17 Konstantin Ivanov 2014-10-12 12:04:18 UTC
Created attachment 386506 [details]
Build log diff.

Here is a comparison of logs before and after the changes in the ebuild.
Comment 18 Pacho Ramos gentoo-dev 2014-10-13 10:51:39 UTC
Good catch
Comment 19 Pacho Ramos gentoo-dev 2014-10-13 20:49:47 UTC
+*networkmanager-0.9.10.0-r1 (13 Oct 2014)
+
+  13 Oct 2014; Pacho Ramos <pacho@gentoo.org>
+  +files/networkmanager-0.9.10.0-arpingpath.patch,
+  +networkmanager-0.9.10.0-r1.ebuild:
+  Ifnet plugin is now disabled because of it being unattended and unmaintained
+  for a long time, leading to some unfixed bugs and new problems appearing
+  (#443596, #458274, #493370, #498372, #523700). If some day somebody volunteers
+  for fixing/maintaining that plugin and forwarding all that fixes to upstream
+  it could be re-enabled of course. Append configure option regarding systemd
+  unit files install path only when systemd support is enabled to prevent
+  HAVE_SYSTEMD to be true (#524534 by Konstantin Ivanov). Ensure arping is found
+  (#523632 by Kobboi).
+
Comment 20 Pacho Ramos gentoo-dev 2014-11-16 11:29:43 UTC
*** Bug 529440 has been marked as a duplicate of this bug. ***