GNU bug report logs - #58496
[PATCH 0/2] gnu: Add coturn

Previous Next

Package: guix-patches;

Reported by: Thomas Albers Raviola <thomas <at> thomaslabs.org>

Date: Thu, 13 Oct 2022 15:43:02 UTC

Severity: normal

Tags: patch

Done: Vagrant Cascadian <vagrant <at> debian.org>

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 58496 in the body.
You can then email your comments to 58496 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#58496; Package guix-patches. (Thu, 13 Oct 2022 15:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Albers Raviola <thomas <at> thomaslabs.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 13 Oct 2022 15:43:02 GMT) Full text and rfc822 format available.

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

From: Thomas Albers Raviola <thomas <at> thomaslabs.org>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] gnu: Add coturn
Date: Thu, 13 Oct 2022 17:41:56 +0200
Hello,

the following patch series adds coturn to guix. Some notes:

- for some reason libevent is being compiled without openssl, so I had
  to define a variant for coturn to use.

- gnu/packages/libevent.scm still used the old package-inputs syntax. I
  am not sure if this is intentional, so I kept the old syntax for the
  file even though it is deprecated.

- I'm not very good at describing packages, if someone has any
  recomendations I can send a new patch.

Regards,
Thomas




Information forwarded to guix-patches <at> gnu.org:
bug#58496; Package guix-patches. (Thu, 13 Oct 2022 15:44:02 GMT) Full text and rfc822 format available.

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

From: Thomas Albers <thomas <at> thomaslabs.org>
To: 58496 <at> debbugs.gnu.org
Cc: Thomas Albers <thomas <at> thomaslabs.org>
Subject: [PATCH 1/2] gnu: Add libevent-with-openssl
Date: Thu, 13 Oct 2022 17:43:33 +0200
* gnu/packages/libevent.scm (libevent-with-openssl): New variable.
---
 gnu/packages/libevent.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/libevent.scm b/gnu/packages/libevent.scm
index d807315906..e0ba2b3d5b 100644
--- a/gnu/packages/libevent.scm
+++ b/gnu/packages/libevent.scm
@@ -76,6 +76,17 @@ (define-public libevent
 loop.")
     (license bsd-3)))
 
+(define-public libevent-with-openssl
+  (package
+    (inherit libevent)
+    (name "libevent-with-openssl")
+    (inputs
+     `(("openssl" ,openssl)
+       ,@(package-inputs libevent)))
+    (arguments
+     ;; This skips some of the tests which fail on armhf and aarch64.
+     '(#:configure-flags '("--disable-libevent-regress")))))
+
 (define-public libev
   (package
     (name "libev")
-- 
2.38.0





Information forwarded to guix-patches <at> gnu.org:
bug#58496; Package guix-patches. (Thu, 13 Oct 2022 15:44:02 GMT) Full text and rfc822 format available.

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

From: Thomas Albers <thomas <at> thomaslabs.org>
To: 58496 <at> debbugs.gnu.org
Cc: Thomas Albers <thomas <at> thomaslabs.org>
Subject: [PATCH 2/2] gnu: Add coturn
Date: Thu, 13 Oct 2022 17:43:34 +0200
* gnu/packages/telephony.scm (coturn): New variable.
---
 gnu/packages/telephony.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm
index 5a7c3821ad..13feedbb2e 100644
--- a/gnu/packages/telephony.scm
+++ b/gnu/packages/telephony.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2021 LibreMiami <packaging-guix <at> libremiami.org>
 ;;; Copyright © 2021 Sarah Morgensen <iskarian <at> mgsn.dev>
 ;;; Copyright © 2021 Demis Balbach <db <at> minikn.xyz>
+;;; Copyright © 2022 Thomas Albers Raviola <thomas <at> thomaslabs.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -53,6 +54,7 @@ (define-module (gnu packages telephony)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages databases)
+  #:use-module (gnu packages sqlite)
   #:use-module (gnu packages docbook)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages file)
@@ -89,6 +91,7 @@ (define-module (gnu packages telephony)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages flex)
+  #:use-module (gnu packages libevent)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix utils)
   #:use-module (guix packages)
@@ -894,3 +897,32 @@ (define-public libtgvoip
 telephony functionality into custom Telegram clients.")
     (home-page "https://github.com/zevlg/libtgvoip")
     (license license:unlicense)))
+
+(define-public coturn
+  (package
+    (name "coturn")
+    (version "4.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/coturn/coturn")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "152v2lnjj9b3w61d8aak7hmi9riw9cjs5g54g1gfpzlyk4c2jw21"))))
+    (inputs
+     (list openssl
+           sqlite
+           libevent-with-openssl
+           hiredis))
+    (native-inputs
+     (list pkg-config))
+    (build-system gnu-build-system)
+    (synopsis "Implementation of a TURN and STUN server for VoIP")
+    (description
+     "This package provides a VoIP media traffic NAT traversal server and
+gateway.  It implements the STUN (Session Traversal Utilities for NAT) and
+TURN (Traversal Using Relays around NAT) server protocols.")
+    (home-page "https://github.com/coturn/coturn")
+    (license license:bsd-3)))
-- 
2.38.0





Information forwarded to guix-patches <at> gnu.org:
bug#58496; Package guix-patches. (Sun, 23 Oct 2022 13:17:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Thomas Albers <thomas <at> thomaslabs.org>
Cc: 58496 <at> debbugs.gnu.org
Subject: Re: bug#58496: [PATCH 0/2] gnu: Add coturn
Date: Sun, 23 Oct 2022 15:16:34 +0200
Hi Thomas,

Thomas Albers <thomas <at> thomaslabs.org> skribis:

> * gnu/packages/libevent.scm (libevent-with-openssl): New variable.

I change (package (inherit libevent) …) to (package/inherit libevent …)
here, to preserve the ‘replacement’ field, if any.

I think we can change merge it with libevent and also update to the
“new” input style on the ‘core-updates’ branch.

> * gnu/packages/telephony.scm (coturn): New variable.

Applied, thanks!

Ludo’.




Reply sent to Vagrant Cascadian <vagrant <at> debian.org>:
You have taken responsibility. (Sat, 02 Sep 2023 04:25:02 GMT) Full text and rfc822 format available.

Notification sent to Thomas Albers Raviola <thomas <at> thomaslabs.org>:
bug acknowledged by developer. (Sat, 02 Sep 2023 04:25:02 GMT) Full text and rfc822 format available.

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

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Thomas Albers Raviola <thomas <at> thomaslabs.org>, 58496-done <at> debbugs.gnu.org
Subject: Re: [bug#58496] [PATCH 0/2] gnu: Add coturn
Date: Fri, 01 Sep 2023 21:24:11 -0700
[Message part 1 (text/plain, inline)]
On 2022-10-13, Thomas Albers Raviola wrote:
> the following patch series adds coturn to guix. Some notes:
>
> - for some reason libevent is being compiled without openssl, so I had
>   to define a variant for coturn to use.

Both coturn and libevent-with-openssl were added to guix:

9ed4251d70fb62e176f927129934a76a3dad2d64 gnu: Add libevent-with-openssl.
d117d225d99a99984b4cce082f5f1bdd18efc003 gnu: Add coturn.

Marking as done.

live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Sep 2023 11:24:35 GMT) Full text and rfc822 format available.

This bug report was last modified 207 days ago.

Previous Next


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