Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
networkmanager dependency issue [work around found]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1725
Location: San Jose, CA

PostPosted: Mon Mar 23, 2020 3:31 pm    Post subject: networkmanager dependency issue [work around found] Reply with quote

Hi VPN died on me after the last update. I've isolated the issue by looking at the syslog:

Code:
Mar 23 08:23:37 fire NetworkManager[1716]: <info>  [1584977017.3292] vpn-connection[0x5615f9b640b0,036e057c-bc24-41f2-b70d-1cd698f60777,"WTec-SJ",0]: VPN plugin: state changed: starting (3)
Mar 23 08:23:37 fire pppd[13401]: Plugin /usr/lib64/pppd/2.4.7/nm-l2tp-pppd-plugin.so is for pppd version 2.4.7, this is 2.4.8



I can see that pppd plugin is out of date and needs to be rebuilt. But the question is: why didn't pppd plugin rebuild automagically when I updated pppd?

Is there a way to inspire emerge to fix this?

Thanks.
_________________
Some day there will only be free software.


Last edited by RayDude on Mon Mar 23, 2020 3:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1725
Location: San Jose, CA

PostPosted: Mon Mar 23, 2020 3:50 pm    Post subject: Reply with quote

The issue is that emerge is not rebuilding any of the plugins that networkmanager requires.

These are:

Code:
*  net-vpn/networkmanager-l2tp
      Latest version available: 1.8.0
      Latest version installed: 1.8.0
      Size of files: 426 KiB
      Homepage:      https://github.com/nm-l2tp/network-manager-l2tp
      Description:   NetworkManager L2TP plugin
      License:       GPL-2

*  net-vpn/networkmanager-pptp
      Latest version available: 1.2.8-r1
      Latest version installed: [ Not Installed ]
      Size of files: 393 KiB
      Homepage:      https://wiki.gnome.org/Projects/NetworkManager/VPN
      Description:   NetworkManager PPTP VPN plugin
      License:       GPL-2+

*  net-vpn/networkmanager-sstp
      Latest version available: 1.2.0
      Latest version installed: 1.2.0
      Size of files: 431 KiB
      Homepage:      https://sourceforge.net/projects/sstp-client/
      Description:   Client for the proprietary Microsoft Secure Socket Tunneling Protocol(SSTP)
      License:       GPL-2

*  net-vpn/networkmanager-vpnc
      Latest version available: 1.2.6-r1
      Latest version installed: 1.2.6-r1
      Size of files: 408 KiB
      Homepage:      https://wiki.gnome.org/Projects/NetworkManager
      Description:   NetworkManager VPNC plugin
      License:       GPL-2+


There should be a way to set the dependencies to handle this automagically, right?

I fixed it by emerging those packages.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16022

PostPosted: Tue Mar 24, 2020 12:56 am    Post subject: Reply with quote

Subslot dependencies handle that. Looking at the ebuild, it looks like those are already present and, by my reading, correct. How did you invoke the emerge that updated net-dialup/ppp? Do you have anything set in EMERGE_DEFAULT_OPTS?
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1725
Location: San Jose, CA

PostPosted: Tue Mar 24, 2020 7:05 am    Post subject: Reply with quote

Hi Hu,

[added] I'm running this version of portage, in case it matters:

Code:
equery list portage
 * Searching for portage ...
[IP-] [  ] sys-apps/portage-2.3.89-r1:0


Here's the command from /var/log/emerge.log:

Code:
emerge --newuse --update --deep --with-bdeps=y --quiet @world


Here's the entry in the emerge.log for the package update from 2.4.7-r7 to 2.4.8:

Code:
1584762797:  >>> emerge (52 of 270) net-dialup/ppp-2.4.8 to /
1584762797:  === (52 of 270) Cleaning (net-dialup/ppp-2.4.8::/usr/portage/net-dialup/ppp/ppp-2.4.8.ebuild)
1584762797:  === (52 of 270) Compiling/Merging (net-dialup/ppp-2.4.8::/usr/portage/net-dialup/ppp/ppp-2.4>
1584762807:  === (52 of 270) Merging (net-dialup/ppp-2.4.8::/usr/portage/net-dialup/ppp/ppp-2.4.8.ebuild)
1584762809:  >>> AUTOCLEAN: net-dialup/ppp:0
1584762809:  === Unmerging... (net-dialup/ppp-2.4.7-r7)
1584762811:  >>> unmerge success: net-dialup/ppp-2.4.7-r7
1584762814:  === (52 of 270) Post-Build Cleaning (net-dialup/ppp-2.4.8::/usr/portage/net-dialup/ppp/ppp-2>
1584762814:  ::: completed emerge (52 of 270) net-dialup/ppp-2.4.8 to /


218 packages later, l2tp did not build and so was still linked with the old version of ppp.

I greped recursively in /etc for EMERGE_DEFAULT_OPTS, but didn't find anything. I have no knowledge of how that works, but that doesn't mean I didn't screw it up somehow.

Here's the emerge.log of the packages that weren't rebuilt during the DNuq emerge:

Code:
1584978087: Started emerge on: Mar 23, 2020 08:41:27
1584978087:  *** emerge --with-bdeps=y --quiet networkmanager-l2tp networkmanager-pptp networkmanager-sst>
1584978092:  >>> emerge (1 of 5) net-dialup/pptpclient-1.10.0 to /
1584978093:  === (1 of 5) Cleaning (net-dialup/pptpclient-1.10.0::/usr/portage/net-dialup/pptpclient/pptp>
1584978093:  === (1 of 5) Compiling/Merging (net-dialup/pptpclient-1.10.0::/usr/portage/net-dialup/pptpcl>
1584978097:  === (1 of 5) Merging (net-dialup/pptpclient-1.10.0::/usr/portage/net-dialup/pptpclient/pptpc>
1584978099:  >>> AUTOCLEAN: net-dialup/pptpclient:0
1584978101:  === (1 of 5) Post-Build Cleaning (net-dialup/pptpclient-1.10.0::/usr/portage/net-dialup/pptp>
1584978101:  ::: completed emerge (1 of 5) net-dialup/pptpclient-1.10.0 to /
1584978101:  >>> emerge (2 of 5) net-vpn/networkmanager-l2tp-1.8.0 to /
1584978101:  === (2 of 5) Cleaning (net-vpn/networkmanager-l2tp-1.8.0::/usr/portage/net-vpn/networkmanage>
1584978101:  === (2 of 5) Compiling/Merging (net-vpn/networkmanager-l2tp-1.8.0::/usr/portage/net-vpn/netw>
1584978120:  === (2 of 5) Merging (net-vpn/networkmanager-l2tp-1.8.0::/usr/portage/net-vpn/networkmanager>
1584978123:  >>> AUTOCLEAN: net-vpn/networkmanager-l2tp:0
1584978123:  === Unmerging... (net-vpn/networkmanager-l2tp-1.8.0)
1584978125:  >>> unmerge success: net-vpn/networkmanager-l2tp-1.8.0
1584978127:  === (2 of 5) Post-Build Cleaning (net-vpn/networkmanager-l2tp-1.8.0::/usr/portage/net-vpn/ne>
1584978127:  ::: completed emerge (2 of 5) net-vpn/networkmanager-l2tp-1.8.0 to /
1584978127:  >>> emerge (3 of 5) net-vpn/networkmanager-pptp-1.2.8-r1 to /
1584978127:  === (3 of 5) Cleaning (net-vpn/networkmanager-pptp-1.2.8-r1::/usr/portage/net-vpn/networkman>
1584978127:  === (3 of 5) Compiling/Merging (net-vpn/networkmanager-pptp-1.2.8-r1::/usr/portage/net-vpn/n>
1584978138:  === (3 of 5) Merging (net-vpn/networkmanager-pptp-1.2.8-r1::/usr/portage/net-vpn/networkmana>
1584978141:  >>> AUTOCLEAN: net-vpn/networkmanager-pptp:0
1584978143:  === (3 of 5) Updating world file (net-vpn/networkmanager-pptp-1.2.8-r1)
1584978143:  === (3 of 5) Post-Build Cleaning (net-vpn/networkmanager-pptp-1.2.8-r1::/usr/portage/net-vpn>
1584978143:  ::: completed emerge (3 of 5) net-vpn/networkmanager-pptp-1.2.8-r1 to /
1584978143:  >>> emerge (4 of 5) net-vpn/networkmanager-sstp-1.2.0 to /
1584978143:  === (4 of 5) Cleaning (net-vpn/networkmanager-sstp-1.2.0::/usr/portage/net-vpn/networkmanage>
1584978143:  === (4 of 5) Compiling/Merging (net-vpn/networkmanager-sstp-1.2.0::/usr/portage/net-vpn/netw>
1584978154:  === (4 of 5) Merging (net-vpn/networkmanager-sstp-1.2.0::/usr/portage/net-vpn/networkmanager>
1584978156:  >>> AUTOCLEAN: net-vpn/networkmanager-sstp:0
1584978156:  === Unmerging... (net-vpn/networkmanager-sstp-1.2.0)
1584978158:  >>> unmerge success: net-vpn/networkmanager-sstp-1.2.0
1584978160:  === (4 of 5) Post-Build Cleaning (net-vpn/networkmanager-sstp-1.2.0::/usr/portage/net-vpn/ne>
1584978160:  ::: completed emerge (4 of 5) net-vpn/networkmanager-sstp-1.2.0 to /
1584978160:  >>> emerge (5 of 5) net-vpn/networkmanager-vpnc-1.2.6-r1 to /
1584978160:  === (5 of 5) Cleaning (net-vpn/networkmanager-vpnc-1.2.6-r1::/usr/portage/net-vpn/networkman>
1584978160:  === (5 of 5) Compiling/Merging (net-vpn/networkmanager-vpnc-1.2.6-r1::/usr/portage/net-vpn/n>
1584978173:  === (5 of 5) Merging (net-vpn/networkmanager-vpnc-1.2.6-r1::/usr/portage/net-vpn/networkmana>
1584978175:  >>> AUTOCLEAN: net-vpn/networkmanager-vpnc:0
1584978175:  === Unmerging... (net-vpn/networkmanager-vpnc-1.2.6-r1)
1584978177:  >>> unmerge success: net-vpn/networkmanager-vpnc-1.2.6-r1
1584978179:  === (5 of 5) Post-Build Cleaning (net-vpn/networkmanager-vpnc-1.2.6-r1::/usr/portage/net-vpn>
1584978179:  ::: completed emerge (5 of 5) net-vpn/networkmanager-vpnc-1.2.6-r1 to /
1584978179:  *** Finished. Cleaning up...
1584978181:  *** exiting successfully.
1584978181:  *** terminating.


I happen to have the screen output of that emerge and it is notable that only net-vpn/networkmanager-pptp was added to the world file, so that means that the dependencies should have worked for l2tp, right?

What else can I look at for you?
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16022

PostPosted: Wed Mar 25, 2020 2:09 am    Post subject: Reply with quote

I don't see anything wrong there, and I don't know where else to have you look. If you are willing to debug this, you could try downgrading just the affected packages, then asking Portage to update just net-dialup/ppp and check whether it again leaves you with broken files. If it does, then you need to escalate this to someone who can debug the dependency logic.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum