From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Haller Subject: Re: NetworkManager doesn't "Connect automatically" Date: Mon, 19 Dec 2016 12:45:11 +0100 Message-ID: <1482147911.2540.8.camel@redhat.com> References: <87shpsuxsu.fsf@gmail.com> <1481639851.2533.4.camel@redhat.com> <87a8by97gn.fsf@gmail.com> <1481749686.3423.19.camel@redhat.com> <87r356hojb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0380353302132969251==" Return-path: In-Reply-To: <87r356hojb.fsf@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: networkmanager-list-bounces@gnome.org Sender: "networkmanager-list" To: Chris Marusich Cc: guix-devel@gnu.org, rennes@openmailbox.org, Ludovic =?ISO-8859-1?Q?Court=E8s?= , networkmanager-list@gnome.org List-Id: guix-devel.gnu.org --===============0380353302132969251== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-sr7T786SARS06sDJF04a" --=-sr7T786SARS06sDJF04a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2016-12-17 at 01:51 -0800, Chris Marusich wrote: > Thomas Haller writes: >=20 > > On Wed, 2016-12-14 at 01:38 -0800, Chris Marusich wrote: > > > Hi Thomas, > > >=20 > > > Thank you for the quick response! > > >=20 > > > Thomas Haller writes: > > >=20 > > > > Did you build NetworkManager yourself? Is session-tracking > > > > properly > > > > enabled to use systemd-logind or consolekit. > > >=20 > > > Yes, I'm building it from source [1].=C2=A0=C2=A0It looks like we mig= ht > > > need to > > > adjust the way we build it to enable session-tracking, like > > > you've > > > suggested.=C2=A0=C2=A0Am I correct in understanding that I should onl= y need > > > to > > > pass the option "--with-systemd-logind=3Dyes" to the configure > > > script > > > to > > > enable session tracking via systemd-logind?=C2=A0=C2=A0Is anything el= se > > > required? > >=20 > > Hi, > >=20 > > No, that should be enough. > >=20 > > Possibly it was already enabled before, detected automatically? > >=20 > > Thomas >=20 > OK.=C2=A0=C2=A0Thank you for confirming my understanding. >=20 > In GuixSD, we actually use elogind [1] instead of systemd for session > tracking.=C2=A0=C2=A0This requires us to patch the NetworkManager source = to use > elogind instead of systemd libraries.=C2=A0=C2=A0For example, we do this = sort > of > patching successfully when packaging polkit [2]. >=20 > I tried the same thing with NetworkManager [3], but it didn't quite > work > out.=C2=A0=C2=A0There are a lot of references to systemd in NetworkManage= r, and > I > think I'm just not familiar enough with NetworkManager, systemd, or > elogind to know for sure what needs to be patched to trick > NetworkManager into using elogind instead of systemd for session > management.=C2=A0=C2=A0For now, we've committed the package definition as= -is, > but > until somebody figures out exactly how to patch it to work with > elogind, > users must use the previously mentioned work-around (make the > connection > available to all users) if they want to enable automatic connection. Hi, There are very little dependencies of NetworkManager to systemd. Note that the src/systemd directory contains a self-contained copy of systemd sources. That is, you don't need an systemd dependency for those. Regarding session management, you'd only have to patch https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/nm-sess= ion-monitor.c?id=3Dfa15543179aa8ca8e082267121e7df4a131bf642 That seems doable. Thomas --=-sr7T786SARS06sDJF04a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJYV8hHAAoJECnCNm5N/FcoQaAQAL9ZNFKuCZDmZBBQwD2hZmZI MNZ/nMTR2QtRQfKuIHlfTgdVIy3sMdIkC3cdZ9ZaiqGarjpGgTfCRHEBBp7TyvkH zKJU6b1gKDWPd/8Q8YCChcvtdVAOxk3xy1ryMLQKT8FgDrrVpF5vp/pKrRRIXwuk 9PjNfsdP2aIxBnElJlQE9FaA0hH3KjZ3QF1oNiBiFxKqCw22ttWEut01/VHF2dhl 9qg+7ixE6WUO/SJltQDmdraD82VkCCOz9AEBG0QqbXYrUj8KNRxDAPOzEuphi3T9 +7zlp0OFV/tb8bsT4ThGfrqF3yp0Efvy8dmak8Ra7w2xH/c3HfsM1FCZMuBYDMuF t4F0NV8dUqjtk17ebhkXZn+1yYQEA5Rv6+c6YN7UIIXpOj4XuySHJuMjpL3ClSIf /Tlr6ho3YbRmjRd3oY+ELugcvdEYEVFZDDVmtYDk0ayXfXnmnq2PRKIM4AGJuKXx 04h5Wd71SurYQgpYTel2ncwtp3zw1EVXxJHq+mN317NMAdghXMU6xv1jkuAz07cu pkDXgBKaGlh+35suqjye8J7rFqxfjIc0RAipfIDB6CFMPq834mv2qnmO5/5BRlzH naQyxhYn8e+V9Wk5Nu/0VKzKUEf/1x6kVf512hI7xy89g7ZtOvf/uuE5zV8p5uav +WQH9LhN21dL2vTmSaXL =aAZB -----END PGP SIGNATURE----- --=-sr7T786SARS06sDJF04a-- --===============0380353302132969251== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list --===============0380353302132969251==--