From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QLdiI91nF2fN+AAAe85BDQ:P1 (envelope-from ) for ; Tue, 22 Oct 2024 08:52:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QLdiI91nF2fN+AAAe85BDQ (envelope-from ) for ; Tue, 22 Oct 2024 10:52:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="Bkh/CyuN"; dkim=fail ("headers rsa verify failed") header.d=us-core.com header.s=2017 header.b=MO+MeLhh; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=TBSJyD+I; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729587165; a=rsa-sha256; cv=none; b=YLY0opLezos0QtRWj1Tz/6y/zkZvBUrceiblVfFTjPCNe0NEyJKk/udUUSLUpV+JALZjA6 m4HM+ObuLMXHhJqBaVwzN+pUGaOjbxHRthc0RXeRQGyv/mLfiCj1qc7BIY2DrKAGYShfGf PPDymTs2Il7OaTAlKl5AHs9wgUmLAZvYY8HhBLAuvLgSi4ZDF1WyZwpIEG+vHok1jiA7ws D9ozGNqvSGMNslglSZ0Vdjbzn/edJGeaqe02oPaX/BAbe3yQtX9GaWDtIJQxgUapbnXeYq sbG4kpcxsXBRKUBMJEEnqiAIJnhAI9LEpNuyPadE+rB9Ix3BFwwRu9SfCVN78Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="Bkh/CyuN"; dkim=fail ("headers rsa verify failed") header.d=us-core.com header.s=2017 header.b=MO+MeLhh; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=TBSJyD+I; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729587165; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nuDwB88b2V6nWoPCZuZZJUYK3c+WQZPlSxiuMJrxtPs=; b=bOaXGa4QBxildKyLU3JScHvNcnzOt2v1P38o+gGOCsWOsEp57JjW1i/kdTuxCUhCFrXXM6 UaGEAfOH1QDWNTLxepzLSJAwgFH0mjE8mQLKMpn9MP72m6L4BH4DLLzL9+kMbEnT1cwDDl hK0mgyXVEupKUbBlFjnGm0SFKfQMbxkY8Sj1d7qSnoyfsCXynaHZQTXNgQpQdcsxCLy5ms euD1R9TVmPwYe+KU2q8ILFktkuZx43uO/Tbv68OR5CaeC3RA5S5oomxPHk2SrGtLomGBVS rSuTFQD2dIQdplwbs992byv8Y/r3UTsR5ZvpnVtOiJDR3XLFnlULZ5MV/SEi/Q== 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 1673284744 for ; Tue, 22 Oct 2024 10:52:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3Ad3-0005kP-5F; Tue, 22 Oct 2024 04:52:37 -0400 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 1t3Ad1-0005jj-7q for guix-patches@gnu.org; Tue, 22 Oct 2024 04:52:35 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3Ad0-0003MO-Vn for guix-patches@gnu.org; Tue, 22 Oct 2024 04:52:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=nuDwB88b2V6nWoPCZuZZJUYK3c+WQZPlSxiuMJrxtPs=; b=Bkh/CyuNCb77pqSZry+RrA201nramt+ANt55zd5IUWBFweBsvSVniRntExIYF0mI+iEy3smp/sRktyYcinaQFriI+MVCoRArwwr3tD4HHal8qwbrClHw9Zuhpnx+0IQjD2EDnXLalZO1NRCKzlABz09Y1a8dgscAooi5vUmqfRtjh2Aiv2INVJKqEcAIrw74BQO5P1qWUlDvTeYaxx7yyni2rCDsDeaF1Q6cCYOh8IHMilUxPedh0Dz19TjZVTwbN+IHqv/P7pvThfEGb82PUBMzA34WNL56e9Q/0PprZH30vUGYqRGS4G+ne09YqBh0tbu4jFkjLmuDstbPBoEtxw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3AdS-0006l2-I6 for guix-patches@gnu.org; Tue, 22 Oct 2024 04:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73839] [PATCH 1/5] lisp-xyz: + sbcl-posix-shm References: <20241016120244.12778-1-shegeley@gmail.com> In-Reply-To: <20241016120244.12778-1-shegeley@gmail.com> Resent-From: Grigory Shepelev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 22 Oct 2024 08:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73839 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73839@patchwise.org Cc: Grigory Shepelev Received: via spool by 73839-submit@debbugs.gnu.org id=B73839.172958714625907 (code B ref 73839); Tue, 22 Oct 2024 08:53:02 +0000 Received: (at 73839) by debbugs.gnu.org; 22 Oct 2024 08:52:26 +0000 Received: from localhost ([127.0.0.1]:54600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Acs-0006jm-7I for submit@debbugs.gnu.org; Tue, 22 Oct 2024 04:52:26 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:49934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Acp-0006jX-6g for 73839@debbugs.gnu.org; Tue, 22 Oct 2024 04:52:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=5H4mU9A9d5yKg19 1ppdaSN0vBpFIkC+2przNs5sZfLc=; h=date:subject:cc:to:from; d=us-core.com; b=MO+MeLhh/K2w+YORh9M8B6kxoqxnj9d4NDB5c1PrUyC0M7Zk9oDBX KR51NRmdXt4mCtZkRSXqeO+JQ92Krv7Khbm5YMSkyGHNL66DUbdub14eaCWqeIu2EYuwDh BjtQYARZ3Iwg4eWMf3WW6Pd/QPVEii2cqza5JbOVA8ehTfgc= Received: by localhost (OpenSMTPD) with ESMTPA id 118e4f54 for <73839@debbugs.gnu.org>; Tue, 22 Oct 2024 08:51:51 +0000 (UTC) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPS id e91a77e6 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <73839@patchwise.org>; Tue, 22 Oct 2024 08:51:50 +0000 (UTC) Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-539f2b95775so6309578e87.1 for <73839@patchwise.org>; Tue, 22 Oct 2024 01:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729587108; x=1730191908; darn=patchwise.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nuDwB88b2V6nWoPCZuZZJUYK3c+WQZPlSxiuMJrxtPs=; b=TBSJyD+Ihnd1KMERPg+YiuOiYiwtyTYQhPFQR4ySZxK0m4WEntCDsjyzqSWJrsdD6S FQdlDs+fvee2qKuAIjdQEQmRj2awBvYNVs6lrFtpDpCzwqU74KVMwZCh5RJqSuPzwPBL Uo2A+ftROP2QRRrBsiAMSyhKDExeosRGVULnyNUiRe3WJUJKPRKqISKPrFKeOxrMiDRK IqEb29T7wBx7uuhN9F2ZrM3MhNdzXCeyG/nD+GrVUJHwDiVFPO+YcANc9dDTY39usox4 DH7e4fla4Xs3IbJyWqTvN2/9ctHd+ODLIZbo/m8Er+KmibFNImrDnKmd+DQje2Nea8Bi ledA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729587108; x=1730191908; 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=nuDwB88b2V6nWoPCZuZZJUYK3c+WQZPlSxiuMJrxtPs=; b=pkeAvxhtXI4rt6o4LOXRRpu5Yfb8t+X2BKEDBcEL4L3HW3l9GrVxe0Q1PmwoNiVMai ySs+jo+k9RJ9sZOtX7K/xMkPorx+Q+RgG4knr6BdSP+xp4yZsBWF+pX8qkNQ7Tpa/FiW vvvzVqi9q/qO6awCvvr8Lclcrla/D9m/VJLiQCKhOzvnRhEbEnzgbpESdewmBN7kAZ14 /xzWS4U7e07Uz+70HbvuwIy2qdgddeU8VymHuYViVtWvBu6ZJSCqjNRpUsXOmuNVf3db /xdPy7OaxC9eLu8bUIBmaK9XEZxU2stfVgtE0dfERIvJRrPu0M9cof0M1qAdKDvcewPT Qw1w== X-Gm-Message-State: AOJu0YyxRfpMqYtABRnsPCSu4w/Uj8+ISkCylJzhzOG6gL/EqtcfiFur nIyEB/zhuxS6FFraivI1+CXcVYctfblzrErzy9lF1wXkF2TtGARRg+59hj12 X-Google-Smtp-Source: AGHT+IF94tnoKnoyMntAjLfdIJ7OnqN80gCDoTHzI0HxMixYO67ndcMkRGtFMHUL703Iy6c8pPfz5A== X-Received: by 2002:a05:6512:3090:b0:536:542e:ce1f with SMTP id 2adb3069b0e04-53a1544485cmr11990888e87.18.1729587107341; Tue, 22 Oct 2024 01:51:47 -0700 (PDT) Received: from localhost ([46.172.4.246]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a223e58a3sm704341e87.21.2024.10.22.01.51.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 01:51:46 -0700 (PDT) From: Grigory Shepelev Date: Tue, 22 Oct 2024 11:51:02 +0300 Message-ID: <20241022085129.29947-1-shegeley@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 X-Migadu-Spam-Score: -0.14 X-Spam-Score: -0.14 X-Migadu-Queue-Id: 1673284744 X-Migadu-Scanner: mx12.migadu.com X-TUID: BBoYLrWm3x9u Change-Id: I5ac9a3751977bf98d817acd8b98d1a2ad9d393f7 --- 1. Add spaces between @itemize 2. Move hash from upper let to the package def (according to lisp-xyz style) 3. Applied guix style sbcl-posix-shm gnu/packages/lisp-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 16b1b8d873..5dce85d341 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -30226,6 +30226,48 @@ (define-public sbcl-trivial-raw-io Lisp.") (license license:bsd-2)))) +(define-public sbcl-posix-shm + (let ((commit "9443da23bcda0a2bd727aed675f92ee7d3c51802") + (revision "0.0.7")) + (package + (name "sbcl-posix-shm") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~shunter/posix-shm") + (commit commit))) + (file-name (git-file-name "sbcl-posix-shm" version)) + (sha256 + (base32 "0ah7xh7dxvdk58slic60gx7k56idjw5x30q5ifg90hxfhd32qz6l")))) + (build-system asdf-build-system/sbcl) + (arguments + (list + #:asd-systems ''("posix-shm" "posix-shm/ffi" "posix-shm/test"))) + (inputs (list sbcl-cffi sbcl-alexandria sbcl-trivial-features)) + (native-inputs (list sbcl-osicat sbcl-parachute)) + (home-page "https://git.sr.ht/~shunter/posix-shm") + (synopsis + "Common Lisp bindings and wrapper for the POSIX shared memory API") + (description + "This library provides two strata to access the POSIX shm API: + +@itemize +@item The package @code{posix-shm/ffi}, a collection of slim bindings to the POSIX API +@item The package @code{posix-shm}, a lispy wrapper around the FFI that integrates more closely to the features of Common Lisp, and provides a handful of utilities and macros +@end itemize + +Features include: + +@itemize +@item open, close, create, resize, change ownership of, change permissions of, and memory map to shared memory objects +@item @code{open-shm} appears more like @code{open} from the standard library +@item @code{open-shm*}, for creating anonymous shm objects +@item @code{with-open-shm}, @code{with-mmap} and similar @code{with-} macros for safely accessing resources with dynamic extent +@end itemize") + (license license:bsd-3)))) + (define-public cl-trivial-raw-io (sbcl-package->cl-source-package sbcl-trivial-raw-io)) -- 2.46.0