GNU bug report logs - #26386
[PATCH 0/1] Update the connection script of openconnect (and vpnc?)

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 6 Apr 2017 19:11:02 UTC

Severity: normal

Tags: patch

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26386 in the body.
You can then email your comments to 26386 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#26386; Package guix-patches. (Thu, 06 Apr 2017 19:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 06 Apr 2017 19:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: guix-patches <at> gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: [PATCH 0/1] Update the connection script of openconnect (and vpnc?)
Date: Thu,  6 Apr 2017 21:09:53 +0200
Hello,

(Cc’ing Tobias who touched openconnect recently.)

With openconnect I was experiencing the problem described at
<http://blog.nowherelan.com/2011/10/10/vpnc-on-ubuntu-oneiric-error-either-to-is-duplicate-or-ipid-is-a-garbage/>.
Namely, openconnect eventually fails with:

  Error: either "to" is duplicate, or "ipid" is a garbage.

This patch updates openconnect to use a newer vpnc script, as advised
on the Web page above.  It fixes the problem for me.

If someone reading this uses openconnect, could you check that it also
works for you?

Also, I wonder if we should be fixing vpnc rather than openconnect.

Thoughts?

Ludo’.

Ludovic Courtès (1):
  gnu: openconnect: Use a newer vpnc script.

 gnu/packages/vpn.scm | 32 ++++++++++++++++++++++++++++----
 1 file changed, 28 insertions(+), 4 deletions(-)

-- 
2.12.2





Information forwarded to guix-patches <at> gnu.org:
bug#26386; Package guix-patches. (Thu, 06 Apr 2017 19:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 26386 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 26386 <at> debbugs.gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: [PATCH 1/1] gnu: openconnect: Use a newer vpnc script.
Date: Thu,  6 Apr 2017 21:13:12 +0200
* gnu/packages/vpn.scm (openconnect)[native-inputs]: Add "vpnc-script".
[arguments]: Add 'copy-vpnc-script' phase.
---
 gnu/packages/vpn.scm | 32 ++++++++++++++++++++++++++++----
 1 file changed, 28 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index efb46f73d..a46c1e25f 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013 Andreas Enge <andreas <at> enge.fr>
-;;; Copyright © 2013, 2016 Ludovic Courtès <ludo <at> gnu.org>
+;;; Copyright © 2013, 2016, 2017 Ludovic Courtès <ludo <at> gnu.org>
 ;;; Copyright © 2014 Eric Bavier <bavier <at> member.fsf.org>
 ;;; Copyright © 2015 Jeff Mickey <j <at> codemac.net>
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim <at> flashner.co.il>
@@ -135,12 +135,36 @@ Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
       ("zlib" ,zlib)))
    (native-inputs
     `(("gettext" ,gettext-minimal)
-      ("pkg-config" ,pkg-config)))
+      ("pkg-config" ,pkg-config)
+      ("vpnc-script" ,(origin
+                        (method url-fetch)
+                        (uri
+                         "http://git.infradead.org/users/dwmw2/vpnc-scripts.git/\
+blob_plain/6f87b0fe7b20d802a0747cc310217920047d58d3:/vpnc-script")
+                        (sha256
+                         (base32
+                          "0v22x0bjfdawma1dwnjczz3bqifh6r8ys0lv5nhnwsghs1imk7hn"))))))
    (arguments
     `(#:configure-flags
       `(,(string-append "--with-vpnc-script="
-                        (assoc-ref %build-inputs "vpnc")
-                        "/etc/vpnc/vpnc-script"))))
+                        (string-append %output "/etc/vpnc/vpnc-script")))
+      #:phases (modify-phases %standard-phases
+                 (add-after 'unpack 'copy-vpnc-script
+                   (lambda* (#:key inputs outputs #:allow-other-keys)
+                     ;; Override the script that comes with vpnc to work
+                     ;; around vpnc error:
+                     ;;
+                     ;;   Error: either "to" is duplicate, or "ipid" is a garbage.
+                     ;;
+                     ;; See <http://blog.nowherelan.com/2011/10/10/vpnc-on-ubuntu-oneiric-error-either-to-is-duplicate-or-ipid-is-a-garbage/>.
+                     (let* ((out    (assoc-ref outputs "out"))
+                            (script (string-append out
+                                                   "/etc/vpnc/vpnc-script")))
+                       (mkdir-p (dirname script))
+                       (copy-file (assoc-ref inputs "vpnc-script")
+                                  script)
+                       (chmod script #o755)
+                       #t))))))
    (synopsis "Client for Cisco VPN")
    (description
     "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
-- 
2.12.2





Information forwarded to guix-patches <at> gnu.org:
bug#26386; Package guix-patches. (Fri, 21 Apr 2017 09:05:01 GMT) Full text and rfc822 format available.

Message #11 received at 26386 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 26386 <at> debbugs.gnu.org
Subject: Re: bug#26386: [PATCH 0/1] Update the connection script of
 openconnect (and vpnc?)
Date: Fri, 21 Apr 2017 11:04:00 +0200
Heya Tobias,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> (Cc’ing Tobias who touched openconnect recently.)
>
> With openconnect I was experiencing the problem described at
> <http://blog.nowherelan.com/2011/10/10/vpnc-on-ubuntu-oneiric-error-either-to-is-duplicate-or-ipid-is-a-garbage/>.
> Namely, openconnect eventually fails with:
>
>   Error: either "to" is duplicate, or "ipid" is a garbage.
>
> This patch updates openconnect to use a newer vpnc script, as advised
> on the Web page above.  It fixes the problem for me.
>
> If someone reading this uses openconnect, could you check that it also
> works for you?
>
> Also, I wonder if we should be fixing vpnc rather than openconnect.

So, what do you think?  :-)

  https://bugs.gnu.org/26386

TIA,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#26386; Package guix-patches. (Fri, 21 Apr 2017 11:50:02 GMT) Full text and rfc822 format available.

Message #14 received at 26386 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: ludo <at> gnu.org
Cc: 26386 <at> debbugs.gnu.org
Subject: Re: bug#26386: [PATCH 0/1] Update the connection script of
 openconnect (and vpnc?)
Date: Fri, 21 Apr 2017 13:50:23 +0200
[Message part 1 (text/plain, inline)]
Ludo'!

On 21/04/17 11:04, Ludovic Courtès wrote:
> So, what do you think?  :-)

Argh. I'm wading through an e-mail back-log, sorry. Feel free to ping me
like this when needed.

>> If someone reading this uses openconnect, could you check that it also
>> works for you?

I used it for a limited time (job) and no longer have or want access to
such a VPN.

>> This patch updates openconnect to use a newer vpnc script, as advised
>> on the Web page above.  It fixes the problem for me.

>> Also, I wonder if we should be fixing vpnc rather than openconnect.

I was going to suggest a crazy third option: why not add all of
vpnc-scripts[0] as a new package, since that's basically what it is?
openconnect would default to vnpc-scripts' ‘vpnc-script’, but people
could try out other interesting-looking hacks like ‘vpnc-script-sshd’.

Turns out that this is exactly what Debian already does.[1] Heh.

I doubt very much the author can — or wants to be — bothered to do
releases[3]. If that's not a problem, I'll gladly write a new patch.

Kind regards,

T G-R

[0]: http://git.infradead.org/users/dwmw2/vpnc-scripts.git
[1]: https://packages.debian.org/jessie/all/vpnc-scripts
[2]: Which is arguably better than having releases and never finishing
     them;
http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2013-December/004000.html

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#26386; Package guix-patches. (Fri, 21 Apr 2017 11:59:02 GMT) Full text and rfc822 format available.

Message #17 received at 26386 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 26386 <at> debbugs.gnu.org
Subject: Re: bug#26386: [PATCH 0/1] Update the connection script of
 openconnect (and vpnc?)
Date: Fri, 21 Apr 2017 13:58:40 +0200
Hi Tobias!

Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:

> On 21/04/17 11:04, Ludovic Courtès wrote:
>> So, what do you think?  :-)
>
> Argh. I'm wading through an e-mail back-log, sorry. Feel free to ping me
> like this when needed.

OK, no problem!

> I was going to suggest a crazy third option: why not add all of
> vpnc-scripts[0] as a new package, since that's basically what it is?
> openconnect would default to vnpc-scripts' ‘vpnc-script’, but people
> could try out other interesting-looking hacks like ‘vpnc-script-sshd’.
>
> Turns out that this is exactly what Debian already does.[1] Heh.

Sounds like a good plan, surely better than my initial patch.

> I doubt very much the author can — or wants to be — bothered to do
> releases[3]. If that's not a problem, I'll gladly write a new patch.

That would be awesome!

Thank you,
Ludo’.




Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Wed, 29 Nov 2017 15:13:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Wed, 29 Nov 2017 15:13:02 GMT) Full text and rfc822 format available.

Message #22 received at 26386-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 27549-done <at> debbugs.gnu.org, 26386-done <at> debbugs.gnu.org
Date: Wed, 29 Nov 2017 16:15:18 +0100
Ricardo Wurmus wrote:
> It looks like these patches were dropped.

Down 6 flights of very cracked stairs.

Finally pushed as 06d91fd944e58ce787048f5c1b7804b210ad1f82 et al.

Kind regards,

T G-R




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 28 Dec 2017 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.