From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Getting network-manager-openconnect to work Date: Mon, 16 Sep 2019 18:06:35 +0200 Message-ID: <20190916160635.dzx2ikvzi3kagtrc@pelzflorian.localdomain> References: <87sgp4pj7s.fsf@santanas.co.za> <20190910112120.ezqnrrfffhhjvc2d@pelzflorian.localdomain> <874l1ipnlr.fsf@gnu.org> <20190912053411.bscrrsv6flzy7lgu@pelzflorian.localdomain> <87y2yo5j40.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="rc7ntuurgcx347uj" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <87y2yo5j40.fsf@gnu.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Help guix , Divan Santana , bug-guix@gnu.org List-Id: bug-guix.gnu.org --rc7ntuurgcx347uj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 16, 2019 at 05:57:51PM +0200, Ludovic Court=C3=A8s wrote: > So I guess we first need someone to tell us whether the patch =E2=80=9C= works=E2=80=9D, > as you wrote, right? :-) >=20 > Ludo=E2=80=99. Currently I have built the attached patch, but NetworkManager segfaults when connecting, and I try to debug why. Regards, Florian --rc7ntuurgcx347uj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-network-manager-Enable-openconnect-helper.patch" >From 1efadd4619f397429d5fae024b46cd8100870c42 Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Mon, 16 Sep 2019 15:27:01 +0200 Subject: [PATCH] gnu: network-manager: Enable openconnect helper. * gnu/packages/gnome.scm (network-manager): Add openconnect input. Patch source to use it instead of searching /usr/bin. --- gnu/packages/gnome.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 5dc18b3bb5..a8ba00965d 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5374,6 +5374,13 @@ users.") (("src/devices/tests/test-lldp") " ") (("src/tests/test-route-manager-linux") " ")) #t)) + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (let ((openconnect (assoc-ref inputs "openconnect"))) + (substitute* "clients/common/nm-vpn-helpers.c" + (("\\\"/usr/sbin/openconnect\\\"") + (string-append "\"" openconnect "/sbin/openconnect\""))) + #t))) (add-after 'unpack 'delete-failing-tests (lambda _ ;; FIXME: These four tests fail for unknown reasons. @@ -5436,6 +5443,7 @@ users.") ("libsoup" ,libsoup) ("modem-manager" ,modem-manager) ("newt" ,newt) ;for the 'nmtui' console interface + ("openconnect" ,openconnect) ("polkit" ,polkit) ("ppp" ,ppp) ("readline" ,readline) -- 2.23.0 --rc7ntuurgcx347uj--