From: Peter Polidoro <peter@polidoro.io>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 59018@debbugs.gnu.org
Subject: [bug#59018] [PATCH 0/1] OAuth2 for mbsync
Date: Fri, 18 Nov 2022 10:50:34 -0500 [thread overview]
Message-ID: <87y1s817r6.fsf@polidoro.io> (raw)
In-Reply-To: <8735ahh4p1.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
>
> Could you send an updated patch? TIA!
>
> Ludo’.
I was able to get the package to build by adding a
"--with-cyrus-sasl" configure-flag.
I am not sure if I used the correct value for this flag, however.
The package's configure file says:
--with-cyrus-sasl=PREFIX
Installation prefix of Cyrus-SASL
(defaults to /usr)
That seems to imply that should be the install location of the
cyrus-sasl package and that the cyrus-sasl-xoauth2 package will
get installed into the location specified by the "--prefix"
configure-flag.
The build failed, though, since it was trying to install into the
/usr directory, even though "--prefix" was set to something else.
So I set "--with-cyrus-sasl" to be the path of the
cyrus-sasl-xoauth2 package out and that seems to work now. I
assume the compilation would have failed if "--with-cyrus-sasl"
needed to point to the cyrus-sasl location for dependency reasons.
Now hopefully adding the correct search path to the cyrus-sasl
package will get the cyrus-sasl-xoauth2 properly recognized as a
plugin. I can work on that patch when I have some time.
Thank you for your all of your help and patience as I am still
learning how to create guix packages.
[-- Attachment #2: 0001-gnu-Add-cyrus-sasl-xoauth2.patch --]
[-- Type: text/x-diff, Size: 2817 bytes --]
From ba3fe6dff1d2dbf1cb4d3c383acad57e40f79367 Mon Sep 17 00:00:00 2001
Message-Id: <ba3fe6dff1d2dbf1cb4d3c383acad57e40f79367.1668793140.git.peter@polidoro.io>
From: Peter Polidoro <peter@polidoro.io>
Date: Fri, 18 Nov 2022 12:38:06 -0500
Subject: [PATCH] gnu: Add cyrus-sasl-xoauth2.
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
---
gnu/packages/cyrus-sasl.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 2cd18f3e5e..1134996d34 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -28,6 +29,7 @@ (define-module (gnu packages cyrus-sasl)
#:use-module ((guix licenses) #:prefix license:)
#: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 +80,31 @@ (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
+ '(#:configure-flags (list (string-append "--with-cyrus-sasl="
+ (assoc-ref %outputs "out")))))
+ (native-inputs (list autoconf automake libtool))
+ (inputs (list cyrus-sasl))
+ (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (synopsis "XOAUTH2 mechanism plugin for cyrus-sasl")
+ (description "This package adds the Open Authorization standard, OAuth2,
+authentication mechanism to cyrus-sasl as a plugin. OAuth is an open standard
+for access delegation, commonly used as a way for internet users to grant
+websites or applications access to their information on other websites but
+without giving them the passwords.")
+ (license (list license:expat license:expat))))
--
2.38.1
prev parent reply other threads:[~2022-11-18 17:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 17:56 [bug#59018] [PATCH 0/1] OAuth2 for mbsync peter
2022-11-04 17:56 ` [bug#59019] [PATCH 1/1] gnu: Add cyrus-sasl-xoauth2 peter
2022-11-06 21:12 ` [bug#59018] (no subject) dan
2022-11-06 21:18 ` ( via Guix-patches via
2022-11-07 1:32 ` dan
2022-11-15 10:49 ` [bug#59018] [PATCH 0/1] OAuth2 for mbsync Ludovic Courtès
2022-11-15 14:55 ` Peter Polidoro
2022-11-17 17:27 ` Ludovic Courtès
2022-11-18 15:50 ` Peter Polidoro [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y1s817r6.fsf@polidoro.io \
--to=peter@polidoro.io \
--cc=59018@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).