GNOME Bugzilla – Bug 773482
[RFE] split PPP support into a separate package
Last modified: 2016-12-06 14:09:09 UTC
currently, NetworkManager package require ppp (even if the user doesn't use it). This should be split out in a separate plugin. Note related bug 559134 which asks for improving ppp support in general. This is about allowing to drop the ppp dependency from core pacakge.
How about branch bg/ppp-split-bgo773482? Alternatively we could split the whole ppp-manager to a new NM plugin and let it register some ppp-manager ops into the core when it is loaded. But the complication of having a new generic plugin infrastructure probably is not worth the gain - the NetworkManager-ppp Fedora package would be only ~30KiB saved from the main package. Proof of concept in branch bg/ppp-manager-split-bgo773482.
+Obsoletes: NetworkManager < 1.6.0 could we have a %global obsoletes_device_plugins 1:0.9.9.95-1 +%global obsoletes_ppp_plugin 1.6.0 I think Obsoletes also needs a Provides, no? Lubomir? >> core: move plugin path reading function to nm-core-utils.c I anyway like this commit. Should be done. did you investigate whether it's possible to load the ppp-manager plugin on demand? Then it would make much more sense. 30KiB is worth it, if it is saved by all users who don't use PPP. It is less worth it, if it only affects all users who didn't install NM-ppp package.
(In reply to Thomas Haller from comment #2) > +Obsoletes: NetworkManager < 1.6.0 > > could we have a > > %global obsoletes_device_plugins 1:0.9.9.95-1 > +%global obsoletes_ppp_plugin 1.6.0 Ok (changed to 1.5.x). > I think Obsoletes also needs a Provides, no? Lubomir? I have no idea. > >> core: move plugin path reading function to nm-core-utils.c > > I anyway like this commit. Should be done. > > did you investigate whether it's possible to load the ppp-manager plugin on > demand? Then it would make much more sense. > > 30KiB is worth it, if it is saved by all users who don't use PPP. It is less > worth it, if it only affects all users who didn't install NM-ppp package. Updated branch bg/ppp-manager-split-bgo773482 to do demand loading of the plugin.
pushed some fixups, the latest one is a larger change. What do you say? I like the branch. Yeah, it saves only 16kb in NetworkManager binary (although libnm-ppp-plugin.so is 44K). Still, I think it makes sense because many uses of NM do not involve actually creating a NMPPPManager instance.
(In reply to Thomas Haller from comment #4) > pushed some fixups, the latest one is a larger change. > > What do you say? LGTM. Since the Makefile and ppp-manager path changed in the meanwhile on master, I have squashed all the fixups, rebased and pushed everything to branch bg/ppp-manager-split-bgo773482-squashed.
still lgtm
Merged: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=d7c48077378f9028ef777fc00b62a39506a0fcf8