GNU bug report logs -
#58074
[PATCH] gnu: Add cyrus-sasl-xoauth2.
Previous Next
Reported by: Morgan.J.Smith <at> outlook.com
Date: Sun, 25 Sep 2022 15:22:01 UTC
Severity: normal
Tags: moreinfo, patch
Merged with 59018,
59019,
74938
Done: Liam Hupfer <liam <at> hpfr.net>
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 58074 in the body.
You can then email your comments to 58074 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Sun, 25 Sep 2022 15:22:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Morgan.J.Smith <at> outlook.com:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org.
(Sun, 25 Sep 2022 15:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
---
gnu/packages/cyrus-sasl.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 2cd18f3e5e..5374effbcd 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Andreas Enge <andreas <at> enge.fr>
;;; Copyright © 2016 Leo Famulari <leo <at> famulari.name>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe <at> gmail.com>
+;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith <at> outlook.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,8 +27,10 @@ (define-module (gnu packages cyrus-sasl)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages tls)
#:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public cyrus-sasl
@@ -78,3 +81,34 @@ (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 git-fetch)
+ (uri (git-reference
+ (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:configure-flags #~(list (string-append "--with-cyrus-sasl="
+ #$output)
+ "--disable-static")))
+
+ (inputs (list cyrus-sasl))
+ (native-inputs (list autoconf automake libtool))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "SASL_PATH")
+ (files (list "lib/sasl2")))))
+ (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (synopsis "XOAUTH2 plugin for Cyrus SASL")
+ (description "Adds support for XOAUTH2 authentication to Cyrus SASL. Can
+be used with isync to fetch mail from servers that support it.")
+ (license license:expat)))
--
2.37.3
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Thu, 06 Oct 2022 20:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58074 <at> debbugs.gnu.org (full text, mbox):
Hi,
Morgan.J.Smith <at> outlook.com skribis:
> From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
>
> * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
LGTM, modulo two things:
> + (native-search-paths
> + (list (search-path-specification
> + (variable "SASL_PATH")
> + (files (list "lib/sasl2")))))
I believe this search path belongs in cyrus-sasl (see
<https://guix.gnu.org/manual/devel/en/html_node/Search-Paths.html>).
Could you provide a patch that does that? However, due to the number of
dependents of cyrus-sasl, this change will have to go on ‘staging’.
> + (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
> + (synopsis "XOAUTH2 plugin for Cyrus SASL")
> + (description "Adds support for XOAUTH2 authentication to Cyrus SASL. Can
> +be used with isync to fetch mail from servers that support it.")
Please write full sentences.
Thanks in advance,
Ludo’.
Added tag(s) moreinfo.
Request was from
Christopher Baines <mail <at> cbaines.net>
to
control <at> debbugs.gnu.org.
(Thu, 03 Nov 2022 15:44:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Fri, 23 Dec 2022 19:29:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 58074 <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[native-search-paths]: Add
"lib/sasl2" to SASL_PATH
---
Sorry for the delay in my followup
Yep the environment should be set in the original package. I also think I've written in full sentences this time. English hard
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 2cd18f3e5e..d644d04e44 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -69,6 +69,10 @@ (define-public cyrus-sasl
(add-after 'unpack 'autogen
(lambda _
(invoke "autoreconf" "-vif"))))))
+ (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.38.1
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Fri, 23 Dec 2022 19:29:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 58074 <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
---
gnu/packages/crates-io.go.q80kWr | 0
gnu/packages/cyrus-sasl.scm | 29 +++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 gnu/packages/crates-io.go.q80kWr
diff --git a/gnu/packages/crates-io.go.q80kWr b/gnu/packages/crates-io.go.q80kWr
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index d644d04e44..0f283b62ac 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Andreas Enge <andreas <at> enge.fr>
;;; Copyright © 2016 Leo Famulari <leo <at> famulari.name>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe <at> gmail.com>
+;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith <at> outlook.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -26,8 +27,10 @@ (define-module (gnu packages cyrus-sasl)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages tls)
#:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public cyrus-sasl
@@ -82,3 +85,29 @@ (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 git-fetch)
+ (uri (git-reference
+ (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:configure-flags #~(list (string-append "--with-cyrus-sasl="
+ #$output)
+ "--disable-static")))
+ (inputs (list cyrus-sasl))
+ (native-inputs (list autoconf automake libtool))
+ (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (synopsis "XOAUTH2 plugin for Cyrus SASL")
+ (description "Adds support for XOAUTH2 authentication to Cyrus SASL. This
+package can be used with isync to fetch mail from servers that support it.")
+ (license license:expat)))
--
2.38.1
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Thu, 03 Aug 2023 21:30:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 58074 <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/cyrus-sasl.scm (cyrus-sasl)[native-search-paths]: Add
"lib/sasl2" to SASL_PATH
---
I added the patches from this issue to a personal Guix checkout, and was
unable to build cyrus-sasl-xoauth2 due to autogen.sh being an executable
file without a shebang. This updated patch sets the permission bits to
o400, so that the bootstrap phase passes autogen.sh to /bin/sh, rather
than attempt to execute it directly.
gnu/packages/cyrus-sasl.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 70d579c127..8254e04993 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -63,9 +63,13 @@ (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))
- (synopsis "Simple Authentication Security Layer implementation")
- (description
- "SASL (Simple Authentication Security Layer) is an Internet
+ (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
standards-track method for remote computers to authenticate. The Cyrus SASL
library makes supporting various SASL mechanisms easy for both client and
server writers.")
base-commit: 4ded034a57ffacdd6c7afa73bb58893afd614644
prerequisite-patch-id: 081e3072b6b3a070fffd62da42f3e622317684bf
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Thu, 03 Aug 2023 21:30:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 58074 <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
---
gnu/packages/cyrus-sasl.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 8254e04993..efeeb519c4 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016 Leo Famulari <leo <at> famulari.name>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe <at> gmail.com>
;;; Copyright © 2022 Marius Bakke <marius <at> gnu.org>
+;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith <at> outlook.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30,6 +31,7 @@ (define-module (gnu packages cyrus-sasl)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public cyrus-sasl
@@ -76,3 +78,34 @@ (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 git-fetch)
+ (uri (git-reference
+ (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:configure-flags #~(list (string-append "--with-cyrus-sasl="
+ #$output)
+ "--disable-static")
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'bootstrap 'fix-autogen
+ (lambda _
+ ;; autogen.sh is executable but does not have a shebang.
+ (chmod "autogen.sh" #o400))))))
+ (inputs (list cyrus-sasl))
+ (native-inputs (list autoconf automake libtool))
+ (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (synopsis "XOAUTH2 plugin for Cyrus SASL")
+ (description "Adds support for XOAUTH2 authentication to Cyrus SASL. This
+package can be used with isync to fetch mail from servers that support it.")
+ (license license:expat)))
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Mon, 12 Feb 2024 18:50:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 58074 <at> debbugs.gnu.org (full text, mbox):
Hi,
Reily Siegel (2022-12-23 14:27 -0500):
> From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
>
> * gnu/packages/cyrus-sasl.scm (cyrus-sasl)[native-search-paths]:
> Add "lib/sasl2" to SASL_PATH ---
>
> I added the patches from this issue to a personal Guix checkout,
> and was unable to build cyrus-sasl-xoauth2 due to autogen.sh
> being an executable file without a shebang. This updated patch
> sets the permission bits to o400, so that the bootstrap phase
> passes autogen.sh to /bin/sh, rather than attempt to execute it
> directly.
I have tested the patch from Reily and it works for me. Solved my
issue of not having cyrus-sasl-xoauth2 packaged in Guix yet. Is
this ready for merging?
Samuel
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Fri, 15 Mar 2024 14:49:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 58074 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Also using cyrus-sasl-xoauth2 on a local channel would like to have it part
of Guix proper.
Zac
[Message part 2 (text/html, inline)]
Information forwarded
to
guix-patches <at> gnu.org:
bug#58074; Package
guix-patches.
(Fri, 15 Aug 2025 05:39:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 58074 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
merge 59018 74938 58074
close 58074
thanks
We’ll see if I got the Debbugs incantations right…
I’ve been carrying this version of the patch locally for some time as
well. I found two more patch submissions for the same package as well,
so clearly there’s some demand! This one seems to be in the best state,
so I resuscitated it on Codeberg at
<https://codeberg.org/guix/guix/pulls/2013>. I attempted to use the
‘world-rebuild’ branch proposed by Andreas recently in [Branches and
other updates], but it needs a rebase so the PR currently has quite a bit
of noise. Next time I’ll be sure to branch directly off the target,
since Codeberg seems to have some performance issues with cases like
this.
—Liam
[Branches and
other updates] <https://yhetil.org/guix-devel/aHZffYtyh8fIoGuK <at> jurong>
bug closed, send any further explanations to
58074 <at> debbugs.gnu.org and Morgan.J.Smith <at> outlook.com
Request was from
Liam Hupfer <liam <at> hpfr.net>
to
control <at> debbugs.gnu.org.
(Fri, 15 Aug 2025 05:39:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Fri, 12 Sep 2025 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.