From patchwork Fri Nov 18 15:50:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Polidoro X-Patchwork-Id: 44603 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 58A4B27BBED; Fri, 18 Nov 2022 17:41:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B871727BBE9 for ; Fri, 18 Nov 2022 17:41:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow5MR-0005qW-A5; Fri, 18 Nov 2022 12:41:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow5MN-0005qM-L6 for guix-patches@gnu.org; Fri, 18 Nov 2022 12:41:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ow5ML-0002Ql-QQ for guix-patches@gnu.org; Fri, 18 Nov 2022 12:41:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow5ML-0002Vj-Lu for guix-patches@gnu.org; Fri, 18 Nov 2022 12:41:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59018] [PATCH 0/1] OAuth2 for mbsync Resent-From: Peter Polidoro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Nov 2022 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 59018@debbugs.gnu.org Received: via spool by 59018-submit@debbugs.gnu.org id=B59018.16687932459620 (code B ref 59018); Fri, 18 Nov 2022 17:41:01 +0000 Received: (at 59018) by debbugs.gnu.org; 18 Nov 2022 17:40:45 +0000 Received: from localhost ([127.0.0.1]:38190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow5M5-0002V5-25 for submit@debbugs.gnu.org; Fri, 18 Nov 2022 12:40:45 -0500 Received: from olivedrab.birch.relay.mailchannels.net ([23.83.209.135]:18939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow5M0-0002Uu-CG for 59018@debbugs.gnu.org; Fri, 18 Nov 2022 12:40:43 -0500 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B30F65C1193; Fri, 18 Nov 2022 17:40:38 +0000 (UTC) Received: from pdx1-sub0-mail-a265.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5DD295C0AD9; Fri, 18 Nov 2022 17:40:30 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1668793230; a=rsa-sha256; cv=none; b=c2JXf5An0i/nIXy/yGG7GmsQGhdrWodqrfCYkyPQ4TtjBTaFhJzNmTw12hZAvoDpIhiOKh HHQoax0eEDlRB7BjkmpcsaCktBWka7RDQ4R8e1SkWdNYfoFyFhbuP5NekiMetVp69DUxeE O+TFt+HXDYRIfRXBPdNAr+sU0ylSFaHh7A/Azmm43PciVGa6SRjjtT4C3CgxA+YMZEM5ku jMXA1LQue/+bNxQTTWZJkSM29rGQc8e26xQ34IEDEphKKRY4LvCak3XWqhRVcpWIlnDo4L y2a3aZipe73wv08QdoDLbkGA88g58uHzK6n+YrBuO3Lpgho57oD5IGD4gA2z8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1668793230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=D+Jp0GcRkW8aKw6MzcV9QA5sgY1jkL/K4bGNx1Vn1JQ=; b=VnoedWUNIYqF5Ayera+dWbKnxDL1ZmVNMEmn9swVOk4KGr5GR+9o02WTLz5Upyz+kppVuu cWHEla93HeQd4LehMsmv6EsW4MzRuHIb2Pw9z5+6qSZeQZnxuA4BwGjGAsNxzWwdmfAJEo A5nHB5uZoOp/cS49QB3BJAvt9IzoSVMB0DwmgZmMmTGa8J8vPHz6th72hPATuUhaP2B5os nUke5XgYm14LcEM2oHNICKD5jqpkOC87et9LOBMgdM0TwVXYR2xyWkEfhGeFN29gymx7eO TT9yplwEKvvqa0LtN6Xz4jxjzUHRXejiVrLFRcHi9VZPMneQkTRhRu5fAlwnrQ== ARC-Authentication-Results: i=1; rspamd-65567d767-dpmc2; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Lettuce-Eight: 15c0040f76fe83c5_1668793238464_4231093673 X-MC-Loop-Signature: 1668793238464:3896765534 X-MC-Ingress-Time: 1668793238463 Received: from pdx1-sub0-mail-a265.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.24.91 (trex/6.7.1); Fri, 18 Nov 2022 17:40:38 +0000 Received: from minotaur (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a265.dreamhost.com (Postfix) with ESMTPSA id 4NDPFT5F9tzM6; Fri, 18 Nov 2022 09:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1668793230; bh=D+Jp0GcRkW8aKw6MzcV9QA5sgY1jkL/K4bGNx1Vn1JQ=; h=From:To:Cc:Subject:Date:Content-Type; b=ErqP1MFfV4uuaCn3w2cl+u8poG0GKzvjwBwT3u8PgeqXVXmOP4FJV2D19/uWspEt6 E3DmAxU2IDg3TkAOH6rysA5Dd9fZUvHYqWwEzN35RzMSy6j3bT1LBmKWdfQppGm97K zH9mBr77k4K/RXB6FayPGgV4naCbpyqZ7IsvhvfufLCjg6jGdMT2Rea3P6fE9UkbFL zgiijkwoxi5TAjNtQ4r7XGQ40dpk1J7dcoKkAZc5LmsvQRIVVlnp9cDGMLz6XUrndQ vFwqNBoFp6AyQ+BhMAuGe0Iw/+0RDboQoXdAQ8zuEmzytIO2efF8XMQaa/EFkEDzYI F2t6KH8uGCs7g== References: <87sfikmr0x.fsf@gnu.org> <87k03wtfeu.fsf@polidoro.io> <8735ahh4p1.fsf@gnu.org> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro Date: Fri, 18 Nov 2022 10:50:34 -0500 In-reply-to: <8735ahh4p1.fsf@gnu.org> Message-ID: <87y1s817r6.fsf@polidoro.io> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Ludovic Courtès 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. From ba3fe6dff1d2dbf1cb4d3c383acad57e40f79367 Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Polidoro 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 ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2019 Mathieu Othacehe +;;; Copyright © 2022 Peter Polidoro ;;; ;;; 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