From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <guix-patches-bounces+larch=yhetil.org@gnu.org>
Received: from mp11.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id 8Di+MZAkcGOf1gAAbAwnHQ
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 12 Nov 2022 23:56:16 +0100
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp11.migadu.com with LMTPS
	id OBysMZAkcGNlWAEA9RJhRA
	(envelope-from <guix-patches-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 12 Nov 2022 23:56:16 +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 7C7202C482
	for <larch@yhetil.org>; Sat, 12 Nov 2022 23:56:16 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <guix-patches-bounces@gnu.org>)
	id 1otzPz-0002T0-Qp; Sat, 12 Nov 2022 17:56: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 <Debian-debbugs@debbugs.gnu.org>)
 id 1otzPv-0002Qz-1M
 for guix-patches@gnu.org; Sat, 12 Nov 2022 17:56: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 <Debian-debbugs@debbugs.gnu.org>)
 id 1otzPu-0006wy-FL
 for guix-patches@gnu.org; Sat, 12 Nov 2022 17:56:02 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1otzPu-0000YT-BC
 for guix-patches@gnu.org; Sat, 12 Nov 2022 17:56:02 -0500
X-Loop: help-debbugs@gnu.org
Subject: [bug#59231] [PATCH] gnu: Add cl-gss
Resent-From: Sharlatan Hellseher <sharlatanus@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: guix-patches@gnu.org
Resent-Date: Sat, 12 Nov 2022 22:56:02 +0000
Resent-Message-ID: <handler.59231.B.16682937332095@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 59231
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 59231@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>
X-Debbugs-Original-To: guix-patches@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.16682937332095
 (code B ref -1); Sat, 12 Nov 2022 22:56:02 +0000
Received: (at submit) by debbugs.gnu.org; 12 Nov 2022 22:55:33 +0000
Received: from localhost ([127.0.0.1]:49539 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1otzPR-0000Xi-4p
 for submit@debbugs.gnu.org; Sat, 12 Nov 2022 17:55:33 -0500
Received: from lists.gnu.org ([209.51.188.17]:34738)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sharlatanus@gmail.com>) id 1otzPO-0000Xa-5G
 for submit@debbugs.gnu.org; Sat, 12 Nov 2022 17:55:31 -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 <sharlatanus@gmail.com>)
 id 1otzPN-0001yM-SX
 for guix-patches@gnu.org; Sat, 12 Nov 2022 17:55:29 -0500
Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <sharlatanus@gmail.com>)
 id 1otzPE-0006n9-Iz
 for guix-patches@gnu.org; Sat, 12 Nov 2022 17:55:29 -0500
Received: by mail-wr1-x429.google.com with SMTP id d9so6381143wrm.13
 for <guix-patches@gnu.org>; Sat, 12 Nov 2022 14:55:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=MoCecF2I0zwDV3ckj3iT3QzxLsnjCJeHGapgmrrgS40=;
 b=mX+HeCOP+oek6jBh9YH/vVOUTi2JJ54QEAbAPxQ4lF3uiN538U+8zTsG50acqqPuQg
 mucjawdNnKwThL63+bBTZDm8+rqNvdf0IjP0UA2YUGF/07pqjPm2WuoIPrjwY8HGrz3V
 4dpytcEoZNextx4kx874AY8QCzcmPUuu/2qdLqQTov2FAn4nDCo94CcsyQIJdgap/OK6
 lS+7DR6mnghqVnOIOeGsA0jo8eBjGkF2c+PDH286UXg8d3ULzzz7eW+zm5RKhigMWm2O
 pXblLjaqrewxKKVxCvA8bE+g93lXRkd5GTpZ+Tx0SzSZnkegzPZA0dgrqLGgEKwyxpDK
 dVdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=MoCecF2I0zwDV3ckj3iT3QzxLsnjCJeHGapgmrrgS40=;
 b=L250z6suISWzxRMzS6t/wVsDQmf61JvaHVcJtSbbUTuKlhi0V3DGj2qYCP4EO+sFpy
 5a+ELD6F0USt8VrGSTO2zCEaYcdPErBvxQt7WV+O/GYsVP5eSenLEpGi7fOfTLGIub4y
 57Ld0vETwb9LsmsDjuoo36yNgpV8tZQaalsqwq19h2Brw/XIlLh2z+k2ydxhi+dJsmzT
 9Ykmnu+wH8zHXqLz+g8VvVy8Sdc3KVfSOtE7WXQOLuPN1UfD/LA3e0XTfGzUnJc+GPpk
 8QoRPTvgkXu84bsDbCoeqvEbpbk8NTDiF9HgjpBjC0nXSjB8KwuYNnvcWDdJE3RJ3//o
 rQhA==
X-Gm-Message-State: ANoB5pnOu2o/tGQjihV1oTBml4e7+tiH29OaEkJdDgI3L5Zfh+3n8zLO
 xPdCUIWZuE4w3TEVVqCRxhM8o4r5eEnWqw==
X-Google-Smtp-Source: AA0mqf48eE7mDp4jgSTgZt3zrxZyDC4t90U8RtVFvl7qzVMnmlladbY8q+S9PZGGakltNYXEQijaJg==
X-Received: by 2002:a5d:50d2:0:b0:22e:33dc:3bf1 with SMTP id
 f18-20020a5d50d2000000b0022e33dc3bf1mr4310280wrt.316.1668293718142; 
 Sat, 12 Nov 2022 14:55:18 -0800 (PST)
Received: from guxtil.incerto.xyz
 (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113])
 by smtp.gmail.com with ESMTPSA id
 c7-20020a1c3507000000b003c6f1732f65sm12537873wma.38.2022.11.12.14.55.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 12 Nov 2022 14:55:17 -0800 (PST)
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Sat, 12 Nov 2022 22:55:12 +0000
Message-Id: <20221112225512.32029-1-sharlatanus@gmail.com>
X-Mailer: git-send-email 2.38.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::429;
 envelope-from=sharlatanus@gmail.com; helo=mail-wr1-x429.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 
 SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: guix-patches@gnu.org
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1668293776;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-transfer-encoding:content-transfer-encoding:resent-cc:
	 resent-from:resent-sender:resent-message-id:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=MoCecF2I0zwDV3ckj3iT3QzxLsnjCJeHGapgmrrgS40=;
	b=TpM4iRTAEBGa+UeUywIVRF8ocWasqOtlX1NymKKg3KzrXqRNd/p9IO8JOaF7FYuodG1D/d
	oBcWkkrCM6YyTC5T4oVSM9bJ5JH2dzV6Dg0Q5881+FftDru0SjOdXbZfL8WCp443RRvcGw
	RWYMUV/oBTjuLH8tPnLGmMlZRmIXdcS6cRQE56w0U3zGo8Jfi11NplK1FiNRZ59spY5wN3
	Pnrusx5dsGRoYq8Q66EIYFpNjYQmK7GxCc3PEdYMqy1aJ62YF5ZYAFtVXPHuPzLE5GBWhT
	HeWTpW0zi8MIF3qIcsDky1eFzo7utwggrHRgAQ8SqNMfrgUg2me8M2iw7wz7rQ==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668293776; a=rsa-sha256; cv=none;
	b=SS5qsOy0HBFMPTH8Vfif9AnQNSgVqB9rPIwnTp0Id6aJmFUr6N6wIYq0Ptfab6/Ir1xMJh
	P6AjWisdXyfkZUodP0lp1MTEmmJu06qfV4ULP+ysQ6x7focFQESVwQECG4cP5Na0hfd/yO
	TVsERyDRtWjWpsGtI3hdoVPbYZzhrjpEWr1KdH2ygEcyf5jv9JEtKUzXdS3HAMvbNIPdYp
	roIKeK0RW1C92EJtl4+wcdN7IhXMgmLw8XgYoGil9nOW9NmV9Zu+dsOQvfnmmNetgqATA7
	AQz/dB3fryZPe0RxIWPIPt6sAdTKAdJzKqz80qlgNA4UVi1N+WnRYfG/jNOZ0g==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mX+HeCOP;
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7.26
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=mX+HeCOP;
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7C7202C482
X-Spam-Score: 7.26
X-Migadu-Scanner: scn1.migadu.com
X-TUID: Bmn/6lYBFEja

* gnu/packages/lisp-xyz.scm (ecl-cl-gss, cl-gss, sbcl-cl-gss): New variables.
---
 gnu/packages/lisp-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 360196bc49..0b797502f1 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -88,6 +88,7 @@ (define-module (gnu packages lisp-xyz)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
+  #:use-module (gnu packages kerberos)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages linux)
@@ -6287,6 +6288,51 @@ (define-public ecl-inferior-shell
 (define-public cl-inferior-shell
   (sbcl-package->cl-source-package sbcl-inferior-shell))
 
+(define-public sbcl-cl-gss
+  (let ((commit "60086f4fd3b82316352e7f2288edbd58f03e08c5")
+        (revision "1"))
+    (package
+      (name "sbcl-cl-gss")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/lokedhs/cl-gss")
+               (commit commit)))
+         (file-name (git-file-name "cl-gss" version))
+         (sha256
+          (base32 "0zhxxn3zarird255s9i56bz0fm6dkv00mn8bbsjrhskg3wpcg4pb"))))
+      (build-system asdf-build-system/sbcl)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'patch-gss-lib-path
+              (lambda* (#:key inputs #:allow-other-keys)
+                (substitute* "src/functions.lisp"
+                  (("libgssapi_krb5.so")
+                   (search-input-file inputs "/lib/libgssapi_krb5.so"))))))))
+      (inputs
+       (list mit-krb5
+             sbcl-cffi
+             sbcl-trivial-garbage
+             sbcl-trivial-utf-8))
+      (home-page "https://github.com/lokedhs/cl-gss")
+      (synopsis "Common Lisp CFFI bindings to Generic Security Service (GSS)")
+      (description
+       "GSSAPI is an API which is designed to provide a standard API to authentication
+services.  The API itself is generic, and the system can provide different
+underlying implementations.  The most common one is Kerberos, which has several
+implementations, the most common of which is probably Active Directory.")
+      (license license:bsd-3))))
+
+(define-public ecl-cl-gss
+  (sbcl-package->ecl-package sbcl-cl-gss))
+
+(define-public cl-gss
+  (sbcl-package->cl-source-package sbcl-cl-gss))
+
 (define-public sbcl-trivial-utf-8
   (let ((commit "4d427cfbb1c452436a0efb71c3205c9da67f718f")
         (revision "1"))
-- 
2.38.0