GNU bug report logs - #74938
[PATCH 0/2] Enable plugins for cyrus-sasl and add xoauth2 plugin

Previous Next

Package: guix-patches;

Reported by: reza <reza <at> housseini.me>

Date: Wed, 18 Dec 2024 08:54:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 74938 AT debbugs.gnu.org.

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#74938; Package guix-patches. (Wed, 18 Dec 2024 08:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to reza <reza <at> housseini.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 18 Dec 2024 08:54:02 GMT) Full text and rfc822 format available.

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

From: reza <reza <at> housseini.me>
To: guix-patches <at> gnu.org <guix-patches <at> gnu.org>
Cc: reza <reza <at> housseini.me>
Subject: [PATCH 0/2] Enable plugins for cyrus-sasl and add xoauth2 plugin
Date: Wed, 18 Dec 2024 08:53:14 +0000
This patch series adds the plugin search path to cyrus-sasl and a first plugin
cyrus-sasl-xoauth2.

Reza Housseini (2):
  gnu: cyrus-sasl: Add native-search-paths.
  gnu: Add cyrus-sasl-xoauth2.

 gnu/packages/cyrus-sasl.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)


base-commit: 20b1613484f512649f919d89285e981998592497
-- 
2.46.0






Information forwarded to guix-patches <at> gnu.org:
bug#74938; Package guix-patches. (Wed, 18 Dec 2024 09:00:02 GMT) Full text and rfc822 format available.

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

From: reza <reza <at> housseini.me>
To: 74938 <at> debbugs.gnu.org <74938 <at> debbugs.gnu.org>
Cc: reza <reza <at> housseini.me>
Subject: [PATCH 1/2] gnu: cyrus-sasl: Add native-search-paths.
Date: Wed, 18 Dec 2024 08:58:42 +0000
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)
  [native-search-paths]: Add 'SASL_PATH'.

Change-Id: I553473c7707480ac422b2c6aa70363ba04f4b1e2
---
 gnu/packages/cyrus-sasl.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index ef408f2dd7..ee8ad14d08 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -64,6 +64,10 @@ (define-public cyrus-sasl
       ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can
       ;; fail with EEXIST when building things in parallel.
       #:parallel-build? #f))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "SASL_PATH")
+            (files (list "lib/sasl2")))))
     (synopsis "Simple Authentication Security Layer implementation")
     (description
      "SASL (Simple Authentication Security Layer) is an Internet
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#74938; Package guix-patches. (Wed, 18 Dec 2024 09:00:03 GMT) Full text and rfc822 format available.

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

From: reza <reza <at> housseini.me>
To: 74938 <at> debbugs.gnu.org <74938 <at> debbugs.gnu.org>
Cc: reza <reza <at> housseini.me>
Subject: [PATCH 2/2] gnu: Add cyrus-sasl-xoauth2.
Date: Wed, 18 Dec 2024 08:58:59 +0000
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.

Change-Id: I2e7d415c2ae18467d9901118c987155aa3f0edca
---
 gnu/packages/cyrus-sasl.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index ee8ad14d08..4ef5564d41 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -77,3 +77,35 @@ (define-public cyrus-sasl
     (license (license:non-copyleft "file://COPYING"
                                    "See COPYING in the distribution."))
     (home-page "https://cyrusimap.org/sasl/")))
+
+(define-public cyrus-sasl-xoauth2
+  (package
+    (name "cyrus-sasl-xoauth2")
+    (version "0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/moriyoshi/"
+                                  "cyrus-sasl-xoauth2/archive/tags/v"
+				  version ".tar.gz"))
+              (sha256
+               (base32
+                "0hz95rp2n0xrkc0y2fgif2s7d61hlhd4qki5m8q0s44qc1b2cb56"))))
+    (build-system gnu-build-system)
+    (inputs (list autoconf
+                  automake
+                  libtool
+                  cyrus-sasl))
+    (arguments
+     (list #:configure-flags
+	   #~(list (string-append "--with-cyrus-sasl=" #$output))
+	   #:phases
+	   #~(modify-phases %standard-phases
+	       (add-after 'unpack 'add-shebang
+		 (lambda _
+		   (substitute* "autogen.sh"
+		     (("libtoolize") "#!/bin/sh\nlibtoolize")))))))
+    (synopsis "XOAUTH2 mechanism plugin for cyrus-sasl")
+    (description
+     "This is a plugin implementation of XOAUTH2 for cyrus-sasl.")
+    (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+    (license license:expat)))
-- 
2.46.0





This bug report was last modified 182 days ago.

Previous Next


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