From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GNJpLrvDd2PpAAEAbAwnHQ (envelope-from ) for ; Fri, 18 Nov 2022 18:41:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SBJeLrvDd2MefQEA9RJhRA (envelope-from ) for ; Fri, 18 Nov 2022 18:41:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AB7BE1B15C for ; Fri, 18 Nov 2022 18:41:14 +0100 (CET) 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 Content-Type: multipart/mixed; boundary="=-=-=" 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668793275; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=D+Jp0GcRkW8aKw6MzcV9QA5sgY1jkL/K4bGNx1Vn1JQ=; b=ihMHM3Jxw+JQMcDcdeqRR6faAN7WAeWF/samJLqbT54QrEy/RRFn63v0KEe2EcuhzgRXS3 alh//h1mBPIg7wCr9omWmvr3YzPm6lubo99O0ceOudpaUiu157iQdv0o9P9gXjgoRUy1uj hwQX0FQIIvrYxxelaz4BXfLNqJ7L33/8xBKKHs/fquQrpe1zC4irOfJcS4tBBddPKbuBw3 3fWwyzaQPtWHmLb6efQptMq4wcDKRAjakDNyalBgepzMNKKKtSiUkCWfJqwfFpAj6EBmQG J5Np1awzshnYjrIAXJoDt7HTgK4rg19v59SQQwODPWjUVa7wLQfuzvzFQeI1LQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1668793275; a=rsa-sha256; cv=fail; b=r61QKm6FEbB+FKvbAd309GKUoE0zF06q6K9No+jHNvlwudTSC5dR/6XWDWUHrHbIbcHqmy Yw8Mw0Umiqqu0Ok7gzXlXNuBA3wgGqpWUDLNubkuYcsos6D2wzDCsKnQnkoMRlkHLo6zUW jhVrVp7zg9jh+5NgIKymythVY7bP/5R/3b9cAjS1jZ3xkRFJWHPYa6azQMbZEu8veMqHw/ LJ77U4+JztJk4sXv/3w5ZqHubq6rmAit3TMsVnCiREGV//jURuYUP3Ktr4J0y3x24Fukkx +gwUMrhKJaGymkDa1YGbEoXugMtRWhXIyVDr9zJY+zsqCHC01eN00KDRPSvYxQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=ErqP1MFf; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=ErqP1MFf; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AB7BE1B15C X-Spam-Score: 3.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: YAbSQVOIqhLw --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > > Could you send an updated patch? TIA! > > Ludo=E2=80=99. I was able to get the package to build by adding a=20 "--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=3DPREFIX Installation prefix of Cyrus-SASL=20 (defaults to /usr) That seems to imply that should be the install location of the=20 cyrus-sasl package and that the cyrus-sasl-xoauth2 package will=20 get installed into the location specified by the "--prefix"=20 configure-flag. The build failed, though, since it was trying to install into the=20 /usr directory, even though "--prefix" was set to something else.=20 So I set "--with-cyrus-sasl" to be the path of the=20 cyrus-sasl-xoauth2 package out and that seems to work now. I=20 assume the compilation would have failed if "--with-cyrus-sasl"=20 needed to point to the cyrus-sasl location for dependency reasons. Now hopefully adding the correct search path to the cyrus-sasl=20 package will get the cyrus-sasl-xoauth2 properly recognized as a=20 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=20 learning how to create guix packages. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-cyrus-sasl-xoauth2.patch Content-Transfer-Encoding: quoted-printable >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 =C2=A9 2013 Andreas Enge ;;; Copyright =C2=A9 2016 Leo Famulari ;;; Copyright =C2=A9 2019 Mathieu Othacehe +;;; Copyright =C2=A9 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)) =20 (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=3D" + (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, OAuth= 2, +authentication mechanism to cyrus-sasl as a plugin. OAuth is an open stan= dard +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)))) --=20 2.38.1 --=-=-=--