unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41830] xl2tpd fixes
@ 2020-06-12 17:45 Ivan Kozlov
  2020-06-14  9:59 ` bug#41830: " Mathieu Othacehe
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Kozlov @ 2020-06-12 17:45 UTC (permalink / raw)
  To: 41830

xl2tpd runs pppd to complete the connection. It also includes some of the Linux headers (and uses fallbacks otherwise).

--- /gnu/store/869i2xd7jih9cdcrccwk8rsxycwksjba-guix-module-union/share/guile/site/3.0/gnu/packages/vpn.scm
+++ #<buffer vpn.scm>
@@ -576,9 +576,18 @@
      `(#:make-flags (list (string-append "PREFIX=" %output)
                           "CC=gcc")
        #:phases (modify-phases %standard-phases
+                  (add-before 'build 'setup-environment
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (setenv "CFLAGS" (string-append "-DPPD=\""
+                                                      (assoc-ref inputs "ppp")
+                                                      "/sbin/pppd\""))
+                      (setenv "KERNELSRC" (assoc-ref inputs "linux-libre-headers"))
+                      #t))
                   (delete 'configure))  ; no configure script
        #:tests? #f))                    ; no tests provided
-    (inputs `(("libpcap" ,libpcap)))
+    (inputs `(("libpcap" ,libpcap)
+              ("linux-libre-headers" ,linux-libre-headers)
+              ("ppp" ,ppp)))
     (home-page "https://www.xelerance.com/software/xl2tpd/")
     (synopsis "Layer 2 Tunnelling Protocol Daemon (RFC 2661)")
     (description

Diff finished.  Fri Jun 12 20:38:14 2020





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#41830: xl2tpd fixes
  2020-06-12 17:45 [bug#41830] xl2tpd fixes Ivan Kozlov
@ 2020-06-14  9:59 ` Mathieu Othacehe
  2020-06-22  8:09   ` [bug#41830] " Ivan Kozlov
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Othacehe @ 2020-06-14  9:59 UTC (permalink / raw)
  To: Ivan Kozlov; +Cc: 41830-done


Привет Иван!

Thanks for this patch :). For future contributions, patches should be
made on top of Guix git repository, using "git format-patch". You should
also follow the guidelines here:
https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html#Sending-a-Patch-Series
in particular, regarding the commit message.

I applied the patch, added your copyright and a commit message.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#41830] xl2tpd fixes
  2020-06-14  9:59 ` bug#41830: " Mathieu Othacehe
@ 2020-06-22  8:09   ` Ivan Kozlov
  2020-06-22  8:29     ` Mathieu Othacehe
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Kozlov @ 2020-06-22  8:09 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 41830@debbugs.gnu.org

Hi,

There was a typo in the patch in a compiler flag (-DPPD instead of -DPPPD). Would you please correct that?

14.06.2020, 12:59, "Mathieu Othacehe" <othacehe@gnu.org>:
> Привет Иван!
>
> Thanks for this patch :). For future contributions, patches should be
> made on top of Guix git repository, using "git format-patch". You should
> also follow the guidelines here:
> https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html#Sending-a-Patch-Series
> in particular, regarding the commit message.
>
> I applied the patch, added your copyright and a commit message.
>
> Thanks,
>
> Mathieu




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#41830] xl2tpd fixes
  2020-06-22  8:09   ` [bug#41830] " Ivan Kozlov
@ 2020-06-22  8:29     ` Mathieu Othacehe
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2020-06-22  8:29 UTC (permalink / raw)
  To: Ivan Kozlov; +Cc: 41830@debbugs.gnu.org


Hello,

> There was a typo in the patch in a compiler flag (-DPPD instead of -DPPPD). Would you please correct that?

Oops, fixed.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-22  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 17:45 [bug#41830] xl2tpd fixes Ivan Kozlov
2020-06-14  9:59 ` bug#41830: " Mathieu Othacehe
2020-06-22  8:09   ` [bug#41830] " Ivan Kozlov
2020-06-22  8:29     ` Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).